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

#include <google/protobuf/message_lite.h>

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

Public Types

enum  ParseFlags {
  kMerge = 0 , kParse = 1 , kMergePartial = 2 , kParsePartial = 3 ,
  kMergeWithAliasing = 4 , kParseWithAliasing = 5 , kMergePartialWithAliasing = 6 , kParsePartialWithAliasing = 7
}
 

Public Member Functions

constexpr MessageLite ()
 
virtual ~MessageLite ()=default
 
virtual std::string GetTypeName () const =0
 
MessageLiteNew () const
 
virtual MessageLiteNew (Arena *arena) const =0
 
Arena * GetArena () const
 
virtual void Clear ()=0
 
virtual bool IsInitialized () const =0
 
virtual std::string InitializationErrorString () const
 
virtual void CheckTypeAndMergeFrom (const MessageLite &other)=0
 
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
 
virtual size_t ByteSizeLong () const =0
 
int ByteSize () const
 
void SerializeWithCachedSizes (io::CodedOutputStream *output) const
 
uint8_t * SerializeWithCachedSizesToArray (uint8_t *target) const
 
virtual int GetCachedSize () const =0
 
virtual const char * _InternalParse (const char *, internal::ParseContext *)
 
virtual void OnDemandRegisterArenaDtor (Arena *)
 
template<ParseFlags flags, typename T >
bool ParseFrom (const T &input)
 
virtual uint8_t * _InternalSerialize (uint8_t *ptr, io::EpsCopyOutputStream *stream) const =0
 
bool IsInitializedWithErrors () const
 

Protected Member Functions

 MessageLite (Arena *arena, bool is_message_owned=false)
 
Arena * GetOwningArena () const
 
Arena * GetArenaForAllocation () const
 

Static Protected Member Functions

template<typename T >
static T * CreateMaybeMessage (Arena *arena)
 
static bool InMoaTrial ()
 

Protected Attributes

internal::InternalMetadata _internal_metadata_
 

Friends

class FastReflectionMessageMutator
 
class FastReflectionStringSetter
 
class Message
 
class Reflection
 
class internal::ExtensionSet
 
class internal::LazyField
 
class internal::SwapFieldHelper
 
class internal::TcParser
 
class internal::WeakFieldMap
 
class internal::WireFormatLite
 
template<typename Type >
class Arena::InternalHelper
 
template<typename Type >
class internal::GenericTypeHandler
 

Detailed Description

Definition at line 168 of file message_lite.h.

Member Enumeration Documentation

◆ ParseFlags

Enumerator
kMerge 
kParse 
kMergePartial 
kParsePartial 
kMergeWithAliasing 
kParseWithAliasing 
kMergePartialWithAliasing 
kParsePartialWithAliasing 

Definition at line 449 of file message_lite.h.

Constructor & Destructor Documentation

◆ MessageLite() [1/2]

constexpr google::protobuf::MessageLite::MessageLite ( )
inlineconstexpr

Definition at line 170 of file message_lite.h.

◆ ~MessageLite()

virtual google::protobuf::MessageLite::~MessageLite ( )
virtualdefault

◆ MessageLite() [2/2]

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

Definition at line 428 of file message_lite.h.

Member Function Documentation

◆ _InternalParse()

virtual const char * google::protobuf::MessageLite::_InternalParse ( const char *  ,
internal::ParseContext *   
)
inlinevirtual

Reimplemented in google::protobuf::Message.

Definition at line 415 of file message_lite.h.

◆ _InternalSerialize()

virtual uint8_t * google::protobuf::MessageLite::_InternalSerialize ( uint8_t *  ptr,
io::EpsCopyOutputStream *  stream 
) const
pure virtual

Implemented in google::protobuf::Message.

◆ AppendPartialToString()

bool google::protobuf::MessageLite::AppendPartialToString ( std::string *  output) const

◆ AppendToString()

bool google::protobuf::MessageLite::AppendToString ( std::string *  output) const

◆ ByteSize()

int google::protobuf::MessageLite::ByteSize ( ) const
inline

Definition at line 381 of file message_lite.h.

◆ ByteSizeLong()

virtual size_t google::protobuf::MessageLite::ByteSizeLong ( ) const
pure virtual

Implemented in google::protobuf::Message.

◆ CheckTypeAndMergeFrom()

virtual void google::protobuf::MessageLite::CheckTypeAndMergeFrom ( const MessageLite other)
pure virtual

Implemented in google::protobuf::Message.

◆ Clear()

virtual void google::protobuf::MessageLite::Clear ( )
pure virtual

Implemented in google::protobuf::Message.

