Field

@SerialVersionUID(0L) final case class Field(kind: Kind, cardinality: Cardinality, number: Int, name: String, typeUrl: String, oneofIndex: Int, packed: Boolean, options: Seq[OptionProto], jsonName: String, defaultValue: String, unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[Field]

A single field of a message type.

Value Params
cardinality

The field cardinality.

defaultValue

The string value of the default value of this field. Proto2 syntax only.

jsonName

The field JSON name.

kind

The field type.

name

The field name.

number

The field number.

oneofIndex

The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.

options

The protocol buffer options.

packed

Whether to use alternative packed wire representation.

typeUrl

The field type URL, without the scheme, for message or enumeration types. Example: "type.googleapis.com/google.protobuf.Timestamp".

Companion
object
trait Updatable[Field]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addAllOptions(`__vs`: Iterable[OptionProto]): Field
def addOptions(`__vs`: OptionProto*): Field
def getField(`__field`: FieldDescriptor): PValue
def getFieldByNumber(`__fieldNumber`: Int): Any
override def serializedSize: Int
Definition Classes
def toProtoString: String
def withDefaultValue(`__v`: String): Field
def withJsonName(`__v`: String): Field
def withKind(`__v`: Kind): Field
def withName(`__v`: String): Field
def withNumber(`__v`: Int): Field
def withOneofIndex(`__v`: Int): Field
def withOptions(`__v`: Seq[OptionProto]): Field
def withPacked(`__v`: Boolean): Field
def withTypeUrl(`__v`: String): Field
def writeTo(`_output__`: CodedOutputStream): Unit

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
final def toByteArray: Array[Byte]

Serializes the messgae and returns a byte array containing its raw bytes

Serializes the messgae and returns a byte array containing its raw bytes

Inherited from
GeneratedMessage
final def toByteString: ByteString

Serializes the messgae and returns a ByteString containing its raw bytes

Serializes the messgae and returns a ByteString containing its raw bytes

Inherited from
GeneratedMessage
final def toPMessage: PMessage
Inherited from
GeneratedMessage
def update(ms: Lens[Field, Field] => () => Field*): Field
Inherited from
Updatable
final def writeDelimitedTo(output: OutputStream): Unit
Inherited from
GeneratedMessage
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Inherited from
GeneratedMessage