@Generated(value="proto")
public final class UnknownFieldSetLite
extends java.lang.Object
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.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static UnknownFieldSetLite |
getDefaultInstance()
Get an empty
UnknownFieldSetLite . |
int |
getSerializedSize()
Get the number of bytes required to encode this set.
|
int |
getSerializedSizeAsMessageSet()
Get the number of bytes required to encode this field, including field number, using
MessageSet wire format. |
int |
hashCode() |
void |
makeImmutable()
Marks this object as immutable.
|
void |
writeAsMessageSetTo(CodedOutputStream output)
Serializes the set and writes it to
output using MessageSet wire format. |
void |
writeTo(CodedOutputStream output)
Serializes the set and writes it to
output . |
public static UnknownFieldSetLite getDefaultInstance()
UnknownFieldSetLite
.
For use by generated code only.
public void makeImmutable()
Future calls to methods that attempt to modify this object will throw.
public void writeTo(CodedOutputStream output) throws java.io.IOException
output
.
For use by generated code only.
java.io.IOException
public void writeAsMessageSetTo(CodedOutputStream output) throws java.io.IOException
output
using MessageSet
wire format.
For use by generated code only.
java.io.IOException
public int getSerializedSizeAsMessageSet()
MessageSet
wire format.public int getSerializedSize()
For use by generated code only.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.