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

Classes

class  Builder
 

Public Member Functions

boolean equals (final Object other)
 
List< Integer > getFixed32List ()
 
List< Long > getFixed64List ()
 
List< UnknownFieldSetgetGroupList ()
 
List< ByteStringgetLengthDelimitedList ()
 
int getSerializedSize (final int fieldNumber)
 
int getSerializedSizeAsMessageSetExtension (final int fieldNumber)
 
List< Long > getVarintList ()
 
int hashCode ()
 
ByteString toByteString (int fieldNumber)
 
void writeAsMessageSetExtensionTo (final int fieldNumber, final CodedOutputStream output) throws IOException
 
void writeTo (final int fieldNumber, final CodedOutputStream output) throws IOException
 

Static Public Member Functions

static Field getDefaultInstance ()
 
static Builder newBuilder ()
 
static Builder newBuilder (final Field copyFrom)
 

Private Member Functions

 Field ()
 
Object[] getIdentityArray ()
 
void writeAsMessageSetExtensionTo (final int fieldNumber, final Writer writer) throws IOException
 

Private Attributes

List< Integer > fixed32
 
List< Long > fixed64
 
List< UnknownFieldSetgroup
 
List< ByteStringlengthDelimited
 
List< Long > varint
 

Static Private Attributes

static final Field fieldDefaultInstance = newBuilder().build()
 

Detailed Description

Represents a single field in an

.

A

consists of five lists of values. The lists correspond to the five "wire types" used in the protocol buffer binary format. The wire type of each field can be determined from the encoded form alone, without knowing the field's declared type. So, we are able to parse unknown values at least this far and separate them. Normally, only one of the five lists will contain any values, since it is impossible to define a valid message type that declares two different types for the same field number. However, the code is designed to allow for the case where the same unknown field number is encountered using multiple different wire types.

is an immutable class. To construct one, you must use a Builder.

See also
UnknownFieldSet

Definition at line 712 of file UnknownFieldSet.java.

Constructor & Destructor Documentation

◆ Field()

com.google.protobuf.UnknownFieldSet.Field.Field ( )
inlineprivate

Definition at line 713 of file UnknownFieldSet.java.

Member Function Documentation

◆ equals()

boolean com.google.protobuf.UnknownFieldSet.Field.equals ( final Object  other)
inline

Definition at line 761 of file UnknownFieldSet.java.

◆ getDefaultInstance()

static Field com.google.protobuf.UnknownFieldSet.Field.getDefaultInstance ( )
inlinestatic

Get an empty

.

Definition at line 726 of file UnknownFieldSet.java.

◆ getFixed32List()

List<Integer> com.google.protobuf.UnknownFieldSet.Field.getFixed32List ( )
inline

Get the list of fixed32 values for this field.

Definition at line 738 of file UnknownFieldSet.java.

◆ getFixed64List()

List<Long> com.google.protobuf.UnknownFieldSet.Field.getFixed64List ( )
inline

Get the list of fixed64 values for this field.

Definition at line 743 of file UnknownFieldSet.java.

◆ getGroupList()

List<UnknownFieldSet> com.google.protobuf.UnknownFieldSet.Field.getGroupList ( )
inline

Get the list of embedded group values for this field. These are represented using {}s rather than Message}s since the group's type is presumably unknown.

Definition at line 756 of file UnknownFieldSet.java.

◆ getIdentityArray()

Object [] com.google.protobuf.UnknownFieldSet.Field.getIdentityArray ( )
inlineprivate

Returns the array of objects to be used to uniquely identify this Field instance.

Definition at line 777 of file UnknownFieldSet.java.

◆ getLengthDelimitedList()

List<ByteString> com.google.protobuf.UnknownFieldSet.Field.getLengthDelimitedList ( )
inline

Get the list of length-delimited values for this field.

Definition at line 748 of file UnknownFieldSet.java.

◆ getSerializedSize()

int com.google.protobuf.UnknownFieldSet.Field.getSerializedSize ( final int  fieldNumber)
inline

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

