Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.google.protobuf.UnknownFieldSetLite Class Reference

Public Member Functions

boolean equals (Object obj)
 
int getSerializedSize ()
 
int getSerializedSizeAsMessageSet ()
 
int hashCode ()
 
void makeImmutable ()
 
void writeAsMessageSetTo (CodedOutputStream output) throws IOException
 
void writeTo (CodedOutputStream output) throws IOException
 
void writeTo (Writer writer) throws IOException
 

Static Public Member Functions

static UnknownFieldSetLite getDefaultInstance ()
 

Private Member Functions

void ensureCapacity ()
 
UnknownFieldSetLite mergeFrom (final CodedInputStream input) throws IOException
 
 UnknownFieldSetLite ()
 
 UnknownFieldSetLite (int count, int[] tags, Object[] objects, boolean isMutable)
 

Static Private Member Functions

static boolean equals (int[] tags1, int[] tags2, int count)
 
static boolean equals (Object[] objects1, Object[] objects2, int count)
 
static int hashCode (int[] tags, int count)
 
static int hashCode (Object[] objects, int count)
 
static void writeField (int tag, Object object, Writer writer) throws IOException
 

Private Attributes

int count
 
boolean isMutable
 
int memoizedSerializedSize = -1
 
Object[] objects
 
int[] tags
 

Static Private Attributes

static final UnknownFieldSetLite DEFAULT_INSTANCE
 
static final int MIN_CAPACITY = 8
 

Detailed Description

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.

Author
dweis.nosp@m.@goo.nosp@m.gle.c.nosp@m.om (Daniel Weis)

Definition at line 46 of file UnknownFieldSetLite.java.

Constructor & Destructor Documentation

◆ UnknownFieldSetLite() [1/2]

com.google.protobuf.UnknownFieldSetLite.UnknownFieldSetLite ( )
inlineprivate

Constructs a mutable

.

Definition at line 98 of file UnknownFieldSetLite.java.

◆ UnknownFieldSetLite() [2/2]

com.google.protobuf.UnknownFieldSetLite.UnknownFieldSetLite ( int  count,
int[]  tags,
Object[]  objects,
boolean  isMutable 
)
inlineprivate

Constructs the

.

Definition at line 103 of file UnknownFieldSetLite.java.

Member Function Documentation

◆ ensureCapacity()

void com.google.protobuf.UnknownFieldSetLite.ensureCapacity ( )
inlineprivate

Ensures that our arrays are long enough to store more metadata.

Definition at line 399 of file UnknownFieldSetLite.java.

◆ equals() [1/3]

static boolean com.google.protobuf.UnknownFieldSetLite.equals ( int[]  tags1,
int[]  tags2,
int  count 
)
inlinestaticprivate

Definition at line 304 of file UnknownFieldSetLite.java.

◆ equals() [2/3]

boolean com.google.protobuf.UnknownFieldSetLite.equals ( Object  obj)
inline

Definition at line 323 of file UnknownFieldSetLite.java.

◆ equals() [3/3]

static boolean com.google.protobuf.UnknownFieldSetLite.equals ( Object[]  objects1,
Object[]  objects2,
int  count 
)
inlinestaticprivate

Definition at line 313 of file UnknownFieldSetLite.java.

◆ getDefaultInstance()

static UnknownFieldSetLite com.google.protobuf.UnknownFieldSetLite.getDefaultInstance ( )
inlinestatic

Get an empty

.

For use by generated code only.

Definition at line 60 of file UnknownFieldSetLite.java.

◆ getSerializedSize()

int com.google.protobuf.UnknownFieldSetLite.getSerializedSize ( )
inline

Get the number of bytes required to encode this set.

For use by generated code only.

Definition at line 266 of file UnknownFieldSetLite.java.

◆ getSerializedSizeAsMessageSet()

int com.google.protobuf.UnknownFieldSetLite.getSerializedSizeAsMessageSet ( )
inline

Get the number of bytes required to encode this field, including field number, using

MessageSet

wire format.

Definition at line 242 of file UnknownFieldSetLite.java.

◆ hashCode() [1/3]

int com.google.protobuf.UnknownFieldSetLite.hashCode ( )
inline

