com.google.protobuf.type.Field
See theField companion object
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.
Attributes
- 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
- Graph
- Supertypes
- trait Updatable[Field]trait GeneratedMessagetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any