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

Classes

class  Builder
 
class  Builder
 
interface  BuilderParent
 
class  CachedDescriptorRetriever
 
class  ExtendableBuilder
 
class  ExtendableBuilder
 
class  ExtendableMessage
 
class  ExtendableMessage
 
interface  ExtendableMessageOrBuilder
 
interface  ExtendableMessageOrBuilder
 
interface  ExtensionDescriptorRetriever
 
class  FieldAccessorTable
 
class  GeneratedExtension
 
class  GeneratedExtension
 

Public Member Functions

Map< FieldDescriptor, Object > getAllFields ()
 
Map< FieldDescriptor, Object > getAllFields ()
 
Descriptor getDescriptorForType ()
 
Descriptor getDescriptorForType ()
 
Object getField (final FieldDescriptor field)
 
Object getField (final FieldDescriptor field)
 
FieldDescriptor getOneofFieldDescriptor (final OneofDescriptor oneof)
 
FieldDescriptor getOneofFieldDescriptor (final OneofDescriptor oneof)
 
Parser<? extends GeneratedMessagegetParserForType ()
 
Parser<? extends GeneratedMessagegetParserForType ()
 
Object getRepeatedField (final FieldDescriptor field, final int index)
 
Object getRepeatedField (final FieldDescriptor field, final int index)
 
int getRepeatedFieldCount (final FieldDescriptor field)
 
int getRepeatedFieldCount (final FieldDescriptor field)
 
int getSerializedSize ()
 
int getSerializedSize ()
 
UnknownFieldSet getUnknownFields ()
 
UnknownFieldSet getUnknownFields ()
 
boolean hasField (final FieldDescriptor field)
 
boolean hasField (final FieldDescriptor field)
 
boolean hasOneof (final OneofDescriptor oneof)
 
boolean hasOneof (final OneofDescriptor oneof)
 
boolean isInitialized ()
 
boolean isInitialized ()
 
void writeTo (final CodedOutputStream output) throws IOException
 
