A single field of a message type.
- Value parameters:
- 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
Value members
Concrete methods
Returns a human-readable ASCII format representation of this message.
Returns a human-readable ASCII format representation of this message.
The original message can be decoded from this format by using fromAscii on the companion object.
- Returns:
human-readable representation of this message.
Inherited methods
Serializes the message and returns a byte array containing its raw bytes
Serializes the message and returns a byte array containing its raw bytes
- Inherited from:
- GeneratedMessage
Serializes the message and returns a ByteString containing its raw bytes
Serializes the message and returns a ByteString containing its raw bytes
- Inherited from:
- GeneratedMessage
Serializes the message into the given output stream
Serializes the message into the given output stream
- Inherited from:
- GeneratedMessage