Classes | |
class | Builder |
class | Field |
class | Parser |
Public Member Functions | |
Map< Integer, Field > | asMap () |
boolean | equals (final Object other) |
UnknownFieldSet | getDefaultInstanceForType () |
Field | getField (final int number) |
final Parser | getParserForType () |
int | getSerializedSize () |
int | getSerializedSizeAsMessageSet () |
boolean | hasField (final int number) |
int | hashCode () |
boolean | isInitialized () |
Builder | newBuilderForType () |
Builder | toBuilder () |
byte[] | toByteArray () |
ByteString | toByteString () |
String | toString () |
void | writeAsMessageSetTo (final CodedOutputStream output) throws IOException |
void | writeDelimitedTo (OutputStream output) throws IOException |
void | writeTo (final CodedOutputStream output) throws IOException |
void | writeTo (final OutputStream output) throws IOException |
Static Public Member Functions | |
static UnknownFieldSet | getDefaultInstance () |
static Builder | newBuilder () |
static Builder | newBuilder (final UnknownFieldSet copyFrom) |
static UnknownFieldSet | parseFrom (final byte[] data) throws InvalidProtocolBufferException |
static UnknownFieldSet | parseFrom (final ByteString data) throws InvalidProtocolBufferException |
static UnknownFieldSet | parseFrom (final CodedInputStream input) throws IOException |
static UnknownFieldSet | parseFrom (final InputStream input) throws IOException |
Private Member Functions | |
UnknownFieldSet () | |
Private Attributes | |
final Map< Integer, Field > | fields |
final Map< Integer, Field > | fieldsDescending |
Static Private Attributes | |
static final UnknownFieldSet | defaultInstance |
static final Parser | PARSER = new Parser() |
is used to keep track of fields which were seen when parsing a protocol message but whose field numbers or types are unrecognized. This most frequently occurs when new fields are added to a message type and then messages containing those fields are read by old software that was compiled before the new types were added.
Every Message contains an
(and every Message.Builder contains an Builder).
Most users will never need to use this class.
Definition at line 58 of file UnknownFieldSet.java.
|
inlineprivate |
Definition at line 60 of file UnknownFieldSet.java.
Get a map of fields in the set by number.
Definition at line 117 of file UnknownFieldSet.java.
|
inline |
Definition at line 104 of file UnknownFieldSet.java.
|
inlinestatic |
|
inline |
Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the
method of generated message classes in that this method is an abstract method of the
interface whereas
is a static method of a specific class. They return the same thing.
Implements com.google.protobuf.MessageLiteOrBuilder.
Definition at line 81 of file UnknownFieldSet.java.
|
inline |
Get a field by number. Returns an empty field if not present. Never returns
.
Definition at line 127 of file UnknownFieldSet.java.
|
inline |
Gets the parser for a message of the same type as this message.
Implements com.google.protobuf.MessageLite.
Definition at line 1075 of file UnknownFieldSet.java.
|
inline |
Get the number of bytes required to encode this set.
Implements com.google.protobuf.MessageLite.
Definition at line 205 of file UnknownFieldSet.java.
|
inline |
Get the number of bytes required to encode this set using
wire format.
Definition at line 251 of file UnknownFieldSet.java.
|
inline |
Check if the given field number is present in the set.
Definition at line 122 of file UnknownFieldSet.java.
|
inline |
Definition at line 112 of file UnknownFieldSet.java.
|
inline |
Returns true if all required fields in the message and all embedded messages are set, false otherwise.
See also: MessageOrBuilder#getInitializationErrorString()
Implements com.google.protobuf.MessageLiteOrBuilder.
Definition at line 260 of file UnknownFieldSet.java.
|
inlinestatic |
Create a new Builder.
Definition at line 66 of file UnknownFieldSet.java.
|
inlinestatic |
Create a new Builder and initialize it to be a copy of
.
Definition at line 71 of file UnknownFieldSet.java.
|
inline |
Constructs a new builder for a message of the same type as this message.
Implements com.google.protobuf.MessageLite.
Definition at line 288 of file UnknownFieldSet.java.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
Constructs a builder initialized with the current message. Use this to derive a new message from the current one.
Implements com.google.protobuf.MessageLite.
Definition at line 293 of file UnknownFieldSet.java.
|
inline |
Serializes the message to a
array and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream).
Implements com.google.protobuf.MessageLite.
Definition at line 171 of file UnknownFieldSet.java.
|
inline |
Serializes the message to a
and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream).
Implements com.google.protobuf.MessageLite.
Definition at line 155 of file UnknownFieldSet.java.
|
inline |
Converts the set to a string in protocol buffer text format. This is just a trivial wrapper around TextFormat.Printer#printToString(UnknownFieldSet).
Definition at line 146 of file UnknownFieldSet.java.
|
inline |
Serializes the set and writes it to
using
wire format.
Definition at line 214 of file UnknownFieldSet.java.
|
inline |
Like writeTo(OutputStream), but writes the size of the message as a varint before writing the data. This allows more data to be written to the stream after the message without the need to delimit the message data yourself. Use {} (or the static method YourMessageType.parseDelimitedFrom(InputStream) ) to parse messages written by this method.
Implements com.google.protobuf.MessageLite.
Definition at line 196 of file UnknownFieldSet.java.
|
inline |
Serializes the set and writes it to
.
Implements com.google.protobuf.MessageLite.
Definition at line 134 of file UnknownFieldSet.java.
|
inline |
Serializes the message and writes it to
. This is just a trivial wrapper around writeTo(CodedOutputStream).
Implements com.google.protobuf.MessageLite.
Definition at line 189 of file UnknownFieldSet.java.
|
staticprivate |
Definition at line 85 of file UnknownFieldSet.java.
Definition at line 97 of file UnknownFieldSet.java.
A copy of fields who's iterator order is reversed.
Definition at line 100 of file UnknownFieldSet.java.
Definition at line 1072 of file UnknownFieldSet.java.