Classes | |
class | Builder |
Public Member Functions | |
boolean | equals (final Object other) |
List< Integer > | getFixed32List () |
List< Long > | getFixed64List () |
List< UnknownFieldSet > | getGroupList () |
List< ByteString > | getLengthDelimitedList () |
int | getSerializedSize (final int fieldNumber) |
int | getSerializedSizeAsMessageSetExtension (final int fieldNumber) |
List< Long > | getVarintList () |
int | hashCode () |
ByteString | toByteString (int fieldNumber) |
void | writeAsMessageSetExtensionTo (final int fieldNumber, final CodedOutputStream output) throws IOException |
void | writeTo (final int fieldNumber, final CodedOutputStream output) throws IOException |
Static Public Member Functions | |
static Field | getDefaultInstance () |
static Builder | newBuilder () |
static Builder | newBuilder (final Field copyFrom) |
Private Member Functions | |
Field () | |
Object[] | getIdentityArray () |
void | writeAsMessageSetExtensionTo (final int fieldNumber, final Writer writer) throws IOException |
Private Attributes | |
List< Integer > | fixed32 |
List< Long > | fixed64 |
List< UnknownFieldSet > | group |
List< ByteString > | lengthDelimited |
List< Long > | varint |
Static Private Attributes | |
static final Field | fieldDefaultInstance = newBuilder().build() |
Represents a single field in an
.
consists of five lists of values. The lists correspond to the five "wire types" used in the protocol buffer binary format. The wire type of each field can be determined from the encoded form alone, without knowing the field's declared type. So, we are able to parse unknown values at least this far and separate them. Normally, only one of the five lists will contain any values, since it is impossible to define a valid message type that declares two different types for the same field number. However, the code is designed to allow for the case where the same unknown field number is encountered using multiple different wire types.
is an immutable class. To construct one, you must use a Builder.
Definition at line 712 of file UnknownFieldSet.java.
|
inlineprivate |
Definition at line 713 of file UnknownFieldSet.java.
|
inline |
Definition at line 761 of file UnknownFieldSet.java.
|
inlinestatic |
|
inline |
Get the list of fixed32 values for this field.
Definition at line 738 of file UnknownFieldSet.java.
|
inline |
Get the list of fixed64 values for this field.
Definition at line 743 of file UnknownFieldSet.java.
|
inline |
Get the list of embedded group values for this field. These are represented using {}s rather than Message}s since the group's type is presumably unknown.
Definition at line 756 of file UnknownFieldSet.java.
|
inlineprivate |
Returns the array of objects to be used to uniquely identify this Field instance.
Definition at line 777 of file UnknownFieldSet.java.
|
inline |
Get the list of length-delimited values for this field.
Definition at line 748 of file UnknownFieldSet.java.
|
inline |
Get the number of bytes required to encode this field, including field number.
Definition at line 818 of file UnknownFieldSet.java.
|
inline |
Get the number of bytes required to encode this field, including field number, using
wire format.
Definition at line 895 of file UnknownFieldSet.java.
|
inline |
Get the list of varint values for this field.
Definition at line 733 of file UnknownFieldSet.java.
|
inline |
Definition at line 772 of file UnknownFieldSet.java.
|
inlinestatic |
Construct a new Builder.
Definition at line 716 of file UnknownFieldSet.java.
|
inlinestatic |
Construct a new Builder and initialize it to a copy of
.
Definition at line 721 of file UnknownFieldSet.java.
|
inline |
Serializes the message to a
and returns it. This is just a trivial wrapper around writeTo(int, CodedOutputStream).
Definition at line 785 of file UnknownFieldSet.java.
|
inline |
Serializes the field, including field number, and writes it to
, using
wire format.
Definition at line 842 of file UnknownFieldSet.java.
|
inlineprivate |
Serializes the field, including field number, and writes it to
, using
wire format.
Definition at line 875 of file UnknownFieldSet.java.
|
inline |
Serializes the field, including field number, and writes it to
.
Definition at line 799 of file UnknownFieldSet.java.
|
staticprivate |
Definition at line 730 of file UnknownFieldSet.java.
|
private |
Definition at line 904 of file UnknownFieldSet.java.
|
private |
Definition at line 905 of file UnknownFieldSet.java.
|
private |
Definition at line 907 of file UnknownFieldSet.java.
|
private |
Definition at line 906 of file UnknownFieldSet.java.
|
private |
Definition at line 903 of file UnknownFieldSet.java.