Class UnknownFieldSetLite (3.19.4)

public final class UnknownFieldSetLite

UnknownFieldSetLite 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.

For use by generated code only.

Inheritance

Object > UnknownFieldSetLite

Static Methods

getDefaultInstance()

public static UnknownFieldSetLite getDefaultInstance()

Get an empty UnknownFieldSetLite.

For use by generated code only.

Returns
TypeDescription
UnknownFieldSetLite

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getSerializedSize()

public int getSerializedSize()

Get the number of bytes required to encode this set.

For use by generated code only.

Returns
TypeDescription
int

getSerializedSizeAsMessageSet()

public int getSerializedSizeAsMessageSet()

Get the number of bytes required to encode this field, including field number, using MessageSet wire format.

Returns
TypeDescription
int

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

makeImmutable()

public void makeImmutable()

Marks this object as immutable.

Future calls to methods that attempt to modify this object will throw.

writeAsMessageSetTo(CodedOutputStream output)

public void writeAsMessageSetTo(CodedOutputStream output)

Serializes the set and writes it to output using MessageSet wire format.

For use by generated code only.

Parameter
NameDescription
outputCodedOutputStream
Exceptions
TypeDescription
IOException

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)

Serializes the set and writes it to output.

For use by generated code only.

Parameter
NameDescription
outputCodedOutputStream
Exceptions
TypeDescription
IOException

writeTo(Writer writer)

public void writeTo(Writer writer)

Serializes the set and writes it to writer.

Parameter
NameDescription
writercom.google.protobuf.Writer
Exceptions
TypeDescription
IOException