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
Type Description
UnknownFieldSetLite

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getSerializedSize()

public int getSerializedSize()

Get the number of bytes required to encode this set.

For use by generated code only.

Returns
Type Description
int

getSerializedSizeAsMessageSet()

public int getSerializedSizeAsMessageSet()

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

Returns
Type Description
int

hashCode()

public int hashCode()
Returns
Type Description
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
Name Description
output CodedOutputStream
Exceptions
Type Description
IOException

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)

Serializes the set and writes it to output.

For use by generated code only.

Parameter
Name Description
output CodedOutputStream
Exceptions
Type Description
IOException

writeTo(Writer writer)

public void writeTo(Writer writer)

Serializes the set and writes it to writer.

Parameter
Name Description
writer com.google.protobuf.Writer
Exceptions
Type Description
IOException