Classes | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | List of all members
google::protobuf::Message Class Referenceabstract

#include <message.h>

Inheritance diagram for google::protobuf::Message:
Inheritance graph
[legend]

Classes

struct  ClassData
 

Public Member Functions

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
 
MessageNew () const override=0
 
MessageNew (Arena *arena) const override
 
MessageNew (Arena *arena) const override=0
 
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 ArenaGetArena () const
 
virtual int GetCachedSize () const =0
 
virtual int GetCachedSize () const =0
 
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
 

Protected Member Functions

size_t ComputeUnknownFieldsSize (size_t total_size, internal::CachedSize *cached_size) const
 
virtual const ClassDataGetClassData () const
 
virtual Metadata GetMetadata () const =0
 
virtual Metadata GetMetadata () const =0
 
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

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)
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Message)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Message)
 
virtual void SetCachedSize (int size) const
 
virtual void SetCachedSize (int size) const
 

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 Attributes inherited from google::protobuf::MessageLite
internal::InternalMetadata _internal_metadata_
 

Detailed Description

Definition at line 205 of file bloaty/third_party/protobuf/src/google/protobuf/message.h.

Constructor & Destructor Documentation

◆ Message() [1/3]

google::protobuf::Message::Message ( )
inline

◆ ~Message()

google::protobuf::Message::~Message ( )
inlineoverride

◆ Message() [2/3]

constexpr google::protobuf::Message::Message ( )
inlineconstexpr

Definition at line 240 of file protobuf/src/google/protobuf/message.h.

◆ Message() [3/3]

google::protobuf::Message::Message ( Arena arena,
bool  is_message_owned = false 
)
inlineexplicitprotected

Definition at line 385 of file protobuf/src/google/protobuf/message.h.

Member Function Documentation

◆ _InternalParse() [1/2]

const char * Message::_InternalParse ( const char *  ptr,
internal::ParseContext ctx 
)
overridevirtual

◆ _InternalParse() [2/2]

const char* google::protobuf::Message::_InternalParse ( const char *  ptr,
internal::ParseContext ctx 
)
overridevirtual

◆ _InternalSerialize()

uint8_t * Message::_InternalSerialize ( uint8_t target,
io::EpsCopyOutputStream stream 
) const
overridevirtual

◆ ByteSizeLong() [1/2]

size_t Message::ByteSizeLong ( ) const
overridevirtual

◆ ByteSizeLong() [2/2]

size_t google::protobuf::Message::ByteSizeLong ( ) const
overridevirtual

◆ CheckInitialized() [1/2]

void Message::CheckInitialized ( ) const

◆ CheckInitialized() [2/2]

void google::protobuf::Message::CheckInitialized ( ) const

◆ CheckTypeAndMergeFrom() [1/2]

void Message::CheckTypeAndMergeFrom ( const MessageLite other)
overridevirtual

◆ CheckTypeAndMergeFrom() [2/2]

void google::protobuf::Message::CheckTypeAndMergeFrom ( const MessageLite other)
overridevirtual

◆ Clear() [1/2]

void Message::Clear ( )
overridevirtual

◆ Clear() [2/2]

void google::protobuf::Message::Clear ( )
overridevirtual

◆ ComputeUnknownFieldsSize()

size_t Message::ComputeUnknownFieldsSize ( size_t  total_size,
internal::CachedSize cached_size 
) const
protected

Definition at line 186 of file protobuf/src/google/protobuf/message.cc.

◆ CopyFrom() [1/2]

void Message::CopyFrom ( const Message from)
virtual

◆ CopyFrom() [2/2]

virtual void google::protobuf::Message::CopyFrom ( const Message from)
virtual

◆ CopyWithSizeCheck()

void Message::CopyWithSizeCheck ( Message to,
const Message from 
)
staticprotected

Definition at line 120 of file protobuf/src/google/protobuf/message.cc.

◆ DebugString() [1/2]

std::string Message::DebugString ( ) const

◆ DebugString() [2/2]

std::string google::protobuf::Message::DebugString ( ) const

◆ DiscardUnknownFields() [1/2]

void Message::DiscardUnknownFields ( )
virtual

◆ DiscardUnknownFields() [2/2]

void google::protobuf::Message::DiscardUnknownFields ( )

◆ FindInitializationErrors() [1/2]

void Message::FindInitializationErrors ( std::vector< std::string > *  errors) const

◆ FindInitializationErrors() [2/2]

void google::protobuf::Message::FindInitializationErrors ( std::vector< std::string > *  errors) const

◆ GetClassData()

virtual const ClassData* google::protobuf::Message::GetClassData ( ) const
inlineprotectedvirtual

