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

Classes

class  Builder
 

Public Member Functions

Map< FieldDescriptor, Object > getAllFields ()
 
Map< FieldDescriptor, Object > getAllFields ()
 
DynamicMessage getDefaultInstanceForType ()
 
DynamicMessage getDefaultInstanceForType ()
 
Descriptor getDescriptorForType ()
 
Descriptor getDescriptorForType ()
 
Object getField (FieldDescriptor field)
 
Object getField (FieldDescriptor field)
 
FieldDescriptor getOneofFieldDescriptor (OneofDescriptor oneof)
 
FieldDescriptor getOneofFieldDescriptor (OneofDescriptor oneof)
 
Parser< DynamicMessagegetParserForType ()
 
Parser< DynamicMessagegetParserForType ()
 
Object getRepeatedField (FieldDescriptor field, int index)
 
Object getRepeatedField (FieldDescriptor field, int index)
 
int getRepeatedFieldCount (FieldDescriptor field)
 
int getRepeatedFieldCount (FieldDescriptor field)
 
int getSerializedSize ()
 
int getSerializedSize ()
 
UnknownFieldSet getUnknownFields ()
 
UnknownFieldSet getUnknownFields ()
 
boolean hasField (FieldDescriptor field)
 
boolean hasField (FieldDescriptor field)
 
boolean hasOneof (OneofDescriptor oneof)
 
boolean hasOneof (OneofDescriptor oneof)
 
boolean isInitialized ()
 
boolean isInitialized ()
 
Builder newBuilderForType ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
Builder toBuilder ()
 
void writeTo (CodedOutputStream output) throws IOException
 
void writeTo (CodedOutputStream output) throws IOException
 
- Public Member Functions inherited from com.google.protobuf.AbstractMessage
boolean equals (final Object other)
 
boolean equals (final Object other)
 
List< String > findInitializationErrors ()
 
List< String > findInitializationErrors ()
 
String getInitializationErrorString ()
 
String getInitializationErrorString ()
 
int hashCode ()
 
int hashCode ()
 
final String toString ()
 
final String toString ()
 
- Public Member Functions inherited from com.google.protobuf.MessageLite
byte[] toByteArray ()
 
byte[] toByteArray ()
 
ByteString toByteString ()
 
ByteString toByteString ()
 
void writeDelimitedTo (OutputStream output) throws IOException
 
void writeDelimitedTo (OutputStream output) throws IOException
 
void writeTo (OutputStream output) throws IOException
 
void writeTo (OutputStream output) throws IOException
 
- Public Member Functions inherited from com.google.protobuf.MessageOrBuilder
Object getField (Descriptors.FieldDescriptor field)
 
Object getField (Descriptors.FieldDescriptor field)
 
Descriptors.FieldDescriptor getOneofFieldDescriptor (Descriptors.OneofDescriptor oneof)
 
Descriptors.FieldDescriptor getOneofFieldDescriptor (Descriptors.OneofDescriptor oneof)
 
Object getRepeatedField (Descriptors.FieldDescriptor field, int index)
 
Object getRepeatedField (Descriptors.FieldDescriptor field, int index)
 
int getRepeatedFieldCount (Descriptors.FieldDescriptor field)
 
int getRepeatedFieldCount (Descriptors.FieldDescriptor field)
 
boolean hasField (Descriptors.FieldDescriptor field)
 
boolean hasField (Descriptors.FieldDescriptor field)
 
boolean hasOneof (Descriptors.OneofDescriptor oneof)
 
boolean hasOneof (Descriptors.OneofDescriptor oneof)
 

Static Public Member Functions

static DynamicMessage getDefaultInstance (Descriptor type)
 
static DynamicMessage getDefaultInstance (Descriptor type)
 
static Builder newBuilder (Descriptor type)
 
static Builder newBuilder (Descriptor type)
 
static Builder newBuilder (Message prototype)
 
static Builder newBuilder (Message prototype)
 
static DynamicMessage parseFrom (Descriptor type, byte[] data) throws InvalidProtocolBufferException
 
static DynamicMessage parseFrom (Descriptor type, byte[] data) throws InvalidProtocolBufferException
 
