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

Static Public Member Functions

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

Private Member Functions

 Field ()
 
 Field ()
 
Object[] getIdentityArray ()
 
Object[] getIdentityArray ()
 
void writeAsMessageSetExtensionTo (final int fieldNumber, final Writer writer) throws IOException
 
void writeAsMessageSetExtensionTo (int fieldNumber, 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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

Constructor & Destructor Documentation

◆ Field() [1/2]

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

◆ Field() [2/2]

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

Member Function Documentation

◆ equals() [1/2]

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

◆ equals() [2/2]

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

◆ getDefaultInstance() [1/2]

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

◆ getDefaultInstance() [2/2]

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

◆ getFixed32List() [1/2]

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

Get the list of fixed32 values for this field.

Definition at line 708 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getFixed32List() [2/2]

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

Get the list of fixed32 values for this field.

Definition at line 738 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getFixed64List() [1/2]

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

Get the list of fixed64 values for this field.

Definition at line 713 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getFixed64List() [2/2]

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

Get the list of fixed64 values for this field.

Definition at line 743 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getGroupList() [1/2]

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 726 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getGroupList() [2/2]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getIdentityArray() [1/2]

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 747 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getIdentityArray() [2/2]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getLengthDelimitedList() [1/2]

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

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

Definition at line 718 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getLengthDelimitedList() [2/2]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getSerializedSize() [1/2]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getSerializedSize() [2/2]

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

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

Definition at line 788 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getSerializedSizeAsMessageSetExtension() [1/2]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getSerializedSizeAsMessageSetExtension() [2/2]

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

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

MessageSet

wire format.

Definition at line 865 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getVarintList() [1/2]

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

Get the list of varint values for this field.

Definition at line 703 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ getVarintList() [2/2]

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

Get the list of varint values for this field.

Definition at line 733 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ hashCode() [1/2]

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

◆ hashCode() [2/2]

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

◆ newBuilder() [1/4]

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

◆ newBuilder() [2/4]

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

◆ newBuilder() [3/4]

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

Construct a new Builder and initialize it to a copy of

copyFrom

.

Definition at line 691 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ newBuilder() [4/4]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ toByteString() [1/2]

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 755 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ toByteString() [2/2]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ writeAsMessageSetExtensionTo() [1/4]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ writeAsMessageSetExtensionTo() [2/4]

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

, using

MessageSet

wire format.

Definition at line 875 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ writeAsMessageSetExtensionTo() [3/4]

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

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

, using

MessageSet

wire format.

Definition at line 812 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ writeAsMessageSetExtensionTo() [4/4]

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

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

, using

MessageSet

wire format.

Definition at line 845 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ writeTo() [1/2]

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 bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

◆ writeTo() [2/2]

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

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

.

Definition at line 769 of file protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java.

Member Data Documentation

◆ fieldDefaultInstance

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

◆ fixed32

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

◆ fixed64

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

◆ group

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

◆ lengthDelimited

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

◆ varint

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

The documentation for this class was generated from the following file:
gmock_output_test.output
output
Definition: bloaty/third_party/googletest/googlemock/test/gmock_output_test.py:175
writer
void writer(void *n)
Definition: libuv/docs/code/locks/main.c:22
com.google.protobuf.UnknownFieldSet.UnknownFieldSet
UnknownFieldSet()
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java:60
Field
Definition: bloaty/third_party/protobuf/src/google/protobuf/type.pb.h:446


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:08