◆ CreateMaybeMessage()

template<typename T >
static T * google::protobuf::MessageLite::CreateMaybeMessage ( Arena *  arena)
inlinestaticprotected

Definition at line 424 of file message_lite.h.

◆ DebugString()

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

◆ GetArena()

Arena * google::protobuf::MessageLite::GetArena ( ) const
inline

Definition at line 187 of file message_lite.h.

◆ GetArenaForAllocation()

Arena * google::protobuf::MessageLite::GetArenaForAllocation ( ) const
inlineprotected

Definition at line 440 of file message_lite.h.

◆ GetCachedSize()

virtual int google::protobuf::MessageLite::GetCachedSize ( ) const
pure virtual

◆ GetOwningArena()

Arena * google::protobuf::MessageLite::GetOwningArena ( ) const
inlineprotected

Definition at line 436 of file message_lite.h.

◆ GetTypeName()

virtual std::string google::protobuf::MessageLite::GetTypeName ( ) const
pure virtual

Implemented in google::protobuf::Message.

◆ InitializationErrorString()

virtual std::string google::protobuf::MessageLite::InitializationErrorString ( ) const
virtual

Reimplemented in google::protobuf::Message.

◆ InMoaTrial()

static bool google::protobuf::MessageLite::InMoaTrial ( )
inlinestaticprotected

Definition at line 444 of file message_lite.h.

◆ IsInitialized()

virtual bool google::protobuf::MessageLite::IsInitialized ( ) const
pure virtual

Implemented in google::protobuf::Message.

◆ IsInitializedWithErrors()

bool google::protobuf::MessageLite::IsInitializedWithErrors ( ) const
inline

Definition at line 469 of file message_lite.h.

◆ MergeFromBoundedZeroCopyStream()

bool google::protobuf::MessageLite::MergeFromBoundedZeroCopyStream ( io::ZeroCopyInputStream *  input,
int  size 
)

◆ MergeFromCodedStream()

bool google::protobuf::MessageLite::MergeFromCodedStream ( io::CodedInputStream *  input)

◆ MergeFromString()

bool google::protobuf::MessageLite::MergeFromString ( ConstStringParam  data)

◆ MergePartialFromBoundedZeroCopyStream()

bool google::protobuf::MessageLite::MergePartialFromBoundedZeroCopyStream ( io::ZeroCopyInputStream *  input,
int  size 
)

◆ MergePartialFromCodedStream()

bool google::protobuf::MessageLite::MergePartialFromCodedStream ( io::CodedInputStream *  input)

◆ New() [1/2]

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

Definition at line 180 of file message_lite.h.

◆ New() [2/2]

virtual MessageLite * google::protobuf::MessageLite::New ( Arena *  arena) const
pure virtual

Implemented in google::protobuf::Message.

◆ OnDemandRegisterArenaDtor()

virtual void google::protobuf::MessageLite::OnDemandRegisterArenaDtor ( Arena *  )
inlinevirtual

Definition at line 420 of file message_lite.h.

◆ ParseFrom()

template<MessageLite::ParseFlags flags, typename T >
bool google::protobuf::MessageLite::ParseFrom ( const T &  input)

Definition at line 546 of file message_lite.h.

◆ ParseFromArray()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParseFromArray ( const void *  data,
int  size 
)

◆ ParseFromBoundedZeroCopyStream()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParseFromBoundedZeroCopyStream ( io::ZeroCopyInputStream *  input,
int  size 
)

◆ ParseFromCodedStream()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParseFromCodedStream ( io::CodedInputStream *  input)

◆ ParseFromFileDescriptor()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParseFromFileDescriptor ( int  file_descriptor)

◆ ParseFromIstream()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParseFromIstream ( std::istream *  input)

◆ ParseFromString()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParseFromString ( ConstStringParam  data)

◆ ParseFromZeroCopyStream()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParseFromZeroCopyStream ( io::ZeroCopyInputStream *  input)

◆ ParsePartialFromArray()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParsePartialFromArray ( const void *  data,
int  size 
)

◆ ParsePartialFromBoundedZeroCopyStream()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParsePartialFromBoundedZeroCopyStream ( io::ZeroCopyInputStream *  input,
int  size 
)

◆ ParsePartialFromCodedStream()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParsePartialFromCodedStream ( io::CodedInputStream *  input)

◆ ParsePartialFromFileDescriptor()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParsePartialFromFileDescriptor ( int  file_descriptor)

◆ ParsePartialFromIstream()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParsePartialFromIstream ( std::istream *  input)

