@Target([AnnotationTarget.FIELD]) class WireField
Annotates generated Message fields with metadata for serialization and deserialization.
class Label
A protocol buffer label. |
WireField(tag: Int, keyAdapter: String, adapter: String, label: Label, redacted: Boolean)
Annotates generated Message fields with metadata for serialization and deserialization. |
val adapter: String
Reference to the static field that holds a ProtoAdapter that can encode and decode this field's values. The reference is a string like |
|
val keyAdapter: String
Reference to the static field that holds a ProtoAdapter that can encode and decode this field's keys. This only applies to maps. See |
|
val label: Label
The field's protocol buffer label, one of |
|
val redacted: Boolean
Redacted fields are omitted from toString() to protect sensitive data. Defaults to false. |
|
val tag: Int
The tag number used to store the field's value. |