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

Classes

struct  TypeInfo
 

Public Member Functions

void CrossLinkPrototypes ()
 
void CrossLinkPrototypes ()
 
 DynamicMessage (const DynamicMessageFactory::TypeInfo *type_info)
 
 DynamicMessage (const TypeInfo *type_info)
 
 DynamicMessage (DynamicMessageFactory::TypeInfo *type_info, bool lock_factory)
 
 DynamicMessage (TypeInfo *type_info, bool lock_factory)
 
ArenaGetArena () const override
 
int GetCachedSize () const override
 
int GetCachedSize () const override
 
Metadata GetMetadata () const override
 
Metadata GetMetadata () const override
 
MessageNew () const override
 
MessageNew (Arena *arena) const override
 
MessageNew (Arena *arena) const override
 
void SetCachedSize (int size) const override
 
void SetCachedSize (int size) const override
 
 ~DynamicMessage ()
 
 ~DynamicMessage ()
 
- Public Member Functions inherited from google::protobuf::Message
const char * _InternalParse (const char *ptr, internal::ParseContext *ctx) override
 
const char * _InternalParse (const char *ptr, internal::ParseContext *ctx) override
 
uint8_t_InternalSerialize (uint8_t *target, io::EpsCopyOutputStream *stream) const override
 
size_t ByteSizeLong () const override
 
size_t ByteSizeLong () const override
 
void CheckInitialized () const
 
void CheckInitialized () const
 
void CheckTypeAndMergeFrom (const MessageLite &other) override
 
void CheckTypeAndMergeFrom (const MessageLite &other) override
 
void Clear () override
 
void Clear () override
 
virtual void CopyFrom (const Message &from)
 
virtual void CopyFrom (const Message &from)
 
std::string DebugString () const
 
std::string DebugString () const
 
virtual void DiscardUnknownFields ()
 
void DiscardUnknownFields ()
 
void FindInitializationErrors (std::vector< std::string > *errors) const
 
void FindInitializationErrors (std::vector< std::string > *errors) const
 
const DescriptorGetDescriptor () const
 
const DescriptorGetDescriptor () const
 
const ReflectionGetReflection () const
 
const ReflectionGetReflection () const
 
std::string GetTypeName () const override
 
std::string GetTypeName () const override
 
std::string InitializationErrorString () const override
 
std::string InitializationErrorString () const override
 
uint8InternalSerializeWithCachedSizesToArray (uint8 *target, io::EpsCopyOutputStream *stream) const override
 
bool IsInitialized () const override
 
bool IsInitialized () const override
 
virtual void MergeFrom (const Message &from)
 
virtual void MergeFrom (const Message &from)
 
 Message ()
 
constexpr Message ()
 
MessageNew () const
 
void PrintDebugString () const
 
void PrintDebugString () const
 
std::string ShortDebugString () const
 
std::string ShortDebugString () const
 
int SpaceUsed () const
 
int SpaceUsed () const
 
virtual size_t SpaceUsedLong () const
 
virtual size_t SpaceUsedLong () const
 
std::string Utf8DebugString () const
 
std::string Utf8DebugString () const
 
 ~Message () override
 
- Public Member Functions inherited from google::protobuf::MessageLite
bool AppendPartialToString (std::string *output) const
 
bool AppendPartialToString (std::string *output) const
 
bool AppendToString (std::string *output) const
 
bool AppendToString (std::string *output) const
 
int ByteSize () const
 
int ByteSize () const
 
std::string DebugString () const
 
std::string DebugString () const
 
ArenaGetArena () const
 
virtual void * GetMaybeArenaPointer () const
 
bool IsInitializedWithErrors () const
 
bool MergeFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool MergeFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool MergeFromCodedStream (io::CodedInputStream *input)
 
bool MergeFromCodedStream (io::CodedInputStream *input)
 
bool MergeFromString (const std::string &data)
 
bool MergeFromString (ConstStringParam data)
 
bool MergePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool MergePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool MergePartialFromCodedStream (io::CodedInputStream *input)
 
bool MergePartialFromCodedStream (io::CodedInputStream *input)
 
constexpr MessageLite ()
 
 MessageLite ()
 
MessageLiteNew () const
 
template<ParseFlags flags, typename T >
bool ParseFrom (const T &input)
 
template<ParseFlags flags, typename T >
bool ParseFrom (const T &input)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParseFromArray (const void *data, int size)
 
