Package com.google.protobuf
Class UnknownFieldSetLite
- java.lang.Object
-
- com.google.protobuf.UnknownFieldSetLite
-
public final class UnknownFieldSetLite extends java.lang.ObjectUnknownFieldSetLiteis 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static UnknownFieldSetLitegetDefaultInstance()Get an emptyUnknownFieldSetLite.intgetSerializedSize()Get the number of bytes required to encode this set.intgetSerializedSizeAsMessageSet()Get the number of bytes required to encode this field, including field number, usingMessageSetwire format.inthashCode()voidmakeImmutable()Marks this object as immutable.voidwriteAsMessageSetTo(CodedOutputStream output)Serializes the set and writes it tooutputusingMessageSetwire format.voidwriteTo(CodedOutputStream output)Serializes the set and writes it tooutput.voidwriteTo(com.google.protobuf.Writer writer)Serializes the set and writes it towriter.
-
-
-
Method Detail
-
getDefaultInstance
public static UnknownFieldSetLite 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
public void writeTo(CodedOutputStream output) throws java.io.IOException
Serializes the set and writes it tooutput.For use by generated code only.
- Throws:
java.io.IOException
-
writeAsMessageSetTo
public void writeAsMessageSetTo(CodedOutputStream output) throws java.io.IOException
Serializes the set and writes it tooutputusingMessageSetwire format.For use by generated code only.
- Throws:
java.io.IOException
-
writeTo
public void writeTo(com.google.protobuf.Writer writer) throws java.io.IOExceptionSerializes the set and writes it towriter.- Throws:
java.io.IOException
-
getSerializedSizeAsMessageSet
public int getSerializedSizeAsMessageSet()
Get the number of bytes required to encode this field, including field number, usingMessageSetwire format.
-
getSerializedSize
public int getSerializedSize()
Get the number of bytes required to encode this set.For use by generated code only.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-