UnknownFieldSet 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 UnknownFieldSet (and every Message.
contains an Builder).
Most users will never need to use this class.
| Modifier and Type | Class and Description |
|---|---|
| public static class | UnknownFieldSet.Builder
Builder for |
| public static class | UnknownFieldSet.Field
Represents a single field in an |
| public static class | UnknownFieldSet.Parser
Parser to implement MessageLite interface. |
| Modifier and Type | Field and Description |
|---|---|
| private static final UnknownFieldSet | |
| private final Map | |
| private static final UnknownFieldSet. |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv | UnknownFieldSet(final Map<Integer, UnknownFieldSet.
Construct an |
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public boolean | equals(final Object
the reference object with which to compare. other)Overrides java. |
| public static UnknownFieldSet | |
| public UnknownFieldSet | getDefaultInstanceForType()
Implements com. |
| public UnknownFieldSet. | |
| public final UnknownFieldSet. | getParserForType()
Implements com. |
| public int | getSerializedSize()
Implements com. |
| public int | getSerializedSizeAsMessageSet()
Get the number of bytes required to encode this set using |
| public boolean | |
| public int | |
| public boolean | isInitialized()
Implements com. |
| public static UnknownFieldSet. | |
| public static UnknownFieldSet. | newBuilder(final UnknownFieldSet copyFrom)
Create a new |
| public UnknownFieldSet. | newBuilderForType()
Implements com. |
| public static UnknownFieldSet | |
| public static UnknownFieldSet | |
| public static UnknownFieldSet | |
| public static UnknownFieldSet | |
| public UnknownFieldSet. | toBuilder()
Implements com. |
| public byte[] | toByteArray()
Implements com. byte array and returns it.
|
| public ByteString | toByteString()
Implements com. ByteString and returns it.
|
| public String | toString()
Overrides java. |
| public void | writeAsMessageSetTo(final CodedOutputStream output)
Serializes the set and writes it to |
| public void | writeDelimitedTo(OutputStream output)
Implements com. writeTo(OutputStream), but writes the size of the message as a varint before
writing the data.
|
| public void | writeTo(final CodedOutputStream output)
Implements com. output.
|
| public void | writeTo(final OutputStream output)
Implements com. output.
|