◆ ParsePartialFromString()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParsePartialFromString ( ConstStringParam  data)

◆ ParsePartialFromZeroCopyStream()

PROTOBUF_ATTRIBUTE_REINITIALIZES bool google::protobuf::MessageLite::ParsePartialFromZeroCopyStream ( io::ZeroCopyInputStream *  input)

◆ SerializeAsString()

std::string google::protobuf::MessageLite::SerializeAsString ( ) const

◆ SerializePartialAsString()

std::string google::protobuf::MessageLite::SerializePartialAsString ( ) const

◆ SerializePartialToArray()

bool google::protobuf::MessageLite::SerializePartialToArray ( void *  data,
int  size 
) const

◆ SerializePartialToCodedStream()

bool google::protobuf::MessageLite::SerializePartialToCodedStream ( io::CodedOutputStream *  output) const

◆ SerializePartialToFileDescriptor()

bool google::protobuf::MessageLite::SerializePartialToFileDescriptor ( int  file_descriptor) const

◆ SerializePartialToOstream()

bool google::protobuf::MessageLite::SerializePartialToOstream ( std::ostream *  output) const

◆ SerializePartialToString()

bool google::protobuf::MessageLite::SerializePartialToString ( std::string *  output) const

◆ SerializePartialToZeroCopyStream()

bool google::protobuf::MessageLite::SerializePartialToZeroCopyStream ( io::ZeroCopyOutputStream *  output) const

◆ SerializeToArray()

bool google::protobuf::MessageLite::SerializeToArray ( void *  data,
int  size 
) const

◆ SerializeToCodedStream()

bool google::protobuf::MessageLite::SerializeToCodedStream ( io::CodedOutputStream *  output) const

◆ SerializeToFileDescriptor()

bool google::protobuf::MessageLite::SerializeToFileDescriptor ( int  file_descriptor) const

◆ SerializeToOstream()

bool google::protobuf::MessageLite::SerializeToOstream ( std::ostream *  output) const

◆ SerializeToString()

bool google::protobuf::MessageLite::SerializeToString ( std::string *  output) const

◆ SerializeToZeroCopyStream()

bool google::protobuf::MessageLite::SerializeToZeroCopyStream ( io::ZeroCopyOutputStream *  output) const

◆ SerializeWithCachedSizes()

void google::protobuf::MessageLite::SerializeWithCachedSizes ( io::CodedOutputStream *  output) const
inline

Definition at line 386 of file message_lite.h.

◆ SerializeWithCachedSizesToArray()

uint8_t * google::protobuf::MessageLite::SerializeWithCachedSizesToArray ( uint8_t *  target) const

◆ ShortDebugString()

std::string google::protobuf::MessageLite::ShortDebugString ( ) const
inline

Definition at line 217 of file message_lite.h.

◆ Utf8DebugString()

std::string google::protobuf::MessageLite::Utf8DebugString ( ) const
inline

Definition at line 220 of file message_lite.h.

Friends And Related Symbol Documentation

◆ Arena::InternalHelper

template<typename Type >
friend class Arena::InternalHelper
friend

Definition at line 488 of file message_lite.h.

◆ FastReflectionMessageMutator

friend class FastReflectionMessageMutator
friend

Definition at line 476 of file message_lite.h.

◆ FastReflectionStringSetter

friend class FastReflectionStringSetter
friend

Definition at line 477 of file message_lite.h.

◆ internal::ExtensionSet

friend class internal::ExtensionSet
friend

Definition at line 480 of file message_lite.h.

◆ internal::GenericTypeHandler

template<typename Type >
friend class internal::GenericTypeHandler
friend

Definition at line 490 of file message_lite.h.

◆ internal::LazyField

friend class internal::LazyField
friend

Definition at line 481 of file message_lite.h.

◆ internal::SwapFieldHelper

friend class internal::SwapFieldHelper
friend

Definition at line 482 of file message_lite.h.

◆ internal::TcParser

friend class internal::TcParser
friend

Definition at line 483 of file message_lite.h.

◆ internal::WeakFieldMap

friend class internal::WeakFieldMap
friend

Definition at line 484 of file message_lite.h.

◆ internal::WireFormatLite

friend class internal::WireFormatLite
friend

Definition at line 485 of file message_lite.h.

◆ Message

friend class Message
friend

Definition at line 478 of file message_lite.h.

◆ Reflection

friend class Reflection
friend

Definition at line 479 of file message_lite.h.

Member Data Documentation

◆ _internal_metadata_

internal::InternalMetadata google::protobuf::MessageLite::_internal_metadata_
protected

Definition at line 446 of file message_lite.h.


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