Field

com.google.protobuf.`type`.Field
See theField companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Field.type

Members list

Type members

Classlikes

sealed abstract class Cardinality(val value: Int) extends GeneratedEnum

Whether a field is optional, required, or repeated.

Whether a field is optional, required, or repeated.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object CARDINALITY_OPTIONAL.type
object CARDINALITY_REPEATED.type
object CARDINALITY_REQUIRED.type
object CARDINALITY_UNKNOWN.type
trait Recognized
class Unrecognized
Show all

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
implicit class FieldLens[UpperPB](_l: Lens[UpperPB, Field]) extends ObjectLens[UpperPB, Field]

Attributes

Supertypes
class ObjectLens[UpperPB, Field]
trait Lens[UpperPB, Field]
trait Serializable
class Object
trait Matchable
class Any
Show all
sealed abstract class Kind(val value: Int) extends GeneratedEnum

Basic field types.

Basic field types.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Recognized
object TYPE_BOOL.type
object TYPE_BYTES.type
object TYPE_DOUBLE.type
object TYPE_ENUM.type
object TYPE_FIXED32.type
object TYPE_FIXED64.type
object TYPE_FLOAT.type
object TYPE_GROUP.type
object TYPE_INT32.type
object TYPE_INT64.type
object TYPE_MESSAGE.type
object TYPE_SFIXED32.type
object TYPE_SFIXED64.type
object TYPE_SINT32.type
object TYPE_SINT64.type
object TYPE_STRING.type
object TYPE_UINT32.type
object TYPE_UINT64.type
object TYPE_UNKNOWN.type
class Unrecognized
Show all
object Kind extends GeneratedEnumCompanion[Kind]

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Kind.type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type ValueType = A

Attributes

Inherited from:
GeneratedMessageCompanion

Value members

Concrete methods

def enumCompanionForFieldNumber(`__fieldNumber`: Int): GeneratedEnumCompanion[_]
def javaDescriptor: Descriptor

Returns the Java descriptors for this message. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not available in Scala.js or scala-native.

Returns the Java descriptors for this message. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not available in Scala.js or scala-native.

Attributes

def of(kind: Kind, cardinality: Cardinality, number: Int, name: String, typeUrl: String, oneofIndex: Int, packed: Boolean, options: Seq[OptionProto], jsonName: String, defaultValue: String): Field
def parseFrom(`_input__`: CodedInputStream): Field

Parses a message from a CodedInputStream.

Parses a message from a CodedInputStream.

Attributes

Inherited methods

def enumCompanionForField(field: FieldDescriptor): GeneratedEnumCompanion[_]

Attributes

Inherited from:
GeneratedMessageCompanion
def fromAscii(s: String): A

Attributes

Inherited from:
GeneratedMessageCompanion
def merge(a: Field, input: CodedInputStream): A

Merges the given message with the additional fields in the steam.

Merges the given message with the additional fields in the steam.

Attributes

Inherited from:
GeneratedMessageCompanion
def messageCompanionForField(field: FieldDescriptor): GeneratedMessageCompanion[_]

Attributes

Inherited from:
GeneratedMessageCompanion
def parseDelimitedFrom(input: InputStream): Option[A]

Attributes

Inherited from:
GeneratedMessageCompanion
def parseDelimitedFrom(input: CodedInputStream): Option[A]

Attributes

Inherited from:
GeneratedMessageCompanion
def parseFrom(s: Array[Byte]): A

Attributes

Inherited from:
GeneratedMessageCompanion
def parseFrom(input: InputStream): A

Attributes

Inherited from:
GeneratedMessageCompanion
def streamFromDelimitedInput(input: InputStream): Stream[A]

Attributes

Inherited from:
GeneratedMessageCompanion
def toByteArray(a: Field): Array[Byte]

Attributes

Inherited from:
GeneratedMessageCompanion
def validate(s: Array[Byte]): Try[A]

Attributes

Inherited from:
GeneratedMessageCompanion
def validateAscii(s: String): Either[TextFormatError, A]

Attributes

Inherited from:
GeneratedMessageCompanion

Implicits

Implicits

final implicit def FieldLens[UpperPB](_l: Lens[UpperPB, Field]): FieldLens[UpperPB]
implicit def messageReads: Reads[Field]