Definition at line 818 of file UnknownFieldSet.java.

◆ getSerializedSizeAsMessageSetExtension()

int com.google.protobuf.UnknownFieldSet.Field.getSerializedSizeAsMessageSetExtension ( final int  fieldNumber)
inline

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

MessageSet

wire format.

Definition at line 895 of file UnknownFieldSet.java.

◆ getVarintList()

List<Long> com.google.protobuf.UnknownFieldSet.Field.getVarintList ( )
inline

Get the list of varint values for this field.

Definition at line 733 of file UnknownFieldSet.java.

◆ hashCode()

int com.google.protobuf.UnknownFieldSet.Field.hashCode ( )
inline

Definition at line 772 of file UnknownFieldSet.java.

◆ newBuilder() [1/2]

static Builder com.google.protobuf.UnknownFieldSet.Field.newBuilder ( )
inlinestatic

Construct a new Builder.

Definition at line 716 of file UnknownFieldSet.java.

◆ newBuilder() [2/2]

static Builder com.google.protobuf.UnknownFieldSet.Field.newBuilder ( final Field  copyFrom)
inlinestatic

Construct a new Builder and initialize it to a copy of

copyFrom

.

Definition at line 721 of file UnknownFieldSet.java.

◆ toByteString()

ByteString com.google.protobuf.UnknownFieldSet.Field.toByteString ( int  fieldNumber)
inline

Serializes the message to a

ByteString

and returns it. This is just a trivial wrapper around writeTo(int, CodedOutputStream).

Definition at line 785 of file UnknownFieldSet.java.

◆ writeAsMessageSetExtensionTo() [1/2]

void com.google.protobuf.UnknownFieldSet.Field.writeAsMessageSetExtensionTo ( final int  fieldNumber,
final CodedOutputStream  output 
) throws IOException
inline

Serializes the field, including field number, and writes it to

, using

MessageSet

wire format.

Definition at line 842 of file UnknownFieldSet.java.

◆ writeAsMessageSetExtensionTo() [2/2]

void com.google.protobuf.UnknownFieldSet.Field.writeAsMessageSetExtensionTo ( final int  fieldNumber,
final Writer  writer 
) throws IOException
inlineprivate

Serializes the field, including field number, and writes it to

writer

, using

MessageSet

wire format.

Definition at line 875 of file UnknownFieldSet.java.

◆ writeTo()

void com.google.protobuf.UnknownFieldSet.Field.writeTo ( final int  fieldNumber,
final CodedOutputStream  output 
) throws IOException
inline

Serializes the field, including field number, and writes it to

.

Definition at line 799 of file UnknownFieldSet.java.

Member Data Documentation

◆ fieldDefaultInstance

final Field com.google.protobuf.UnknownFieldSet.Field.fieldDefaultInstance = newBuilder().build()
staticprivate

Definition at line 730 of file UnknownFieldSet.java.

◆ fixed32

List<Integer> com.google.protobuf.UnknownFieldSet.Field.fixed32
private

Definition at line 904 of file UnknownFieldSet.java.

◆ fixed64

List<Long> com.google.protobuf.UnknownFieldSet.Field.fixed64
private

Definition at line 905 of file UnknownFieldSet.java.

◆ group

List<UnknownFieldSet> com.google.protobuf.UnknownFieldSet.Field.group
private

Definition at line 907 of file UnknownFieldSet.java.

◆ lengthDelimited

List<ByteString> com.google.protobuf.UnknownFieldSet.Field.lengthDelimited
private

Definition at line 906 of file UnknownFieldSet.java.

◆ varint

List<Long> com.google.protobuf.UnknownFieldSet.Field.varint
private

Definition at line 903 of file UnknownFieldSet.java.


The documentation for this class was generated from the following file:
com.google.protobuf.UnknownFieldSet.UnknownFieldSet
UnknownFieldSet()
Definition: UnknownFieldSet.java:60
Field
Definition: type.pb.h:416
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