Public Member Functions | 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]

Public Member Functions

size_t ByteSizeLong () const override
 
void CheckInitialized () const
 
void CheckTypeAndMergeFrom (const MessageLite &other) override
 
void Clear () override
 
virtual void CopyFrom (const Message &from)
 
std::string DebugString () const
 
virtual void DiscardUnknownFields ()
 
void FindInitializationErrors (std::vector< std::string > *errors) const
 
const DescriptorGetDescriptor () const
 
const ReflectionGetReflection () const
 
std::string GetTypeName () const override
 
std::string InitializationErrorString () const override
 
bool IsInitialized () const override
 
virtual void MergeFrom (const Message &from)
 
bool MergePartialFromCodedStream (io::CodedInputStream *input) override
 
 Message ()
 
MessageNew () const override=0
 
MessageNew (Arena *arena) const override
 
void PrintDebugString () const
 
void SerializeWithCachedSizes (io::CodedOutputStream *output) const override
 
std::string ShortDebugString () const
 
int SpaceUsed () const
 
virtual size_t SpaceUsedLong () const
 
std::string Utf8DebugString () const
 
 ~Message () override
 
- Public Member Functions inherited from google::protobuf::MessageLite
bool AppendPartialToString (std::string *output) const
 
bool AppendToString (std::string *output) const
 
int ByteSize () const
 
std::string DebugString () const
 
virtual Arena * GetArena () const
 
virtual int GetCachedSize () const =0
 
virtual voidGetMaybeArenaPointer () const
 
virtual uint8InternalSerializeWithCachedSizesToArray (uint8 *target) const
 
bool MergeFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool MergeFromCodedStream (io::CodedInputStream *input)
 
bool MergeFromString (const std::string &data)
 
bool MergePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
 MessageLite ()
 
template<ParseFlags flags, typename T >
bool ParseFrom (const T &input)
 
bool ParseFromArray (const void *data, int size)
 
bool ParseFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParseFromCodedStream (io::CodedInputStream *input)
 
bool ParseFromFileDescriptor (int file_descriptor)
 
bool ParseFromIstream (std::istream *input)
 
bool ParseFromString (const std::string &data)
 
bool ParseFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
bool ParsePartialFromArray (const void *data, int size)
 
bool ParsePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParsePartialFromCodedStream (io::CodedInputStream *input)
 
bool ParsePartialFromFileDescriptor (int file_descriptor)
 
bool ParsePartialFromIstream (std::istream *input)
 
bool ParsePartialFromString (const std::string &data)
 
bool ParsePartialFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
std::string SerializeAsString () const
 
std::string SerializePartialAsString () const
 
bool SerializePartialToArray (void *data, int size) const
 
bool SerializePartialToCodedStream (io::CodedOutputStream *output) const
 
bool SerializePartialToFileDescriptor (int file_descriptor) const
 
bool SerializePartialToOstream (std::ostream *output) const
 
bool SerializePartialToString (std::string *output) const
 
bool SerializePartialToZeroCopyStream (io::ZeroCopyOutputStream *output) const
 
bool SerializeToArray (void *data, int size) const
 
bool SerializeToCodedStream (io::CodedOutputStream *output) const
 
bool SerializeToFileDescriptor (int file_descriptor) const
 
bool SerializeToOstream (std::ostream *output) const
 
bool SerializeToString (std::string *output) const
 
bool SerializeToZeroCopyStream (io::ZeroCopyOutputStream *output) const
 
virtual uint8SerializeWithCachedSizesToArray (uint8 *target) const
 
std::string ShortDebugString () const
 
std::string Utf8DebugString () const
 
virtual ~MessageLite ()
 

Protected Member Functions

virtual Metadata GetMetadata () const =0
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Message)
 
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
}
 
- Static Protected Member Functions inherited from google::protobuf::MessageLite
template<typename T >
static const internal::RepeatedPtrFieldBaseCastToBase (const RepeatedPtrField< T > &repeated)
 
template<typename T >
static internal::RepeatedPtrFieldBaseCastToBase (RepeatedPtrField< T > *repeated)
 
template<typename T >
static TCreateMaybeMessage (Arena *arena)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Message()

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

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

◆ ~Message()

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

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

Member Function Documentation

◆ ByteSizeLong()

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

Implements google::protobuf::MessageLite.

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

◆ CheckInitialized()

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

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

◆ CheckTypeAndMergeFrom()

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

◆ Clear()

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

◆ CopyFrom()

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

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

◆ DebugString()

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

Definition at line 87 of file text_format.cc.

◆ DiscardUnknownFields()

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

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

◆ FindInitializationErrors()

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

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

◆ GetDescriptor()

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

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

◆ GetMetadata()

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

◆ GetReflection()

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

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

◆ GetTypeName()

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

Implements google::protobuf::MessageLite.

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

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

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

◆ InitializationErrorString()

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

Reimplemented from google::protobuf::MessageLite.

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

◆ IsInitialized()

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

Implements google::protobuf::MessageLite.

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

◆ MergeFrom()

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

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

◆ MergePartialFromCodedStream()

bool google::protobuf::Message::MergePartialFromCodedStream ( io::CodedInputStream input)
overridevirtual

◆ New() [1/2]

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

◆ New() [2/2]

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

◆ PrintDebugString()

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

Definition at line 126 of file text_format.cc.

◆ SerializeWithCachedSizes()

void google::protobuf::Message::SerializeWithCachedSizes ( io::CodedOutputStream output) const
overridevirtual

◆ SetCachedSize()

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

Reimplemented in google::protobuf::DynamicMessage.

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

◆ ShortDebugString()

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

Definition at line 98 of file text_format.cc.

◆ SpaceUsed()

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

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

◆ SpaceUsedLong()

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

◆ Utf8DebugString()

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

Definition at line 114 of file text_format.cc.


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


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