static DynamicMessage parseFrom (Descriptor type, byte[] data, ExtensionRegistry extensionRegistry) throws InvalidProtocolBufferException
 
static DynamicMessage parseFrom (Descriptor type, byte[] data, ExtensionRegistry extensionRegistry) throws InvalidProtocolBufferException
 
static DynamicMessage parseFrom (Descriptor type, ByteString data) throws InvalidProtocolBufferException
 
static DynamicMessage parseFrom (Descriptor type, ByteString data) throws InvalidProtocolBufferException
 
static DynamicMessage parseFrom (Descriptor type, ByteString data, ExtensionRegistry extensionRegistry) throws InvalidProtocolBufferException
 
static DynamicMessage parseFrom (Descriptor type, ByteString data, ExtensionRegistry extensionRegistry) throws InvalidProtocolBufferException
 
static DynamicMessage parseFrom (Descriptor type, CodedInputStream input) throws IOException
 
static DynamicMessage parseFrom (Descriptor type, CodedInputStream input) throws IOException
 
static DynamicMessage parseFrom (Descriptor type, CodedInputStream input, ExtensionRegistry extensionRegistry) throws IOException
 
static DynamicMessage parseFrom (Descriptor type, CodedInputStream input, ExtensionRegistry extensionRegistry) throws IOException
 
static DynamicMessage parseFrom (Descriptor type, InputStream input) throws IOException
 
static DynamicMessage parseFrom (Descriptor type, InputStream input) throws IOException
 
static DynamicMessage parseFrom (Descriptor type, InputStream input, ExtensionRegistry extensionRegistry) throws IOException
 
static DynamicMessage parseFrom (Descriptor type, InputStream input, ExtensionRegistry extensionRegistry) throws IOException
 

Private Member Functions

void verifyContainingType (FieldDescriptor field)
 
void verifyContainingType (FieldDescriptor field)
 
void verifyOneofContainingType (OneofDescriptor oneof)
 
void verifyOneofContainingType (OneofDescriptor oneof)
 

Private Attributes

final FieldSet< FieldDescriptorfields
 
int memoizedSize = -1
 
final FieldDescriptor[] oneofCases
 
final Descriptor type
 
final UnknownFieldSet unknownFields
 

Additional Inherited Members

- Protected Member Functions inherited from com.google.protobuf.AbstractMessage
Message.Builder newBuilderForType (BuilderParent parent)
 
Message.Builder newBuilderForType (BuilderParent parent)
 
- Static Protected Member Functions inherited from com.google.protobuf.AbstractMessage
static int hashBoolean (boolean b)
 
static int hashBoolean (boolean b)
 
static int hashEnum (EnumLite e)
 
static int hashEnum (EnumLite e)
 
static int hashEnumList (List<? extends EnumLite > list)
 
static int hashEnumList (List<? extends EnumLite > list)
 
static int hashFields (int hash, Map< FieldDescriptor, Object > map)
 
static int hashFields (int hash, Map< FieldDescriptor, Object > map)
 
static int hashLong (long n)
 
static int hashLong (long n)
 
- Protected Attributes inherited from com.google.protobuf.AbstractMessage
int memoizedSize = -1
 

Detailed Description

An implementation of Message that can represent arbitrary types, given a {}. kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda

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

Member Function Documentation

◆ getAllFields() [1/2]

Map<FieldDescriptor, Object> com.google.protobuf.DynamicMessage.getAllFields ( )
inline

Returns a collection of all the fields in this message which are set and their corresponding values. A singular ("required" or "optional") field is set iff hasField() returns true for that field. A "repeated" field is set iff getRepeatedFieldCount() is greater than zero. The values are exactly what would be returned by calling getField(Descriptors.FieldDescriptor) for each field. The map is guaranteed to be a sorted map, so iterating over it will return fields in order by field number.
If this is for a builder, the returned map may or may not reflect future changes to the builder. Either way, the returned map is itself unmodifiable.

Implements com.google.protobuf.MessageOrBuilder.

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

◆ getAllFields() [2/2]

Map<FieldDescriptor, Object> com.google.protobuf.DynamicMessage.getAllFields ( )
inline

