Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
google::protobuf::Message Class Referenceabstract

#include <google/protobuf/message.h>

Inheritance diagram for google::protobuf::Message:
google::protobuf::MessageLite

Classes

struct  ClassData
 

Public Member Functions

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

Protected Member Functions

virtual Metadata GetMetadata () const =0
 
virtual const ClassDataGetClassData () const
 
 Message (Arena *arena, bool is_message_owned=false)
 
size_t ComputeUnknownFieldsSize (size_t total_size, internal::CachedSize *cached_size) const
 
size_t MaybeComputeUnknownFieldsSize (size_t total_size, internal::CachedSize *cached_size) const
 
- Protected Member Functions inherited from google::protobuf::MessageLite
 MessageLite (Arena *arena, bool is_message_owned=false)
 
Arena * GetOwningArena () const
 
Arena * GetArenaForAllocation () const
 

Static Protected Member Functions

static void CopyWithSourceCheck (Message &to, const Message &from)
 
static void FailIfCopyFromDescendant (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 T * CreateMaybeMessage (Arena *arena)
 
static bool InMoaTrial ()
 

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

Detailed Description

Definition at line 240 of file message.h.

Constructor & Destructor Documentation

◆ Message() [1/2]

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

Definition at line 242 of file message.h.

◆ Message() [2/2]

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

Definition at line 393 of file message.h.

Member Function Documentation

◆ _InternalParse()

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

Reimplemented from google::protobuf::MessageLite.

◆ _InternalSerialize()

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

◆ ByteSizeLong()

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

◆ CheckInitialized()

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

◆ CheckTypeAndMergeFrom()

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

◆ Clear()

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

◆ ComputeUnknownFieldsSize()

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

◆ CopyFrom()

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

◆ CopyWithSourceCheck()

static void google::protobuf::Message::CopyWithSourceCheck ( Message to,
const Message from 
)
staticprotected

◆ DebugString()

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

◆ DiscardUnknownFields()

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

◆ FailIfCopyFromDescendant()

static void google::protobuf::Message::FailIfCopyFromDescendant ( Message to,
const Message from 
)
staticprotected

◆ FindInitializationErrors()

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

◆ GetClassData()

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

Definition at line 382 of file message.h.

◆ GetDescriptor()

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

Definition at line 357 of file message.h.

◆ GetInvariantPerBuild()

static uint64_t google::protobuf::Message::GetInvariantPerBuild ( uint64_t  salt)
staticprotected

◆ GetMetadata()

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

◆ GetReflection()

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

Definition at line 363 of file message.h.

◆ GetTypeName()

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

◆ InitializationErrorString()

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

Reimplemented from google::protobuf::MessageLite.

◆ IsInitialized()

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

◆ MaybeComputeUnknownFieldsSize()

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

◆ MergeFrom()

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

◆ New() [1/2]

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

Definition at line 249 of file message.h.

◆ New() [2/2]

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

◆ PrintDebugString()

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

◆ ShortDebugString()

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

◆ SpaceUsed()

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

Definition at line 304 of file message.h.

◆ SpaceUsedLong()

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

◆ Utf8DebugString()

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

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