Classes | 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.GeneratedMessageV3 Class Referenceabstract
Inheritance diagram for com.google.protobuf.GeneratedMessageV3:
Inheritance graph
[legend]

Classes

class  Builder
 
interface  BuilderParent
 
class  ExtendableBuilder
 
class  ExtendableMessage
 
interface  ExtendableMessageOrBuilder
 
interface  ExtensionDescriptorRetriever
 
class  FieldAccessorTable
 
class  UnusedPrivateParameter
 

Public Member Functions

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

Protected Member Functions

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

Static Protected Member Functions

static boolean canUseUnsafe ()
 
static int computeStringSize (final int fieldNumber, final Object value)
 
static int computeStringSizeNoTag (final Object value)
 
static BooleanList emptyBooleanList ()
 
static DoubleList emptyDoubleList ()
 
static FloatList emptyFloatList ()
 
static IntList emptyIntList ()
 
static LongList emptyLongList ()
 
static BooleanList mutableCopy (BooleanList list)
 
static DoubleList mutableCopy (DoubleList list)
 
static FloatList mutableCopy (FloatList list)
 
static IntList mutableCopy (IntList list)
 
static LongList mutableCopy (LongList list)
 
static BooleanList newBooleanList ()
 
static DoubleList newDoubleList ()
 
static FloatList newFloatList ()
 
static IntList newIntList ()
 
static LongList newLongList ()
 
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 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, InputStream input) throws IOException
 
static< M extends Message > M parseWithIOException (Parser< M > parser, InputStream input, ExtensionRegistryLite extensions) throws IOException
 
static< V > void serializeBooleanMapTo (CodedOutputStream out, MapField< Boolean, V > field, MapEntry< Boolean, V > defaultEntry, int fieldNumber) throws IOException
 
static< V > void serializeIntegerMapTo (CodedOutputStream out, MapField< Integer, V > field, MapEntry< Integer, V > defaultEntry, int fieldNumber) throws IOException
 
static< V > void serializeLongMapTo (CodedOutputStream out, MapField< Long, V > field, MapEntry< Long, V > defaultEntry, int fieldNumber) throws IOException
 
static< V > void serializeStringMapTo (CodedOutputStream out, MapField< String, V > field, MapEntry< String, V > defaultEntry, int fieldNumber) 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 Protected Member Functions inherited from com.google.protobuf.AbstractMessage
static int hashBoolean (boolean b)
 
static int hashEnum (EnumLite e)
 
static int hashEnumList (List<? extends EnumLite > list)
 
static int hashFields (int hash, Map< FieldDescriptor, Object > map)
 
static int hashLong (long n)
 
- Static Protected Member Functions inherited from com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >
static< T > void addAll (final Iterable< T > values, final Collection<? super T > list)
 
static< T > void addAll (final Iterable< T > values, final List<? super T > list)
 
static void checkByteStringIsUtf8 (ByteString byteString) throws IllegalArgumentException
 

Protected Attributes

UnknownFieldSet unknownFields
 
- Protected Attributes inherited from com.google.protobuf.AbstractMessage
int memoizedSize = -1
 
- Protected Attributes inherited from com.google.protobuf.AbstractMessageLite< MessageType extends AbstractMessageLite< MessageType, BuilderType, BuilderType extends AbstractMessageLite.Builder< MessageType, BuilderType >
int memoizedHashCode = 0
 

Static Protected Attributes

static boolean alwaysUseFieldBuilders = false
 

Private Member Functions

Map< FieldDescriptor, Object > getAllFieldsMutable (boolean getBytesForString)
 

Static Private Member Functions

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 Object invokeOrDie (final Method method, final Object object, final Object... params)
 
static< V > void maybeSerializeBooleanEntryTo (CodedOutputStream out, Map< Boolean, V > m, MapEntry< Boolean, V > defaultEntry, int fieldNumber, boolean key) throws IOException
 
static< K, V > void serializeMapTo (CodedOutputStream out, Map< K, V > m, MapEntry< K, V > defaultEntry, int fieldNumber) throws IOException
 

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 79 of file GeneratedMessageV3.java.