Returns a collection of all the fields in this message which are set and their corresponding values. A singular ("required" or "optional") field is set iff hasField() returns true for that field. A "repeated" field is set iff getRepeatedFieldCount() is greater than zero. The values are exactly what would be returned by calling getField(Descriptors.FieldDescriptor) for each field. The map is guaranteed to be a sorted map, so iterating over it will return fields in order by field number.
If this is for a builder, the returned map may or may not reflect future changes to the builder. Either way, the returned map is itself unmodifiable.

Implements com.google.protobuf.MessageOrBuilder.

Definition at line 166 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ getDefaultInstance() [1/2]

static DynamicMessage com.google.protobuf.DynamicMessage.getDefaultInstance ( Descriptor  type)
inlinestatic

Get a

DynamicMessage

representing the default instance of the given type.

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

◆ getDefaultInstance() [2/2]

static DynamicMessage com.google.protobuf.DynamicMessage.getDefaultInstance ( Descriptor  type)
inlinestatic

Get a

DynamicMessage

representing the default instance of the given type.

Definition at line 78 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ getDefaultInstanceForType() [1/2]

DynamicMessage com.google.protobuf.DynamicMessage.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.MessageOrBuilder.

Definition at line 161 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ getDefaultInstanceForType() [2/2]

DynamicMessage com.google.protobuf.DynamicMessage.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.MessageOrBuilder.

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

◆ getDescriptorForType() [1/2]

Descriptor com.google.protobuf.DynamicMessage.getDescriptorForType ( )
inline

Get the message's type's descriptor. This differs from the

getDescriptor()

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

interface whereas

getDescriptor()

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

Implements com.google.protobuf.MessageOrBuilder.

Definition at line 156 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ getDescriptorForType() [2/2]

Descriptor com.google.protobuf.DynamicMessage.getDescriptorForType ( )
inline

Get the message's type's descriptor. This differs from the

getDescriptor()

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

interface whereas

getDescriptor()

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

Implements com.google.protobuf.MessageOrBuilder.

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

◆ getField() [1/2]

Object com.google.protobuf.DynamicMessage.getField ( FieldDescriptor  field)
inline

◆ getField() [2/2]

Object com.google.protobuf.DynamicMessage.getField ( FieldDescriptor  field)
inline

◆ getOneofFieldDescriptor() [1/2]

FieldDescriptor com.google.protobuf.DynamicMessage.getOneofFieldDescriptor ( OneofDescriptor  oneof)
inline

TODO(jieluo): Clear it when all subclasses have implemented this method.

Reimplemented from com.google.protobuf.AbstractMessage.

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

◆ getOneofFieldDescriptor() [2/2]

FieldDescriptor com.google.protobuf.DynamicMessage.getOneofFieldDescriptor ( OneofDescriptor  oneof)
inline

TODO(jieluo): Clear it when all subclasses have implemented this method.

Reimplemented from com.google.protobuf.AbstractMessage.

Definition at line 181 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ getParserForType() [1/2]

Parser<DynamicMessage> com.google.protobuf.DynamicMessage.getParserForType ( )
inline

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

Implements com.google.protobuf.Message.

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

◆ getParserForType() [2/2]

Parser<DynamicMessage> com.google.protobuf.DynamicMessage.getParserForType ( )
inline

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

Implements com.google.protobuf.Message.

Definition at line 283 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ getRepeatedField() [1/2]

Object com.google.protobuf.DynamicMessage.getRepeatedField ( FieldDescriptor  field,
int  index 
)
inline

◆ getRepeatedField() [2/2]

Object com.google.protobuf.DynamicMessage.getRepeatedField ( FieldDescriptor  field,
int  index 
)
inline

◆ getRepeatedFieldCount() [1/2]

int com.google.protobuf.DynamicMessage.getRepeatedFieldCount ( FieldDescriptor  field)
inline

◆ getRepeatedFieldCount() [2/2]

int com.google.protobuf.DynamicMessage.getRepeatedFieldCount ( FieldDescriptor  field)
inline

◆ getSerializedSize() [1/2]

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

Get the number of bytes required to encode this message. The result is only computed on the first call and memoized after that.

Reimplemented from com.google.protobuf.AbstractMessage.

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

◆ getSerializedSize() [2/2]

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