bool ParseFromArray (const void *data, int size)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParseFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParseFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParseFromCodedStream (io::CodedInputStream *input)
 
bool ParseFromCodedStream (io::CodedInputStream *input)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParseFromFileDescriptor (int file_descriptor)
 
bool ParseFromFileDescriptor (int file_descriptor)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParseFromIstream (std::istream *input)
 
bool ParseFromIstream (std::istream *input)
 
bool ParseFromString (const std::string &data)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParseFromString (ConstStringParam data)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParseFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
bool ParseFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParsePartialFromArray (const void *data, int size)
 
bool ParsePartialFromArray (const void *data, int size)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParsePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParsePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParsePartialFromCodedStream (io::CodedInputStream *input)
 
bool ParsePartialFromCodedStream (io::CodedInputStream *input)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParsePartialFromFileDescriptor (int file_descriptor)
 
bool ParsePartialFromFileDescriptor (int file_descriptor)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParsePartialFromIstream (std::istream *input)
 
bool ParsePartialFromIstream (std::istream *input)
 
bool ParsePartialFromString (const std::string &data)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParsePartialFromString (ConstStringParam data)
 
PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParsePartialFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
bool ParsePartialFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
std::string SerializeAsString () const
 
std::string SerializeAsString () const
 
std::string SerializePartialAsString () const
 
std::string SerializePartialAsString () const
 
bool SerializePartialToArray (void *data, int size) const
 
bool SerializePartialToArray (void *data, int size) const
 
bool SerializePartialToCodedStream (io::CodedOutputStream *output) const
 
bool SerializePartialToCodedStream (io::CodedOutputStream *output) const
 
bool SerializePartialToFileDescriptor (int file_descriptor) const
 
bool SerializePartialToFileDescriptor (int file_descriptor) const
 
bool SerializePartialToOstream (std::ostream *output) const
 
bool SerializePartialToOstream (std::ostream *output) const
 
bool SerializePartialToString (std::string *output) const
 
bool SerializePartialToString (std::string *output) const
 
bool SerializePartialToZeroCopyStream (io::ZeroCopyOutputStream *output) const
 
bool SerializePartialToZeroCopyStream (io::ZeroCopyOutputStream *output) const
 
bool SerializeToArray (void *data, int size) const
 
bool SerializeToArray (void *data, int size) const
 
bool SerializeToCodedStream (io::CodedOutputStream *output) const
 
bool SerializeToCodedStream (io::CodedOutputStream *output) const
 
bool SerializeToFileDescriptor (int file_descriptor) const
 
bool SerializeToFileDescriptor (int file_descriptor) const
 
bool SerializeToOstream (std::ostream *output) const
 
bool SerializeToOstream (std::ostream *output) const
 
bool SerializeToString (std::string *output) const
 
bool SerializeToString (std::string *output) const
 
bool SerializeToZeroCopyStream (io::ZeroCopyOutputStream *output) const
 
bool SerializeToZeroCopyStream (io::ZeroCopyOutputStream *output) const
 
void SerializeWithCachedSizes (io::CodedOutputStream *output) const
 
void SerializeWithCachedSizes (io::CodedOutputStream *output) const
 
uint8SerializeWithCachedSizesToArray (uint8 *target) const
 
uint8_tSerializeWithCachedSizesToArray (uint8_t *target) const
 
std::string ShortDebugString () const
 
std::string ShortDebugString () const
 
std::string Utf8DebugString () const
 
std::string Utf8DebugString () const
 
virtual ~MessageLite ()
 
virtual ~MessageLite ()=default
 

Static Public Member Functions

static void operator delete (void *ptr)
 
static void operator delete (void *ptr)
 

Private Member Functions

 DynamicMessage (const DynamicMessageFactory::TypeInfo *type_info, Arena *arena)
 
 DynamicMessage (const TypeInfo *type_info, Arena *arena)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (DynamicMessage)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (DynamicMessage)
 
bool is_prototype () const
 
bool is_prototype () const
 
void * MutableExtensionsRaw ()
 
void * MutableOneofCaseRaw (int i)
 
void * MutableOneofFieldRaw (const FieldDescriptor *f)
 
void * MutableRaw (int i)
 
void * MutableWeakFieldMapRaw ()
 
void * OffsetToPointer (int offset)
 
void * OffsetToPointer (int offset)
 
const void * OffsetToPointer (int offset) const
 