Definition at line 363 of file UnknownFieldSetLite.java.

◆ hashCode() [2/3]

static int com.google.protobuf.UnknownFieldSetLite.hashCode ( int[]  tags,
int  count 
)
inlinestaticprivate

Definition at line 346 of file UnknownFieldSetLite.java.

◆ hashCode() [3/3]

static int com.google.protobuf.UnknownFieldSetLite.hashCode ( Object[]  objects,
int  count 
)
inlinestaticprivate

Definition at line 354 of file UnknownFieldSetLite.java.

◆ makeImmutable()

void com.google.protobuf.UnknownFieldSetLite.makeImmutable ( )
inline

Marks this object as immutable.

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

Definition at line 115 of file UnknownFieldSetLite.java.

◆ mergeFrom()

UnknownFieldSetLite com.google.protobuf.UnknownFieldSetLite.mergeFrom ( final CodedInputStream  input) throws IOException
inlineprivate

Parse an entire message from

and merge its fields into this set.

Definition at line 480 of file UnknownFieldSetLite.java.

◆ writeAsMessageSetTo()

void com.google.protobuf.UnknownFieldSetLite.writeAsMessageSetTo ( CodedOutputStream  output) throws IOException
inline

Serializes the set and writes it to

using

MessageSet

wire format.

For use by generated code only.

Definition at line 164 of file UnknownFieldSetLite.java.

◆ writeField()

static void com.google.protobuf.UnknownFieldSetLite.writeField ( int  tag,
Object  object,
Writer  writer 
) throws IOException
inlinestaticprivate

Definition at line 206 of file UnknownFieldSetLite.java.

◆ writeTo() [1/2]

void com.google.protobuf.UnknownFieldSetLite.writeTo ( CodedOutputStream  output) throws IOException
inline

Serializes the set and writes it to

.

For use by generated code only.

Definition at line 131 of file UnknownFieldSetLite.java.

◆ writeTo() [2/2]

void com.google.protobuf.UnknownFieldSetLite.writeTo ( Writer  writer) throws IOException
inline

Serializes the set and writes it to

writer

.

Definition at line 189 of file UnknownFieldSetLite.java.

Member Data Documentation

◆ count

int com.google.protobuf.UnknownFieldSetLite.count
private

The number of elements in the set.

Definition at line 83 of file UnknownFieldSetLite.java.

◆ DEFAULT_INSTANCE

final UnknownFieldSetLite com.google.protobuf.UnknownFieldSetLite.DEFAULT_INSTANCE
staticprivate
Initial value:
=
new UnknownFieldSetLite(0, new int[0], new Object[0], false)

Definition at line 52 of file UnknownFieldSetLite.java.

◆ isMutable

boolean com.google.protobuf.UnknownFieldSetLite.isMutable
private

Indicates that this object is mutable.

Definition at line 95 of file UnknownFieldSetLite.java.

◆ memoizedSerializedSize

int com.google.protobuf.UnknownFieldSetLite.memoizedSerializedSize = -1
private

The lazily computed serialized size of the set.

Definition at line 92 of file UnknownFieldSetLite.java.

◆ MIN_CAPACITY

final int com.google.protobuf.UnknownFieldSetLite.MIN_CAPACITY = 8
staticprivate

Definition at line 50 of file UnknownFieldSetLite.java.

◆ objects

Object [] com.google.protobuf.UnknownFieldSetLite.objects
private

The boxed values of the elements in the set.

Definition at line 89 of file UnknownFieldSetLite.java.

◆ tags

int [] com.google.protobuf.UnknownFieldSetLite.tags
private

The tag numbers for the elements in the set.

Definition at line 86 of file UnknownFieldSetLite.java.


The documentation for this class was generated from the following file:
com.google.protobuf.UnknownFieldSetLite.UnknownFieldSetLite
UnknownFieldSetLite()
Definition: UnknownFieldSetLite.java:98
input
std::string input
Definition: tokenizer_unittest.cc:197
output
const upb_json_parsermethod const upb_symtab upb_sink * output
Definition: ruby/ext/google/protobuf_c/upb.h:10503


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08