Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.google.protobuf.UnknownFieldSet Class Reference
Inheritance diagram for com.google.protobuf.UnknownFieldSet:
Inheritance graph
[legend]

Classes

class  Builder
 
class  Field
 
class  Parser
 

Public Member Functions

Map< Integer, FieldasMap ()
 
Map< Integer, FieldasMap ()
 
boolean equals (final Object other)
 
boolean equals (Object other)
 
UnknownFieldSet getDefaultInstanceForType ()
 
UnknownFieldSet getDefaultInstanceForType ()
 
Field getField (final int number)
 
Field getField (int number)
 
final Parser getParserForType ()
 
final Parser getParserForType ()
 
int getSerializedSize ()
 
int getSerializedSize ()
 
int getSerializedSizeAsMessageSet ()
 
int getSerializedSizeAsMessageSet ()
 
boolean hasField (final int number)
 
boolean hasField (int number)
 
int hashCode ()
 
int hashCode ()
 
boolean isInitialized ()
 
boolean isInitialized ()
 
Builder newBuilderForType ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
Builder toBuilder ()
 
byte[] toByteArray ()
 
byte[] toByteArray ()
 
ByteString toByteString ()
 
ByteString toByteString ()
 
String toString ()
 
String toString ()
 
void writeAsMessageSetTo (CodedOutputStream output) throws IOException
 
void writeAsMessageSetTo (final CodedOutputStream output) throws IOException
 
void writeDelimitedTo (OutputStream output) throws IOException
 
void writeDelimitedTo (OutputStream output) throws IOException
 
void writeTo (CodedOutputStream output) throws IOException
 
void writeTo (final CodedOutputStream output) throws IOException
 
void writeTo (final OutputStream output) throws IOException
 
void writeTo (OutputStream output) throws IOException
 

Static Public Member Functions

static UnknownFieldSet getDefaultInstance ()
 
static UnknownFieldSet getDefaultInstance ()
 
static Builder newBuilder ()
 
static Builder newBuilder ()
 
static Builder newBuilder (final UnknownFieldSet copyFrom)
 
static Builder newBuilder (UnknownFieldSet copyFrom)
 
static UnknownFieldSet parseFrom (byte[] data) throws InvalidProtocolBufferException
 
static UnknownFieldSet parseFrom (ByteString data) throws InvalidProtocolBufferException
 
static UnknownFieldSet parseFrom (CodedInputStream input) throws IOException
 
static UnknownFieldSet parseFrom (final byte[] data) throws InvalidProtocolBufferException
 
static UnknownFieldSet parseFrom (final ByteString data) throws InvalidProtocolBufferException
 
static UnknownFieldSet parseFrom (final CodedInputStream input) throws IOException
 
static UnknownFieldSet parseFrom (final InputStream input) throws IOException
 
static UnknownFieldSet parseFrom (InputStream input) throws IOException
 

Private Member Functions

 UnknownFieldSet ()
 

Private Attributes

final TreeMap< Integer, Fieldfields
 
final Map< Integer, Fieldfields
 
final Map< Integer, FieldfieldsDescending
 

Static Private Attributes

static final UnknownFieldSet defaultInstance
 
static final Parser PARSER = new Parser()
 

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.

Every Message contains an

(and every Message.Builder contains an Builder).

Most users will never need to use this class.

Author
kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda

keeps 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.

Every Message contains an

(and every Message.Builder contains a Builder).

Most users will never need to use this class.

Author
kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda

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

Constructor & Destructor Documentation

◆ UnknownFieldSet()

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

Member Function Documentation

◆ asMap() [1/2]

Map<Integer, Field> com.google.protobuf.UnknownFieldSet.asMap ( )
inline

Get a map of fields in the set by number.

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

◆ asMap() [2/2]

Map<Integer, Field> com.google.protobuf.UnknownFieldSet.asMap ( )
inline

Get a map of fields in the set by number.

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

◆ equals() [1/2]

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

◆ equals() [2/2]

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

◆ getDefaultInstance() [1/2]

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

◆ getDefaultInstance() [2/2]

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

◆ getDefaultInstanceForType() [1/2]

UnknownFieldSet com.google.protobuf.UnknownFieldSet.getDefaultInstanceForType ( )
inline

Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the

method of generated message classes in that this method is an abstract method of the

interface whereas

is a static method of a specific class. They return the same thing.

Implements com.google.protobuf.MessageLiteOrBuilder.

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

◆ getDefaultInstanceForType() [2/2]

UnknownFieldSet com.google.protobuf.UnknownFieldSet.getDefaultInstanceForType ( )
inline

Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the

method of generated message classes in that this method is an abstract method of the

interface whereas

is a static method of a specific class. They return the same thing.

Implements com.google.protobuf.MessageLiteOrBuilder.

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

◆ getField() [1/2]