Get the number of bytes required to encode this message. The result is only computed on the first call and memoized after that.

Reimplemented from com.google.protobuf.AbstractMessage.

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

◆ getUnknownFields() [1/2]

UnknownFieldSet com.google.protobuf.DynamicMessage.getUnknownFields ( )
inline

◆ getUnknownFields() [2/2]

UnknownFieldSet com.google.protobuf.DynamicMessage.getUnknownFields ( )
inline

◆ hasField() [1/2]

boolean com.google.protobuf.DynamicMessage.hasField ( FieldDescriptor  field)
inline

◆ hasField() [2/2]

boolean com.google.protobuf.DynamicMessage.hasField ( FieldDescriptor  field)
inline

◆ hasOneof() [1/2]

boolean com.google.protobuf.DynamicMessage.hasOneof ( OneofDescriptor  oneof)
inline

TODO(jieluo): Clear it when all subclasses have implemented this method.

Reimplemented from com.google.protobuf.AbstractMessage.

Definition at line 171 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ hasOneof() [2/2]

boolean com.google.protobuf.DynamicMessage.hasOneof ( OneofDescriptor  oneof)
inline

TODO(jieluo): Clear it when all subclasses have implemented this method.

Reimplemented from com.google.protobuf.AbstractMessage.

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

◆ isInitialized() [1/2]

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

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

See also: MessageOrBuilder#getInitializationErrorString()

Reimplemented from com.google.protobuf.AbstractMessage.

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

◆ isInitialized() [2/2]

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

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

See also: MessageOrBuilder#getInitializationErrorString()

Reimplemented from com.google.protobuf.AbstractMessage.

Definition at line 240 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ newBuilder() [1/4]

static Builder com.google.protobuf.DynamicMessage.newBuilder ( Descriptor  type)
inlinestatic

◆ newBuilder() [2/4]

static Builder com.google.protobuf.DynamicMessage.newBuilder ( Descriptor  type)
inlinestatic

Construct a Message.Builder for the given type.

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

◆ newBuilder() [3/4]

static Builder com.google.protobuf.DynamicMessage.newBuilder ( Message  prototype)
inlinestatic

Construct a Message.Builder for a message of the same type as

prototype

, and initialize it with

prototype

's contents.

Definition at line 148 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ newBuilder() [4/4]

static Builder com.google.protobuf.DynamicMessage.newBuilder ( Message  prototype)
inlinestatic

Construct a Message.Builder for a message of the same type as

prototype

, and initialize it with

prototype

's contents.

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

◆ newBuilderForType() [1/2]

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

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

Implements com.google.protobuf.Message.

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

◆ newBuilderForType() [2/2]

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

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

Implements com.google.protobuf.Message.

Definition at line 273 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ parseFrom() [1/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
byte[]  data 
) throws InvalidProtocolBufferException
inlinestatic

Parse

as a message of the given type and return it.

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

◆ parseFrom() [2/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
byte[]  data 
) throws InvalidProtocolBufferException
inlinestatic

Parse

as a message of the given type and return it.

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

◆ parseFrom() [3/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
byte[]  data,
ExtensionRegistry  extensionRegistry 
) throws InvalidProtocolBufferException
inlinestatic

Parse

as a message of the given type and return it.

Definition at line 122 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ parseFrom() [4/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
byte[]  data,
ExtensionRegistry  extensionRegistry 
) throws InvalidProtocolBufferException
inlinestatic

Parse

as a message of the given type and return it.

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

◆ parseFrom() [5/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
ByteString  data 
) throws InvalidProtocolBufferException
inlinestatic

Parse

as a message of the given type and return it.

Definition at line 103 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ parseFrom() [6/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
ByteString  data 
) throws InvalidProtocolBufferException
inlinestatic

Parse

as a message of the given type and return it.

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

◆ parseFrom() [7/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
ByteString  data,
ExtensionRegistry  extensionRegistry 
) throws InvalidProtocolBufferException
inlinestatic

Parse

as a message of the given type and return it.

Definition at line 109 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ parseFrom() [8/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
ByteString  data,
ExtensionRegistry  extensionRegistry 
) throws InvalidProtocolBufferException
inlinestatic

