Modifier and Type | Required Element and Description |
---|---|
String |
adapter
Reference to the static field that holds a
ProtoAdapter that can encode and decode
this field's values. |
int |
tag
The tag number used to store the field's value.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
keyAdapter
Reference to the static field that holds a
ProtoAdapter that can encode and decode
this field's keys. |
WireField.Label |
label
The field's protocol buffer label, one of
WireField.Label.OPTIONAL ,
WireField.Label.REQUIRED , WireField.Label.REPEATED , or WireField.Label.PACKED . |
boolean |
redacted
Redacted fields are omitted from toString() to protect sensitive data.
|
public abstract String adapter
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.public abstract String keyAdapter
ProtoAdapter
that can encode and decode
this field's keys. This only applies to maps. See adapter()
for a description
of the value format.public abstract WireField.Label label
WireField.Label.OPTIONAL
,
WireField.Label.REQUIRED
, WireField.Label.REPEATED
, or WireField.Label.PACKED
.
Defaults to WireField.Label.OPTIONAL
.Copyright © 2013–2016 Square, Inc.. All rights reserved.