Field com.google.protobuf.UnknownFieldSet.getField ( final int  number)
inline

Get a field by number. Returns an empty field if not present. Never returns

null

.

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

◆ getField() [2/2]

Field com.google.protobuf.UnknownFieldSet.getField ( int  number)
inline

Get a field by number. Returns an empty field if not present. Never returns

null

.

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

◆ getParserForType() [1/2]

final Parser com.google.protobuf.UnknownFieldSet.getParserForType ( )
inline

Gets the parser for a message of the same type as this message.

Implements com.google.protobuf.MessageLite.

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

◆ getParserForType() [2/2]

final Parser com.google.protobuf.UnknownFieldSet.getParserForType ( )
inline

Gets the parser for a message of the same type as this message.

Implements com.google.protobuf.MessageLite.

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

◆ getSerializedSize() [1/2]

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

Get the number of bytes required to encode this set.

Implements com.google.protobuf.MessageLite.

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

◆ getSerializedSize() [2/2]

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

Get the number of bytes required to encode this set.

Implements com.google.protobuf.MessageLite.

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

◆ getSerializedSizeAsMessageSet() [1/2]

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

Get the number of bytes required to encode this set using

MessageSet

wire format.

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

◆ getSerializedSizeAsMessageSet() [2/2]

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

Get the number of bytes required to encode this set using

MessageSet

wire format.

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

◆ hasField() [1/2]

boolean com.google.protobuf.UnknownFieldSet.hasField ( final int  number)
inline

Check if the given field number is present in the set.

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

◆ hasField() [2/2]

boolean com.google.protobuf.UnknownFieldSet.hasField ( int  number)
inline

Check if the given field number is present in the set.

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

◆ hashCode() [1/2]

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

◆ hashCode() [2/2]

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

◆ isInitialized() [1/2]

boolean com.google.protobuf.UnknownFieldSet.isInitialized ( )
inline

Returns true if all required fields in the message and all embedded messages are set, false otherwise.

See also: MessageOrBuilder#getInitializationErrorString()

Implements com.google.protobuf.MessageLiteOrBuilder.

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

◆ isInitialized() [2/2]

boolean com.google.protobuf.UnknownFieldSet.isInitialized ( )
inline

Returns true if all required fields in the message and all embedded messages are set, false otherwise.

See also: MessageOrBuilder#getInitializationErrorString()

Implements com.google.protobuf.MessageLiteOrBuilder.

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

◆ newBuilder() [1/4]

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

◆ newBuilder() [2/4]

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

◆ newBuilder() [3/4]

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

Create a new Builder and initialize it to be a copy of

copyFrom

.

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

◆ newBuilder() [4/4]

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

Create a new Builder and initialize it to be a copy of

copyFrom

.

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

◆ newBuilderForType() [1/2]

Builder com.google.protobuf.UnknownFieldSet.newBuilderForType ( )
inline

Constructs a new builder for a message of the same type as this message.

Implements com.google.protobuf.MessageLite.

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

◆ newBuilderForType() [2/2]

Builder com.google.protobuf.UnknownFieldSet.newBuilderForType ( )
inline

Constructs a new builder for a message of the same type as this message.

Implements com.google.protobuf.MessageLite.

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

◆ parseFrom() [1/8]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( byte[]  data) throws InvalidProtocolBufferException
inlinestatic

◆ parseFrom() [2/8]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( ByteString  data) throws InvalidProtocolBufferException
inlinestatic

◆ parseFrom() [3/8]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( CodedInputStream  input) throws IOException
inlinestatic

Parse an

from the given input stream.

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

◆ parseFrom() [4/8]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( final byte[]  data) throws InvalidProtocolBufferException
inlinestatic

◆ parseFrom() [5/8]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( final ByteString  data) throws InvalidProtocolBufferException
inlinestatic

◆ parseFrom() [6/8]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( final CodedInputStream  input) throws IOException
inlinestatic

◆ parseFrom() [7/8]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( final InputStream  input) throws IOException
inlinestatic

◆ parseFrom() [8/8]

static UnknownFieldSet com.google.protobuf.UnknownFieldSet.parseFrom ( InputStream  input) throws IOException
inlinestatic

◆ toBuilder() [1/2]

Builder com.google.protobuf.UnknownFieldSet.toBuilder ( )
inline

Constructs a builder initialized with the current message. Use this to derive a new message from the current one.

Implements com.google.protobuf.MessageLite.

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

◆ toBuilder() [2/2]

Builder com.google.protobuf.UnknownFieldSet.toBuilder ( )
inline

Constructs a builder initialized with the current message. Use this to derive a new message from the current one.

Implements com.google.protobuf.MessageLite.

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

◆ toByteArray() [1/2]

byte [] com.google.protobuf.UnknownFieldSet.toByteArray ( )
inline

Serializes the message to a