Definition at line 377 of file protobuf/src/google/protobuf/message.h.

◆ GetDescriptor() [1/2]

const Descriptor* google::protobuf::Message::GetDescriptor ( ) const
inline

◆ GetDescriptor() [2/2]

const Descriptor* google::protobuf::Message::GetDescriptor ( ) const
inline

Definition at line 352 of file protobuf/src/google/protobuf/message.h.

◆ GetInvariantPerBuild()

uint64_t Message::GetInvariantPerBuild ( uint64_t  salt)
staticprotected

Definition at line 208 of file protobuf/src/google/protobuf/message.cc.

◆ GetMetadata() [1/2]

virtual Metadata google::protobuf::Message::GetMetadata ( ) const
protectedpure virtual

◆ GetMetadata() [2/2]

virtual Metadata google::protobuf::Message::GetMetadata ( ) const
protectedpure virtual

◆ GetReflection() [1/2]

const Reflection* google::protobuf::Message::GetReflection ( ) const
inline

◆ GetReflection() [2/2]

const Reflection* google::protobuf::Message::GetReflection ( ) const
inline

Definition at line 358 of file protobuf/src/google/protobuf/message.h.

◆ GetTypeName() [1/2]

std::string Message::GetTypeName ( ) const
overridevirtual

◆ GetTypeName() [2/2]

std::string google::protobuf::Message::GetTypeName ( ) const
overridevirtual

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [1/2]

google::protobuf::Message::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( Message  )
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [2/2]

google::protobuf::Message::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( Message  )
private

◆ InitializationErrorString() [1/2]

std::string Message::InitializationErrorString ( ) const
overridevirtual

◆ InitializationErrorString() [2/2]

std::string google::protobuf::Message::InitializationErrorString ( ) const
overridevirtual

Reimplemented from google::protobuf::MessageLite.

◆ InternalSerializeWithCachedSizesToArray()

uint8 * Message::InternalSerializeWithCachedSizesToArray ( uint8 target,
io::EpsCopyOutputStream stream 
) const
overridevirtual

◆ IsInitialized() [1/2]

bool Message::IsInitialized ( ) const
overridevirtual

◆ IsInitialized() [2/2]

bool google::protobuf::Message::IsInitialized ( ) const
overridevirtual

◆ MaybeComputeUnknownFieldsSize()

size_t Message::MaybeComputeUnknownFieldsSize ( size_t  total_size,
internal::CachedSize cached_size 
) const
protected

Definition at line 195 of file protobuf/src/google/protobuf/message.cc.

◆ MergeFrom() [1/2]

void Message::MergeFrom ( const Message from)
virtual

◆ MergeFrom() [2/2]

virtual void google::protobuf::Message::MergeFrom ( const Message from)
virtual

◆ New() [1/4]

Message* google::protobuf::Message::New ( ) const
inlinevirtual

◆ New() [2/4]

Message* google::protobuf::Message::New ( ) const
overridepure virtual

◆ New() [3/4]

Message* google::protobuf::Message::New ( Arena arena) const
inlineoverridevirtual

◆ New() [4/4]

Message* google::protobuf::Message::New ( Arena arena) const
overridepure virtual

◆ PrintDebugString() [1/2]

void Message::PrintDebugString ( ) const

◆ PrintDebugString() [2/2]

void google::protobuf::Message::PrintDebugString ( ) const

◆ SetCachedSize() [1/2]

void Message::SetCachedSize ( int  size) const
privatevirtual

◆ SetCachedSize() [2/2]

virtual void google::protobuf::Message::SetCachedSize ( int  size) const
privatevirtual

◆ ShortDebugString() [1/2]

std::string Message::ShortDebugString ( ) const

◆ ShortDebugString() [2/2]

std::string google::protobuf::Message::ShortDebugString ( ) const

◆ SpaceUsed() [1/2]

int google::protobuf::Message::SpaceUsed ( ) const
inline

◆ SpaceUsed() [2/2]

int google::protobuf::Message::SpaceUsed ( ) const
inline

Definition at line 302 of file protobuf/src/google/protobuf/message.h.

◆ SpaceUsedLong() [1/2]

size_t Message::SpaceUsedLong ( ) const
virtual

◆ SpaceUsedLong() [2/2]

virtual size_t google::protobuf::Message::SpaceUsedLong ( ) const
virtual

◆ Utf8DebugString() [1/2]

std::string Message::Utf8DebugString ( ) const

◆ Utf8DebugString() [2/2]

std::string google::protobuf::Message::Utf8DebugString ( ) const

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


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