const void * OffsetToPointer (int offset) const
 
int OffsetValue (int v, FieldDescriptor::Type type) const
 
void SharedCtor (bool lock_factory)
 
void SharedCtor (bool lock_factory)
 

Private Attributes

Arena *const arena_
 
std::atomic< intcached_byte_size_
 
const DynamicMessageFactory::TypeInfotype_info_
 
const TypeInfotype_info_
 

Friends

class DynamicMessageFactory
 

Additional Inherited Members

- Public Types inherited from google::protobuf::MessageLite
enum  ParseFlags {
  kMerge = 0, kParse = 1, kMergePartial = 2, kParsePartial = 3,
  kMergeWithAliasing = 4, kParseWithAliasing = 5, kMergePartialWithAliasing = 6, kParsePartialWithAliasing = 7,
  kMerge = 0, kParse = 1, kMergePartial = 2, kParsePartial = 3,
  kMergeWithAliasing = 4, kParseWithAliasing = 5, kMergePartialWithAliasing = 6, kParsePartialWithAliasing = 7
}
 
enum  ParseFlags {
  kMerge = 0, kParse = 1, kMergePartial = 2, kParsePartial = 3,
  kMergeWithAliasing = 4, kParseWithAliasing = 5, kMergePartialWithAliasing = 6, kParsePartialWithAliasing = 7,
  kMerge = 0, kParse = 1, kMergePartial = 2, kParsePartial = 3,
  kMergeWithAliasing = 4, kParseWithAliasing = 5, kMergePartialWithAliasing = 6, kParsePartialWithAliasing = 7
}
 
- Protected Member Functions inherited from google::protobuf::Message
size_t ComputeUnknownFieldsSize (size_t total_size, internal::CachedSize *cached_size) const
 
virtual const ClassDataGetClassData () const
 
size_t MaybeComputeUnknownFieldsSize (size_t total_size, internal::CachedSize *cached_size) const
 
 Message (Arena *arena, bool is_message_owned=false)
 
- Protected Member Functions inherited from google::protobuf::MessageLite
ArenaGetArenaForAllocation () const
 
ArenaGetOwningArena () const
 
 MessageLite (Arena *arena, bool is_message_owned=false)
 
- Static Protected Member Functions inherited from google::protobuf::Message
static void CopyWithSizeCheck (Message *to, const Message &from)
 
static uint64_t GetInvariantPerBuild (uint64_t salt)
 
- Static Protected Member Functions inherited from google::protobuf::MessageLite
template<typename T >
static TCreateMaybeMessage (Arena *arena)
 
template<typename T >
static TCreateMaybeMessage (Arena *arena)
 
- Protected Attributes inherited from google::protobuf::MessageLite
internal::InternalMetadata _internal_metadata_
 

Detailed Description

Definition at line 232 of file bloaty/third_party/protobuf/src/google/protobuf/dynamic_message.cc.

Constructor & Destructor Documentation

◆ DynamicMessage() [1/6]

google::protobuf::DynamicMessage::DynamicMessage ( const TypeInfo type_info)

◆ DynamicMessage() [2/6]

google::protobuf::DynamicMessage::DynamicMessage ( TypeInfo type_info,
bool  lock_factory 
)

◆ ~DynamicMessage() [1/2]

google::protobuf::DynamicMessage::~DynamicMessage ( )

◆ DynamicMessage() [3/6]

google::protobuf::DynamicMessage::DynamicMessage ( const TypeInfo type_info,
Arena arena 
)
private

◆ DynamicMessage() [4/6]

google::protobuf::DynamicMessage::DynamicMessage ( const DynamicMessageFactory::TypeInfo type_info)
explicit

◆ DynamicMessage() [5/6]

google::protobuf::DynamicMessage::DynamicMessage ( DynamicMessageFactory::TypeInfo type_info,
bool  lock_factory 
)

◆ ~DynamicMessage() [2/2]

google::protobuf::DynamicMessage::~DynamicMessage ( )

◆ DynamicMessage() [6/6]

google::protobuf::DynamicMessage::DynamicMessage ( const DynamicMessageFactory::TypeInfo type_info,
Arena arena 
)
private

Member Function Documentation

◆ CrossLinkPrototypes() [1/2]

void google::protobuf::DynamicMessage::CrossLinkPrototypes ( )

◆ CrossLinkPrototypes() [2/2]

void google::protobuf::DynamicMessage::CrossLinkPrototypes ( )

