Package com.google.protobuf
Class UnknownFieldSetLite
java.lang.Object
com.google.protobuf.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.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static UnknownFieldSetLite
Get an emptyUnknownFieldSetLite
.int
Get the number of bytes required to encode this set.int
Get the number of bytes required to encode this field, including field number, usingMessageSet
wire format.int
hashCode()
void
Marks this object as immutable.void
writeAsMessageSetTo
(CodedOutputStream output) Serializes the set and writes it tooutput
usingMessageSet
wire format.void
writeTo
(CodedOutputStream output) Serializes the set and writes it tooutput
.void
writeTo
(com.google.protobuf.Writer writer) Serializes the set and writes it towriter
.
-
Method Details
-
getDefaultInstance
Get an emptyUnknownFieldSetLite
.For use by generated code only.
-
makeImmutable
public void makeImmutable()Marks this object as immutable.Future calls to methods that attempt to modify this object will throw.
-
writeTo
Serializes the set and writes it tooutput
.For use by generated code only.
- Throws:
IOException
-
writeAsMessageSetTo
Serializes the set and writes it tooutput
usingMessageSet
wire format.For use by generated code only.
- Throws:
IOException
-
writeTo
Serializes the set and writes it towriter
.- Throws:
IOException
-
getSerializedSizeAsMessageSet
public int getSerializedSizeAsMessageSet()Get the number of bytes required to encode this field, including field number, usingMessageSet
wire format. -
getSerializedSize
public int getSerializedSize()Get the number of bytes required to encode this set.For use by generated code only.
-
equals
-
hashCode
public int hashCode()
-