Wire Field
Annotates generated Message fields with metadata for serialization and deserialization.
Properties
Reference to the static field that holds a ProtoAdapter that can encode and decode this field's values. The reference is a string like com.squareup.wire.protos.person.Person#ADAPTER
and contains a fully-qualified class name followed by a hash symbol and a field name.
Name of this field as declared in the proto schema. This value is set to a non-empty string only when the declared name differs from the generated one; for instance, a proto field named final
generated in Java will be renamed to final_
.
Reference to the static field that holds a ProtoAdapter that can encode and decode this field's keys. This only applies to maps. See adapter for a description of the value format.
The field's protocol buffer label, one of Label.OPTIONAL, Label.REQUIRED, Label.REPEATED, Label.PACKED, or Label.OMIT_IDENTITY. Defaults to Label.OPTIONAL.
This is the order that this field was declared in the .proto
schema.