Parse

as a message of the given type and return it.

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

◆ parseFrom() [9/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
CodedInputStream  input 
) throws IOException
inlinestatic

Parse a message of the given type from the given input stream.

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

◆ parseFrom() [10/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
CodedInputStream  input 
) throws IOException
inlinestatic

Parse a message of the given type from the given input stream.

Definition at line 90 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ parseFrom() [11/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
CodedInputStream  input,
ExtensionRegistry  extensionRegistry 
) throws IOException
inlinestatic

Parse a message of the given type from the given input stream.

Definition at line 96 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ parseFrom() [12/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
CodedInputStream  input,
ExtensionRegistry  extensionRegistry 
) throws IOException
inlinestatic

Parse a message of the given type from the given input stream.

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

◆ parseFrom() [13/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
InputStream  input 
) throws IOException
inlinestatic

Parse a message of the given type from

and return it.

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

◆ parseFrom() [14/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
InputStream  input 
) throws IOException
inlinestatic

Parse a message of the given type from

and return it.

Definition at line 129 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ parseFrom() [15/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
InputStream  input,
ExtensionRegistry  extensionRegistry 
) throws IOException
inlinestatic

Parse a message of the given type from

and return it.

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

◆ parseFrom() [16/16]

static DynamicMessage com.google.protobuf.DynamicMessage.parseFrom ( Descriptor  type,
InputStream  input,
ExtensionRegistry  extensionRegistry 
) throws IOException
inlinestatic

Parse a message of the given type from

and return it.

Definition at line 134 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ toBuilder() [1/2]

Builder com.google.protobuf.DynamicMessage.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.Message.

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

◆ toBuilder() [2/2]

Builder com.google.protobuf.DynamicMessage.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.Message.

Definition at line 278 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ verifyContainingType() [1/2]

void com.google.protobuf.DynamicMessage.verifyContainingType ( FieldDescriptor  field)
inlineprivate

Verifies that the field is a field of this message.

Definition at line 303 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ verifyContainingType() [2/2]

void com.google.protobuf.DynamicMessage.verifyContainingType ( FieldDescriptor  field)
inlineprivate

Verifies that the field is a field of this message.

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

◆ verifyOneofContainingType() [1/2]

void com.google.protobuf.DynamicMessage.verifyOneofContainingType ( OneofDescriptor  oneof)
inlineprivate

Verifies that the oneof is an oneof of this message.

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

◆ verifyOneofContainingType() [2/2]

void com.google.protobuf.DynamicMessage.verifyOneofContainingType ( OneofDescriptor  oneof)
inlineprivate

Verifies that the oneof is an oneof of this message.

Definition at line 310 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

◆ writeTo() [1/2]

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

Serializes the message and writes it to

. This does not flush or close the stream.

Reimplemented from com.google.protobuf.AbstractMessage.

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

◆ writeTo() [2/2]

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

Serializes the message and writes it to

. This does not flush or close the stream.

Reimplemented from com.google.protobuf.AbstractMessage.

Definition at line 245 of file protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java.

Member Data Documentation

◆ fields

final FieldSet< FieldDescriptor > com.google.protobuf.DynamicMessage.fields
private

◆ memoizedSize

int com.google.protobuf.DynamicMessage.memoizedSize = -1
private

◆ oneofCases

final FieldDescriptor [] com.google.protobuf.DynamicMessage.oneofCases
private

◆ type

final Descriptor com.google.protobuf.DynamicMessage.type
private

◆ unknownFields

final UnknownFieldSet com.google.protobuf.DynamicMessage.unknownFields
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
grpc::protobuf::MessageLite
GRPC_CUSTOM_MESSAGELITE MessageLite
Definition: include/grpcpp/impl/codegen/config_protobuf.h:79
com.google.protobuf.DynamicMessage.getDefaultInstance
static DynamicMessage getDefaultInstance(Descriptor type)
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/DynamicMessage.java:78
data
char data[kBufferLength]
Definition: abseil-cpp/absl/strings/internal/str_format/float_conversion.cc:1006
input
std::string input
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/tokenizer_unittest.cc:197
Message
Definition: protobuf/php/ext/google/protobuf/message.c:53


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