Constructor & Destructor Documentation

◆ GeneratedMessageV3() [1/2]

com.google.protobuf.GeneratedMessageV3.GeneratedMessageV3 ( )
inlineprotected

Definition at line 93 of file GeneratedMessageV3.java.

◆ GeneratedMessageV3() [2/2]

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

Definition at line 97 of file GeneratedMessageV3.java.

Member Function Documentation

◆ canUseUnsafe()

static boolean com.google.protobuf.GeneratedMessageV3.canUseUnsafe ( )
inlinestaticprotected

Definition at line 383 of file GeneratedMessageV3.java.

◆ checkNotLite()

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

Definition at line 2816 of file GeneratedMessageV3.java.

◆ computeStringSize()

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

Definition at line 2825 of file GeneratedMessageV3.java.

◆ computeStringSizeNoTag()

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

Definition at line 2833 of file GeneratedMessageV3.java.

◆ emptyBooleanList()

static BooleanList com.google.protobuf.GeneratedMessageV3.emptyBooleanList ( )
inlinestaticprotected

Definition at line 443 of file GeneratedMessageV3.java.

◆ emptyDoubleList()

static DoubleList com.google.protobuf.GeneratedMessageV3.emptyDoubleList ( )
inlinestaticprotected

Definition at line 429 of file GeneratedMessageV3.java.

◆ emptyFloatList()

static FloatList com.google.protobuf.GeneratedMessageV3.emptyFloatList ( )
inlinestaticprotected

Definition at line 415 of file GeneratedMessageV3.java.

◆ emptyIntList()

static IntList com.google.protobuf.GeneratedMessageV3.emptyIntList ( )
inlinestaticprotected

Definition at line 387 of file GeneratedMessageV3.java.

◆ emptyLongList()

static LongList com.google.protobuf.GeneratedMessageV3.emptyLongList ( )
inlinestaticprotected

Definition at line 401 of file GeneratedMessageV3.java.

◆ getAllFields()

Map<FieldDescriptor, Object> com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.ExtendableMessage< MessageType extends ExtendableMessage >.

Definition at line 229 of file GeneratedMessageV3.java.

◆ getAllFieldsMutable()

Map<FieldDescriptor, Object> com.google.protobuf.GeneratedMessageV3.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 151 of file GeneratedMessageV3.java.

◆ getDescriptorForType()

Descriptor com.google.protobuf.GeneratedMessageV3.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

Message

interface whereas

getDescriptor()

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

Implements com.google.protobuf.MessageOrBuilder.

Definition at line 125 of file GeneratedMessageV3.java.

◆ getField()

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

◆ getMethodOrDie()

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

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

Definition at line 1765 of file GeneratedMessageV3.java.

◆ getOneofFieldDescriptor()

FieldDescriptor com.google.protobuf.GeneratedMessageV3.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 255 of file GeneratedMessageV3.java.

◆ getParserForType()

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

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

Implements com.google.protobuf.Message.

Definition at line 102 of file GeneratedMessageV3.java.

◆ getRepeatedField()

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

◆ getRepeatedFieldCount()

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

◆ getSerializedSize()

int com.google.protobuf.GeneratedMessageV3.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 464 of file GeneratedMessageV3.java.

◆ getUnknownFields()

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

Get the UnknownFieldSet for this message.

Implements com.google.protobuf.MessageOrBuilder.

Definition at line 294 of file GeneratedMessageV3.java.

◆ hasField()

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

◆ hasOneof()

boolean com.google.protobuf.GeneratedMessageV3.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 250 of file GeneratedMessageV3.java.

◆ internalGetFieldAccessorTable()

abstract FieldAccessorTable com.google.protobuf.GeneratedMessageV3.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.

◆ internalGetMapField()

MapField com.google.protobuf.GeneratedMessageV3.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 1810 of file GeneratedMessageV3.java.

◆ invokeOrDie()

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

Calls invoke and throws a RuntimeException if it fails.