byte

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

Implements com.google.protobuf.MessageLite.

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

◆ toByteArray() [2/2]

byte [] com.google.protobuf.UnknownFieldSet.toByteArray ( )
inline

Serializes the message to a

byte

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

Implements com.google.protobuf.MessageLite.

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

◆ toByteString() [1/2]

ByteString com.google.protobuf.UnknownFieldSet.toByteString ( )
inline

Serializes the message to a

ByteString

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

Implements com.google.protobuf.MessageLite.

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

◆ toByteString() [2/2]

ByteString com.google.protobuf.UnknownFieldSet.toByteString ( )
inline

Serializes the message to a

ByteString

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

Implements com.google.protobuf.MessageLite.

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

◆ toString() [1/2]

String com.google.protobuf.UnknownFieldSet.toString ( )
inline

Converts the set to a string in protocol buffer text format. This is just a trivial wrapper around TextFormat.Printer#printToString(UnknownFieldSet).

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

◆ toString() [2/2]

String com.google.protobuf.UnknownFieldSet.toString ( )
inline

Converts the set to a string in protocol buffer text format. This is just a trivial wrapper around TextFormat.Printer#printToString(UnknownFieldSet).

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

◆ writeAsMessageSetTo() [1/2]

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

Serializes the set and writes it to

using

MessageSet

wire format.

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

◆ writeAsMessageSetTo() [2/2]

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

Serializes the set and writes it to

using

MessageSet

wire format.

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

◆ writeDelimitedTo() [1/2]

void com.google.protobuf.UnknownFieldSet.writeDelimitedTo ( OutputStream  output) throws IOException
inline

Like writeTo(OutputStream), but writes the size of the message as a varint before writing the data. This allows more data to be written to the stream after the message without the need to delimit the message data yourself. Use {} (or the static method YourMessageType.parseDelimitedFrom(InputStream) ) to parse messages written by this method.

Implements com.google.protobuf.MessageLite.

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

◆ writeDelimitedTo() [2/2]

void com.google.protobuf.UnknownFieldSet.writeDelimitedTo ( OutputStream  output) throws IOException
inline

Like writeTo(OutputStream), but writes the size of the message as a varint before writing the data. This allows more data to be written to the stream after the message without the need to delimit the message data yourself. Use {} (or the static method YourMessageType.parseDelimitedFrom(InputStream) ) to parse messages written by this method.

Implements com.google.protobuf.MessageLite.

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

◆ writeTo() [1/4]

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

Serializes the set and writes it to

.

Implements com.google.protobuf.MessageLite.

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

◆ writeTo() [2/4]

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

◆ writeTo() [3/4]

void com.google.protobuf.UnknownFieldSet.writeTo ( final OutputStream  output) throws IOException
inline

Serializes the message and writes it to

. This is just a trivial wrapper around writeTo(CodedOutputStream).

Implements com.google.protobuf.MessageLite.

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

◆ writeTo() [4/4]

void com.google.protobuf.UnknownFieldSet.writeTo ( OutputStream  output) throws IOException
inline

Serializes the message and writes it to

. This is just a trivial wrapper around writeTo(CodedOutputStream).

Implements com.google.protobuf.MessageLite.

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

Member Data Documentation

◆ defaultInstance

static final UnknownFieldSet com.google.protobuf.UnknownFieldSet.defaultInstance
staticprivate
Initial value:
=
Collections.<Integer, Field>emptyMap(), Collections.<Integer, Field>emptyMap())

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

◆ fields [1/2]

final TreeMap<Integer, Field> com.google.protobuf.UnknownFieldSet.fields
private

◆ fields [2/2]

final Map<Integer, Field> com.google.protobuf.UnknownFieldSet.fields
private

◆ fieldsDescending

final Map<Integer, Field> com.google.protobuf.UnknownFieldSet.fieldsDescending
private

A copy of fields who's iterator order is reversed.

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

◆ PARSER

static final Parser com.google.protobuf.UnknownFieldSet.PARSER = new Parser()
staticprivate

The documentation for this class was generated from the following file:
com.google.protobuf.UnknownFieldSet.getDefaultInstance
static UnknownFieldSet getDefaultInstance()
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java:76
gmock_output_test.output
output
Definition: bloaty/third_party/googletest/googlemock/test/gmock_output_test.py:175
grpc::protobuf::MessageLite
GRPC_CUSTOM_MESSAGELITE MessageLite
Definition: include/grpcpp/impl/codegen/config_protobuf.h:79
data
char data[kBufferLength]
Definition: abseil-cpp/absl/strings/internal/str_format/float_conversion.cc:1006
com.google.protobuf.UnknownFieldSet.UnknownFieldSet
UnknownFieldSet()
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnknownFieldSet.java:60
input
std::string input
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/tokenizer_unittest.cc:197
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