void writeTo (final 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.Message
Builder newBuilderForType ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
Builder toBuilder ()
 
- 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
Message getDefaultInstanceForType ()
 
Message getDefaultInstanceForType ()
 
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< ContainingType extends Message, Type > GeneratedExtension< ContainingType, TypenewFileScopedGeneratedExtension (final Class singularType, final Message defaultInstance)
 
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, TypenewFileScopedGeneratedExtension (final Class singularType, final Message defaultInstance)
 
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, TypenewFileScopedGeneratedExtension (final Class singularType, final Message defaultInstance, final String descriptorOuterClass, final String extensionName)
 
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, TypenewFileScopedGeneratedExtension (final Class singularType, final Message defaultInstance, final String descriptorOuterClass, final String extensionName)
 
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, TypenewMessageScopedGeneratedExtension (final Message scope, final int descriptorIndex, final Class singularType, final Message defaultInstance)
 
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, TypenewMessageScopedGeneratedExtension (final Message scope, final int descriptorIndex, final Class singularType, final Message defaultInstance)
 
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, TypenewMessageScopedGeneratedExtension (final Message scope, final String name, final Class singularType, final Message defaultInstance)
 
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, TypenewMessageScopedGeneratedExtension (final Message scope, final String name, final Class singularType, final Message defaultInstance)
 

Protected Member Functions

 GeneratedMessage ()
 
 GeneratedMessage ()
 
 GeneratedMessage (Builder<?> builder)
 
 GeneratedMessage (Builder<?> builder)
 
abstract FieldAccessorTable internalGetFieldAccessorTable ()
 
abstract FieldAccessorTable internalGetFieldAccessorTable ()
 
MapField internalGetMapField (int fieldNumber)
 
MapField internalGetMapField (int fieldNumber)
 
void makeExtensionsImmutable ()
 
void makeExtensionsImmutable ()
 
abstract Message.Builder newBuilderForType (BuilderParent parent)
 
abstract Message.Builder newBuilderForType (BuilderParent parent)
 
Message.Builder newBuilderForType (final AbstractMessage.BuilderParent parent)
 
Message.Builder newBuilderForType (final AbstractMessage.BuilderParent parent)
 
boolean parseUnknownField (CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException
 
boolean parseUnknownField (CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException
 
Object writeReplace () throws ObjectStreamException
 
Object writeReplace () throws ObjectStreamException
 
- Protected Member Functions inherited from com.google.protobuf.AbstractMessage
Message.Builder newBuilderForType (BuilderParent parent)
 
Message.Builder newBuilderForType (BuilderParent parent)
 

Static Protected Member Functions

static int computeStringSize (final int fieldNumber, final Object value)
 
static int computeStringSize (final int fieldNumber, final Object value)
 
static int computeStringSizeNoTag (final Object value)
 
static int computeStringSizeNoTag (final Object value)
 
static< M extends Message > M parseDelimitedWithIOException (Parser< M > parser, InputStream input) throws IOException
 
static< M extends Message > M parseDelimitedWithIOException (Parser< M > parser, InputStream input) throws IOException
 
static< M extends Message > M parseDelimitedWithIOException (Parser< M > parser, InputStream input, ExtensionRegistryLite extensions) throws IOException
 
static< M extends Message > M parseDelimitedWithIOException (Parser< M > parser, InputStream input, ExtensionRegistryLite extensions) throws IOException
 
static< M extends Message > M parseWithIOException (Parser< M > parser, CodedInputStream input) throws IOException
 
static< M extends Message > M parseWithIOException (Parser< M > parser, CodedInputStream input) throws IOException
 
static< M extends Message > M parseWithIOException (Parser< M > parser, CodedInputStream input, ExtensionRegistryLite extensions) throws IOException
 
static< M extends Message > M parseWithIOException (Parser< M > parser, CodedInputStream input, ExtensionRegistryLite extensions) throws IOException
 
static< M extends Message > M parseWithIOException (Parser< M > parser, InputStream input) throws IOException
 
static< M extends Message > M parseWithIOException (Parser< M > parser, InputStream input) throws IOException
 
static< M extends Message > M parseWithIOException (Parser< M > parser, InputStream input, ExtensionRegistryLite extensions) throws IOException
 
static< M extends Message > M parseWithIOException (Parser< M > parser, InputStream input, ExtensionRegistryLite extensions) throws IOException
 
static void writeString (CodedOutputStream output, final int fieldNumber, final Object value) throws IOException
 
static void writeString (CodedOutputStream output, final int fieldNumber, final Object value) throws IOException
 
static void writeStringNoTag (CodedOutputStream output, final Object value) throws IOException
 
static void writeStringNoTag (CodedOutputStream output, final Object value) throws IOException
 
- 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

UnknownFieldSet unknownFields
 
- Protected Attributes inherited from com.google.protobuf.AbstractMessage
int memoizedSize = -1
 

Static Protected Attributes

static boolean alwaysUseFieldBuilders = false
 

Private Member Functions

Map< FieldDescriptor, Object > getAllFieldsMutable (boolean getBytesForString)
 
Map< FieldDescriptor, Object > getAllFieldsMutable (boolean getBytesForString)
 

Static Private Member Functions

static< MessageType extends ExtendableMessage< MessageType > T Extension< MessageType, TcheckNotLite (ExtensionLite< MessageType, T > extension)
 
static< MessageType extends ExtendableMessage< MessageType > T Extension< MessageType, TcheckNotLite (ExtensionLite< MessageType, T > extension)
 
static Method getMethodOrDie (final Class clazz, final String name, final Class... params)
 
static Method getMethodOrDie (final Class clazz, final String name, final Class... params)
 
static Object invokeOrDie (final Method method, final Object object, final Object... params)
 
static Object invokeOrDie (final Method method, final Object object, final Object... params)
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

All generated protocol message classes extend this class. This class implements most of the Message and Builder interfaces using Java reflection. Users can ignore this class and pretend that generated messages implement the Message interface directly.

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

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

Constructor & Destructor Documentation

◆ GeneratedMessage() [1/4]

com.google.protobuf.GeneratedMessage.GeneratedMessage ( )
inlineprotected

◆ GeneratedMessage() [2/4]

com.google.protobuf.GeneratedMessage.GeneratedMessage ( Builder<?>  builder)
inlineprotected

◆ GeneratedMessage() [3/4]

com.google.protobuf.GeneratedMessage.GeneratedMessage ( )
inlineprotected

◆ GeneratedMessage() [4/4]

com.google.protobuf.GeneratedMessage.GeneratedMessage ( Builder<?>  builder)
inlineprotected

Member Function Documentation

◆ checkNotLite() [1/2]

static <MessageType extends ExtendableMessage<MessageType> T Extension<MessageType, T> com.google.protobuf.GeneratedMessage.checkNotLite ( ExtensionLite< MessageType, T extension)
inlinestaticprivate

◆ checkNotLite() [2/2]

static <MessageType extends ExtendableMessage<MessageType> T Extension<MessageType, T> com.google.protobuf.GeneratedMessage.checkNotLite ( ExtensionLite< MessageType, T extension)
inlinestaticprivate

◆ computeStringSize() [1/2]

static int com.google.protobuf.GeneratedMessage.computeStringSize ( final int  fieldNumber,
final Object  value 
)
inlinestaticprotected

◆ computeStringSize() [2/2]

static int com.google.protobuf.GeneratedMessage.computeStringSize ( final int  fieldNumber,
final Object  value 
)
inlinestaticprotected

◆ computeStringSizeNoTag() [1/2]

static int com.google.protobuf.GeneratedMessage.computeStringSizeNoTag ( final Object  value)
inlinestaticprotected

◆ computeStringSizeNoTag() [2/2]

static int com.google.protobuf.GeneratedMessage.computeStringSizeNoTag ( final Object  value)
inlinestaticprotected

◆ getAllFields() [1/2]

Map<FieldDescriptor, Object> com.google.protobuf.GeneratedMessage.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.

Reimplemented in com.google.protobuf.GeneratedMessage.ExtendableMessage< MessageType extends ExtendableMessage >, and com.google.protobuf.GeneratedMessage.ExtendableMessage< MessageType extends ExtendableMessage >.

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

◆ getAllFields() [2/2]

Map<FieldDescriptor, Object> com.google.protobuf.GeneratedMessage.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.

Reimplemented in com.google.protobuf.GeneratedMessage.ExtendableMessage< MessageType extends ExtendableMessage >, and com.google.protobuf.GeneratedMessage.ExtendableMessage< MessageType extends ExtendableMessage >.

Definition at line 196 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ getAllFieldsMutable() [1/2]

Map<FieldDescriptor, Object> com.google.protobuf.GeneratedMessage.getAllFieldsMutable ( boolean  getBytesForString)
inlineprivate

Internal helper to return a modifiable map containing all the fields. The returned Map is modifialbe so that the caller can add additional extension fields to implement getAllFields().

Parameters
getBytesForStringwhether to generate ByteString for string fields

Definition at line 118 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ getAllFieldsMutable() [2/2]

Map<FieldDescriptor, Object> com.google.protobuf.GeneratedMessage.getAllFieldsMutable ( boolean  getBytesForString)
inlineprivate

Internal helper to return a modifiable map containing all the fields. The returned Map is modifialbe so that the caller can add additional extension fields to implement getAllFields().

Parameters
getBytesForStringwhether to generate ByteString for string fields

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

◆ getDescriptorForType() [1/2]

Descriptor com.google.protobuf.GeneratedMessage.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 107 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ getDescriptorForType() [2/2]

Descriptor com.google.protobuf.GeneratedMessage.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 107 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ getField() [1/2]

Object com.google.protobuf.GeneratedMessage.getField ( final FieldDescriptor  field)
inline

◆ getField() [2/2]

Object com.google.protobuf.GeneratedMessage.getField ( final FieldDescriptor  field)
inline

◆ getMethodOrDie() [1/2]

static Method com.google.protobuf.GeneratedMessage.getMethodOrDie ( final Class  clazz,
final String  name,
final Class...  params 
)
inlinestaticprivate

Calls Class.getMethod and throws a RuntimeException if it fails.

Definition at line 1967 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ getMethodOrDie() [2/2]

static Method com.google.protobuf.GeneratedMessage.getMethodOrDie ( final Class  clazz,
final String  name,
final Class...  params 
)
inlinestaticprivate

Calls Class.getMethod and throws a RuntimeException if it fails.

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

◆ getOneofFieldDescriptor() [1/2]

FieldDescriptor com.google.protobuf.GeneratedMessage.getOneofFieldDescriptor ( final OneofDescriptor  oneof)
inline

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

Reimplemented from com.google.protobuf.AbstractMessage.

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

◆ getOneofFieldDescriptor() [2/2]

FieldDescriptor com.google.protobuf.GeneratedMessage.getOneofFieldDescriptor ( final OneofDescriptor  oneof)
inline

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

Reimplemented from com.google.protobuf.AbstractMessage.

Definition at line 222 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ getParserForType() [1/2]

Parser<? extends GeneratedMessage> com.google.protobuf.GeneratedMessage.getParserForType ( )
inline

◆ getParserForType() [2/2]

Parser<? extends GeneratedMessage> com.google.protobuf.GeneratedMessage.getParserForType ( )
inline

◆ getRepeatedField() [1/2]

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

◆ getRepeatedField() [2/2]

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

◆ getRepeatedFieldCount() [1/2]

int com.google.protobuf.GeneratedMessage.getRepeatedFieldCount ( final FieldDescriptor  field)
inline

◆ getRepeatedFieldCount() [2/2]

int com.google.protobuf.GeneratedMessage.getRepeatedFieldCount ( final FieldDescriptor  field)
inline

◆ getSerializedSize() [1/2]

int com.google.protobuf.GeneratedMessage.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 338 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ getSerializedSize() [2/2]

int com.google.protobuf.GeneratedMessage.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 338 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ getUnknownFields() [1/2]

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

◆ getUnknownFields() [2/2]

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

◆ hasField() [1/2]

boolean com.google.protobuf.GeneratedMessage.hasField ( final FieldDescriptor  field)
inline

◆ hasField() [2/2]

boolean com.google.protobuf.GeneratedMessage.hasField ( final FieldDescriptor  field)
inline

◆ hasOneof() [1/2]

boolean com.google.protobuf.GeneratedMessage.hasOneof ( final OneofDescriptor  oneof)
inline

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

Reimplemented from com.google.protobuf.AbstractMessage.

Definition at line 217 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ hasOneof() [2/2]

boolean com.google.protobuf.GeneratedMessage.hasOneof ( final OneofDescriptor  oneof)
inline

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

Reimplemented from com.google.protobuf.AbstractMessage.

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

◆ internalGetFieldAccessorTable() [1/2]

abstract FieldAccessorTable com.google.protobuf.GeneratedMessage.internalGetFieldAccessorTable ( )
abstractprotected

Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.

Reimplemented in com.google.protobuf.jruby.SentinelOuterClass.Sentinel, and com.google.protobuf.jruby.SentinelOuterClass.Sentinel.

◆ internalGetFieldAccessorTable() [2/2]

abstract FieldAccessorTable com.google.protobuf.GeneratedMessage.internalGetFieldAccessorTable ( )
abstractprotected

Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.

Reimplemented in com.google.protobuf.jruby.SentinelOuterClass.Sentinel, and com.google.protobuf.jruby.SentinelOuterClass.Sentinel.

◆ internalGetMapField() [1/2]

MapField com.google.protobuf.GeneratedMessage.internalGetMapField ( int  fieldNumber)
inlineprotected

Gets the map field with the given field number. This method should be overridden in the generated message class if the message contains map fields.

Unlike other field types, reflection support for map fields can't be implemented based on generated public API because we need to access a map field as a list in reflection API but the generated API only allows us to access it as a map. This method returns the underlying map field directly and thus enables us to access the map field as a list.

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

◆ internalGetMapField() [2/2]

MapField com.google.protobuf.GeneratedMessage.internalGetMapField ( int  fieldNumber)
inlineprotected

Gets the map field with the given field number. This method should be overridden in the generated message class if the message contains map fields.

Unlike other field types, reflection support for map fields can't be implemented based on generated public API because we need to access a map field as a list in reflection API but the generated API only allows us to access it as a map. This method returns the underlying map field directly and thus enables us to access the map field as a list.

Definition at line 2012 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ invokeOrDie() [1/2]

static Object com.google.protobuf.GeneratedMessage.invokeOrDie ( final Method  method,
final Object  object,
final Object...  params 
)
inlinestaticprivate

Calls invoke and throws a RuntimeException if it fails.

Definition at line 1979 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ invokeOrDie() [2/2]

static Object com.google.protobuf.GeneratedMessage.invokeOrDie ( final Method  method,
final Object  object,
final Object...  params 
)
inlinestaticprivate

Calls invoke and throws a RuntimeException if it fails.

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

◆ isInitialized() [1/2]

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

◆ isInitialized() [2/2]

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

◆ makeExtensionsImmutable() [1/2]

void com.google.protobuf.GeneratedMessage.makeExtensionsImmutable ( )
inlineprotected

◆ makeExtensionsImmutable() [2/2]

void com.google.protobuf.GeneratedMessage.makeExtensionsImmutable ( )
inlineprotected

◆ newBuilderForType() [1/4]

abstract Message.Builder com.google.protobuf.GeneratedMessage.newBuilderForType ( BuilderParent  parent)
abstractprotected

TODO(xiaofeng): remove this together with GeneratedMessage.BuilderParent.

◆ newBuilderForType() [2/4]

abstract Message.Builder com.google.protobuf.GeneratedMessage.newBuilderForType ( BuilderParent  parent)
abstractprotected

TODO(xiaofeng): remove this together with GeneratedMessage.BuilderParent.

◆ newBuilderForType() [3/4]

Message.Builder com.google.protobuf.GeneratedMessage.newBuilderForType ( final AbstractMessage.BuilderParent  parent)
inlineprotected

◆ newBuilderForType() [4/4]

Message.Builder com.google.protobuf.GeneratedMessage.newBuilderForType ( final AbstractMessage.BuilderParent  parent)
inlineprotected

◆ newFileScopedGeneratedExtension() [1/4]

static <ContainingType extends Message, Type> GeneratedExtension<ContainingType, Type> com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension ( final Class  singularType,
final Message  defaultInstance 
)
inlinestatic

For use by generated code only.

Definition at line 1638 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ newFileScopedGeneratedExtension() [2/4]

static <ContainingType extends Message, Type> GeneratedExtension<ContainingType, Type> com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension ( final Class  singularType,
final Message  defaultInstance 
)
inlinestatic

◆ newFileScopedGeneratedExtension() [3/4]

static <ContainingType extends Message, Type> GeneratedExtension<ContainingType, Type> com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension ( final Class  singularType,
final Message  defaultInstance,
final String  descriptorOuterClass,
final String  extensionName 
)
inlinestatic

Used in proto1 generated code only.

After enabling bridge, we can define proto2 extensions (the extended type is a proto2 mutable message) in a proto1 .proto file. For these extensions we should generate proto2 GeneratedExtensions.

Definition at line 1704 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ newFileScopedGeneratedExtension() [4/4]

static <ContainingType extends Message, Type> GeneratedExtension<ContainingType, Type> com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension ( final Class  singularType,
final Message  defaultInstance,
final String  descriptorOuterClass,
final String  extensionName 
)
inlinestatic

Used in proto1 generated code only.

After enabling bridge, we can define proto2 extensions (the extended type is a proto2 mutable message) in a proto1 .proto file. For these extensions we should generate proto2 GeneratedExtensions.

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

◆ newMessageScopedGeneratedExtension() [1/4]

static <ContainingType extends Message, Type> GeneratedExtension<ContainingType, Type> com.google.protobuf.GeneratedMessage.newMessageScopedGeneratedExtension ( final Message  scope,
final int  descriptorIndex,
final Class  singularType,
final Message  defaultInstance 
)
inlinestatic

For use by generated code only.

Definition at line 1616 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ newMessageScopedGeneratedExtension() [2/4]

static <ContainingType extends Message, Type> GeneratedExtension<ContainingType, Type> com.google.protobuf.GeneratedMessage.newMessageScopedGeneratedExtension ( final Message  scope,
final int  descriptorIndex,
final Class  singularType,
final Message  defaultInstance 
)
inlinestatic

◆ newMessageScopedGeneratedExtension() [3/4]

static <ContainingType extends Message, Type> GeneratedExtension<ContainingType, Type> com.google.protobuf.GeneratedMessage.newMessageScopedGeneratedExtension ( final Message  scope,
final String  name,
final Class  singularType,
final Message  defaultInstance 
)
inlinestatic

Used in proto1 generated code only.

After enabling bridge, we can define proto2 extensions (the extended type is a proto2 mutable message) in a proto1 .proto file. For these extensions we should generate proto2 GeneratedExtensions.

Definition at line 1677 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ newMessageScopedGeneratedExtension() [4/4]

static <ContainingType extends Message, Type> GeneratedExtension<ContainingType, Type> com.google.protobuf.GeneratedMessage.newMessageScopedGeneratedExtension ( final Message  scope,
final String  name,
final Class  singularType,
final Message  defaultInstance 
)
inlinestatic

Used in proto1 generated code only.

After enabling bridge, we can define proto2 extensions (the extended type is a proto2 mutable message) in a proto1 .proto file. For these extensions we should generate proto2 GeneratedExtensions.

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

◆ parseDelimitedWithIOException() [1/4]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException ( Parser< M >  parser,
InputStream  input 
) throws IOException
inlinestaticprotected

◆ parseDelimitedWithIOException() [2/4]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException ( Parser< M >  parser,
InputStream  input 
) throws IOException
inlinestaticprotected

◆ parseDelimitedWithIOException() [3/4]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException ( Parser< M >  parser,
InputStream  input,
ExtensionRegistryLite  extensions 
) throws IOException
inlinestaticprotected

◆ parseDelimitedWithIOException() [4/4]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException ( Parser< M >  parser,
InputStream  input,
ExtensionRegistryLite  extensions 
) throws IOException
inlinestaticprotected

◆ parseUnknownField() [1/2]

boolean com.google.protobuf.GeneratedMessage.parseUnknownField ( CodedInputStream  input,
UnknownFieldSet.Builder  unknownFields,
ExtensionRegistryLite  extensionRegistry,
int  tag 
) throws IOException
inlineprotected

Called by subclasses to parse an unknown field.

Returns
true
unless the tag is an end-group tag.

Definition at line 270 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ parseUnknownField() [2/2]

boolean com.google.protobuf.GeneratedMessage.parseUnknownField ( CodedInputStream  input,
UnknownFieldSet.Builder  unknownFields,
ExtensionRegistryLite  extensionRegistry,
int  tag 
) throws IOException
inlineprotected

Called by subclasses to parse an unknown field.

Returns
true
unless the tag is an end-group tag.

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

◆ parseWithIOException() [1/8]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseWithIOException ( Parser< M >  parser,
CodedInputStream  input 
) throws IOException
inlinestaticprotected

◆ parseWithIOException() [2/8]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseWithIOException ( Parser< M >  parser,
CodedInputStream  input 
) throws IOException
inlinestaticprotected

◆ parseWithIOException() [3/8]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseWithIOException ( Parser< M >  parser,
CodedInputStream  input,
ExtensionRegistryLite  extensions 
) throws IOException
inlinestaticprotected

◆ parseWithIOException() [4/8]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseWithIOException ( Parser< M >  parser,
CodedInputStream  input,
ExtensionRegistryLite  extensions 
) throws IOException
inlinestaticprotected

◆ parseWithIOException() [5/8]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseWithIOException ( Parser< M >  parser,
InputStream  input 
) throws IOException
inlinestaticprotected

◆ parseWithIOException() [6/8]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseWithIOException ( Parser< M >  parser,
InputStream  input 
) throws IOException
inlinestaticprotected

◆ parseWithIOException() [7/8]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseWithIOException ( Parser< M >  parser,
InputStream  input,
ExtensionRegistryLite  extensions 
) throws IOException
inlinestaticprotected

◆ parseWithIOException() [8/8]

static <M extends Message> M com.google.protobuf.GeneratedMessage.parseWithIOException ( Parser< M >  parser,
InputStream  input,
ExtensionRegistryLite  extensions 
) throws IOException
inlinestaticprotected

◆ writeReplace() [1/2]

Object com.google.protobuf.GeneratedMessage.writeReplace ( ) throws ObjectStreamException
inlineprotected

Replaces this object in the output stream with a serialized form. Part of Java's serialization magic. Generated sub-classes must override this method by calling

return super.writeReplace();
Returns
a SerializedForm of this message

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

◆ writeReplace() [2/2]

Object com.google.protobuf.GeneratedMessage.writeReplace ( ) throws ObjectStreamException
inlineprotected

Replaces this object in the output stream with a serialized form. Part of Java's serialization magic. Generated sub-classes must override this method by calling

return super.writeReplace();
Returns
a SerializedForm of this message

Definition at line 3000 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ writeString() [1/2]

static void com.google.protobuf.GeneratedMessage.writeString ( CodedOutputStream  output,
final int  fieldNumber,
final Object  value 
) throws IOException
inlinestaticprotected

◆ writeString() [2/2]

static void com.google.protobuf.GeneratedMessage.writeString ( CodedOutputStream  output,
final int  fieldNumber,
final Object  value 
) throws IOException
inlinestaticprotected

◆ writeStringNoTag() [1/2]

static void com.google.protobuf.GeneratedMessage.writeStringNoTag ( CodedOutputStream  output,
final Object  value 
) throws IOException
inlinestaticprotected

◆ writeStringNoTag() [2/2]

static void com.google.protobuf.GeneratedMessage.writeStringNoTag ( CodedOutputStream  output,
final Object  value 
) throws IOException
inlinestaticprotected

◆ writeTo() [1/2]

void com.google.protobuf.GeneratedMessage.writeTo ( final 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 333 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

◆ writeTo() [2/2]

void com.google.protobuf.GeneratedMessage.writeTo ( final 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 333 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.

Member Data Documentation

◆ alwaysUseFieldBuilders

static boolean com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders = false
staticprotected

For testing. Allows a test to disable the optimization that avoids using field builders for nested messages until they are requested. By disabling this optimization, existing tests can be reused to test the field builders.

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

◆ serialVersionUID

static final long com.google.protobuf.GeneratedMessage.serialVersionUID = 1L
staticprivate

◆ unknownFields

UnknownFieldSet com.google.protobuf.GeneratedMessage.unknownFields
protected

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
Message
Definition: protobuf/php/ext/google/protobuf/message.c:53


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