Definition at line 1777 of file GeneratedMessageV3.java.

◆ isInitialized()

boolean com.google.protobuf.GeneratedMessageV3.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.

Reimplemented in com.google.protobuf.GeneratedMessageV3.ExtendableMessage< MessageType extends ExtendableMessage >.

Definition at line 199 of file GeneratedMessageV3.java.

◆ makeExtensionsImmutable()

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

Used by parsing constructors in generated classes.

Reimplemented in com.google.protobuf.GeneratedMessageV3.ExtendableMessage< MessageType extends ExtendableMessage >.

Definition at line 503 of file GeneratedMessageV3.java.

◆ maybeSerializeBooleanEntryTo()

static <V> void com.google.protobuf.GeneratedMessageV3.maybeSerializeBooleanEntryTo ( CodedOutputStream  out,
Map< Boolean, V >  m,
MapEntry< Boolean, V >  defaultEntry,
int  fieldNumber,
boolean  key 
) throws IOException
inlinestaticprivate

Definition at line 2954 of file GeneratedMessageV3.java.

◆ mergeFromAndMakeImmutableInternal()

void com.google.protobuf.GeneratedMessageV3.mergeFromAndMakeImmutableInternal ( CodedInputStream  input,
ExtensionRegistryLite  extensionRegistry 
) throws InvalidProtocolBufferException
inlineprotected

Definition at line 129 of file GeneratedMessageV3.java.

◆ mutableCopy() [1/5]

static BooleanList com.google.protobuf.GeneratedMessageV3.mutableCopy ( BooleanList  list)
inlinestaticprotected

Definition at line 451 of file GeneratedMessageV3.java.

◆ mutableCopy() [2/5]

static DoubleList com.google.protobuf.GeneratedMessageV3.mutableCopy ( DoubleList  list)
inlinestaticprotected

Definition at line 437 of file GeneratedMessageV3.java.

◆ mutableCopy() [3/5]

static FloatList com.google.protobuf.GeneratedMessageV3.mutableCopy ( FloatList  list)
inlinestaticprotected

Definition at line 423 of file GeneratedMessageV3.java.

◆ mutableCopy() [4/5]

static IntList com.google.protobuf.GeneratedMessageV3.mutableCopy ( IntList  list)
inlinestaticprotected

Definition at line 395 of file GeneratedMessageV3.java.

◆ mutableCopy() [5/5]

static LongList com.google.protobuf.GeneratedMessageV3.mutableCopy ( LongList  list)
inlinestaticprotected

Definition at line 409 of file GeneratedMessageV3.java.

◆ newBooleanList()

static BooleanList com.google.protobuf.GeneratedMessageV3.newBooleanList ( )
inlinestaticprotected

Definition at line 447 of file GeneratedMessageV3.java.

◆ newBuilderForType() [1/2]

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

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

◆ newBuilderForType() [2/2]

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

Definition at line 521 of file GeneratedMessageV3.java.

◆ newDoubleList()

static DoubleList com.google.protobuf.GeneratedMessageV3.newDoubleList ( )
inlinestaticprotected

Definition at line 433 of file GeneratedMessageV3.java.

◆ newFloatList()

static FloatList com.google.protobuf.GeneratedMessageV3.newFloatList ( )
inlinestaticprotected

Definition at line 419 of file GeneratedMessageV3.java.

◆ newInstance()

Object com.google.protobuf.GeneratedMessageV3.newInstance ( UnusedPrivateParameter  unused)
inlineprotected

Creates a new instance of this message type. Overridden in the generated code.

Definition at line 496 of file GeneratedMessageV3.java.

◆ newIntList()

static IntList com.google.protobuf.GeneratedMessageV3.newIntList ( )
inlinestaticprotected

Definition at line 391 of file GeneratedMessageV3.java.

◆ newLongList()

static LongList com.google.protobuf.GeneratedMessageV3.newLongList ( )
inlinestaticprotected

Definition at line 405 of file GeneratedMessageV3.java.

◆ parseDelimitedWithIOException() [1/2]

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