◆ GetArena()

Arena* google::protobuf::DynamicMessage::GetArena ( ) const
inlineoverridevirtual

◆ GetCachedSize() [1/2]

int google::protobuf::DynamicMessage::GetCachedSize ( ) const
overridevirtual

◆ GetCachedSize() [2/2]

int google::protobuf::DynamicMessage::GetCachedSize ( ) const
overridevirtual

◆ GetMetadata() [1/2]

Metadata google::protobuf::DynamicMessage::GetMetadata ( ) const
overridevirtual

◆ GetMetadata() [2/2]

Metadata google::protobuf::DynamicMessage::GetMetadata ( ) const
overridevirtual

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [1/2]

google::protobuf::DynamicMessage::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( DynamicMessage  )
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [2/2]

google::protobuf::DynamicMessage::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( DynamicMessage  )
private

◆ is_prototype() [1/2]

bool google::protobuf::DynamicMessage::is_prototype ( ) const
private

◆ is_prototype() [2/2]

bool google::protobuf::DynamicMessage::is_prototype ( ) const
inlineprivate

◆ MutableExtensionsRaw()

void * google::protobuf::DynamicMessage::MutableExtensionsRaw ( )
private

◆ MutableOneofCaseRaw()

void * google::protobuf::DynamicMessage::MutableOneofCaseRaw ( int  i)
private

◆ MutableOneofFieldRaw()

void * google::protobuf::DynamicMessage::MutableOneofFieldRaw ( const FieldDescriptor f)
private

◆ MutableRaw()

void * google::protobuf::DynamicMessage::MutableRaw ( int  i)
inlineprivate

◆ MutableWeakFieldMapRaw()

void * google::protobuf::DynamicMessage::MutableWeakFieldMapRaw ( )
private

◆ New() [1/3]

Message * google::protobuf::DynamicMessage::New ( ) const
overridevirtual

◆ New() [2/3]

Message* google::protobuf::DynamicMessage::New ( Arena arena) const
overridevirtual

Reimplemented from google::protobuf::Message.

◆ New() [3/3]

Message * google::protobuf::DynamicMessage::New ( Arena arena) const
overridevirtual

◆ OffsetToPointer() [1/4]

void* google::protobuf::DynamicMessage::OffsetToPointer ( int  offset)
inlineprivate

◆ OffsetToPointer() [2/4]

void* google::protobuf::DynamicMessage::OffsetToPointer ( int  offset)
inlineprivate

◆ OffsetToPointer() [3/4]

const void* google::protobuf::DynamicMessage::OffsetToPointer ( int  offset) const
inlineprivate

◆ OffsetToPointer() [4/4]

const void* google::protobuf::DynamicMessage::OffsetToPointer ( int  offset) const
inlineprivate

◆ OffsetValue()

int google::protobuf::DynamicMessage::OffsetValue ( int  v,
FieldDescriptor::Type  type 
) const
inlineprivate

◆ operator delete() [1/2]

static void google::protobuf::DynamicMessage::operator delete ( void *  ptr)
inlinestatic

◆ operator delete() [2/2]

static void google::protobuf::DynamicMessage::operator delete ( void *  ptr)
inlinestatic

◆ SetCachedSize() [1/2]

void google::protobuf::DynamicMessage::SetCachedSize ( int  size) const
overridevirtual

Reimplemented from google::protobuf::Message.

◆ SetCachedSize() [2/2]

void google::protobuf::DynamicMessage::SetCachedSize ( int  size) const
overridevirtual

◆ SharedCtor() [1/2]

void google::protobuf::DynamicMessage::SharedCtor ( bool  lock_factory)
private

◆ SharedCtor() [2/2]

void google::protobuf::DynamicMessage::SharedCtor ( bool  lock_factory)
private

Friends And Related Function Documentation

◆ DynamicMessageFactory

friend class DynamicMessageFactory
friend

Member Data Documentation

◆ arena_

Arena* const google::protobuf::DynamicMessage::arena_
private

◆ cached_byte_size_

std::atomic< int > google::protobuf::DynamicMessage::cached_byte_size_
mutableprivate

◆ type_info_ [1/2]

const DynamicMessageFactory::TypeInfo* google::protobuf::DynamicMessage::type_info_
private

◆ type_info_ [2/2]

const TypeInfo* google::protobuf::DynamicMessage::type_info_
private

The documentation for this class was generated from the following file:


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