Definition at line 365 of file GeneratedMessageV3.java.

◆ parseDelimitedWithIOException() [2/2]

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

Definition at line 374 of file GeneratedMessageV3.java.

◆ parseUnknownField()

boolean com.google.protobuf.GeneratedMessageV3.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 304 of file GeneratedMessageV3.java.

◆ parseUnknownFieldProto3()

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

Delegates to parseUnknownField. This method is obsolete, but we must retain it for compatibility with older generated code.

Definition at line 320 of file GeneratedMessageV3.java.

◆ parseWithIOException() [1/4]

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

Definition at line 347 of file GeneratedMessageV3.java.

◆ parseWithIOException() [2/4]

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

Definition at line 356 of file GeneratedMessageV3.java.

◆ parseWithIOException() [3/4]

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

Definition at line 329 of file GeneratedMessageV3.java.

◆ parseWithIOException() [4/4]

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

Definition at line 338 of file GeneratedMessageV3.java.

◆ serializeBooleanMapTo()

static <V> void com.google.protobuf.GeneratedMessageV3.serializeBooleanMapTo ( CodedOutputStream  out,
MapField< Boolean, V >  field,
MapEntry< Boolean, V >  defaultEntry,
int  fieldNumber 
) throws IOException
inlinestaticprotected

Definition at line 2939 of file GeneratedMessageV3.java.

◆ serializeIntegerMapTo()

static <V> void com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo ( CodedOutputStream  out,
MapField< Integer, V >  field,
MapEntry< Integer, V >  defaultEntry,
int  fieldNumber 
) throws IOException
inlinestaticprotected

Definition at line 2859 of file GeneratedMessageV3.java.

◆ serializeLongMapTo()

static <V> void com.google.protobuf.GeneratedMessageV3.serializeLongMapTo ( CodedOutputStream  out,
MapField< Long, V >  field,
MapEntry< Long, V >  defaultEntry,
int  fieldNumber 
) throws IOException
inlinestaticprotected

Definition at line 2886 of file GeneratedMessageV3.java.

◆ serializeMapTo()

static <K, V> void com.google.protobuf.GeneratedMessageV3.serializeMapTo ( CodedOutputStream  out,
Map< K, V >  m,
MapEntry< K, V >  defaultEntry,
int  fieldNumber 
) throws IOException
inlinestaticprivate

Serialize the map using the iteration order.

Definition at line 2971 of file GeneratedMessageV3.java.

◆ serializeStringMapTo()

static <V> void com.google.protobuf.GeneratedMessageV3.serializeStringMapTo ( CodedOutputStream  out,
MapField< String, V >  field,
MapEntry< String, V >  defaultEntry,
int  fieldNumber 
) throws IOException
inlinestaticprotected

Definition at line 2913 of file GeneratedMessageV3.java.

◆ writeReplace()

Object com.google.protobuf.GeneratedMessageV3.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 2807 of file GeneratedMessageV3.java.

◆ writeString()

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

Definition at line 2841 of file GeneratedMessageV3.java.

◆ writeStringNoTag()

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

Definition at line 2850 of file GeneratedMessageV3.java.

◆ writeTo()

void com.google.protobuf.GeneratedMessageV3.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 459 of file GeneratedMessageV3.java.

Member Data Documentation

◆ alwaysUseFieldBuilders

boolean com.google.protobuf.GeneratedMessageV3.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 88 of file GeneratedMessageV3.java.

◆ serialVersionUID

final long com.google.protobuf.GeneratedMessageV3.serialVersionUID = 1L
staticprivate

Definition at line 81 of file GeneratedMessageV3.java.

◆ unknownFields

UnknownFieldSet com.google.protobuf.GeneratedMessageV3.unknownFields
protected

For use by generated code only.

Definition at line 91 of file GeneratedMessageV3.java.


The documentation for this class was generated from the following file:
output
const upb_json_parsermethod const upb_symtab upb_sink * output
Definition: ruby/ext/google/protobuf_c/upb.h:10503


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07