Goby3  3.1.5
2024.05.14
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

 MessageLite ()
 
virtual ~MessageLite ()=default
 
virtual std::string GetTypeName () const =0
 
virtual MessageLiteNew () const =0
 
virtual MessageLiteNew (Arena *arena) const
 
Arena * GetArena () const
 
void * GetMaybeArenaPointer () 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
 
bool ParseFromCodedStream (io::CodedInputStream *input)
 
bool ParsePartialFromCodedStream (io::CodedInputStream *input)
 
bool ParseFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
bool ParsePartialFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
bool ParseFromFileDescriptor (int file_descriptor)
 
bool ParsePartialFromFileDescriptor (int file_descriptor)
 
bool ParseFromIstream (std::istream *input)
 
bool ParsePartialFromIstream (std::istream *input)
 
bool MergePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool MergeFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParseFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParsePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParseFromString (const std::string &data)
 
bool ParsePartialFromString (const std::string &data)
 
bool ParseFromArray (const void *data, int size)
 
bool ParsePartialFromArray (const void *data, int size)
 
bool MergeFromCodedStream (io::CodedInputStream *input)
 
bool MergePartialFromCodedStream (io::CodedInputStream *input)
 
bool MergeFromString (const std::string &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 * SerializeWithCachedSizesToArray (uint8 *target) const
 
virtual int GetCachedSize () const =0
 
virtual const char * _InternalParse (const char *, internal::ParseContext *)
 
template<ParseFlags flags, typename T >
bool ParseFrom (const T &input)
 
virtual uint8 * _InternalSerialize (uint8 *ptr, io::EpsCopyOutputStream *stream) const =0
 
bool IsInitializedWithErrors () const
 

Protected Member Functions

 MessageLite (Arena *arena)
 

Static Protected Member Functions

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

Protected Attributes

internal::InternalMetadata _internal_metadata_
 

Friends

class internal::WireFormatLite
 
class Message
 
class internal::WeakFieldMap
 

Detailed Description

Definition at line 188 of file message_lite.h.

Member Enumeration Documentation

◆ ParseFlags

Enumerator
kMerge 
kParse 
kMergePartial 
kParsePartial 
kMergeWithAliasing 
kParseWithAliasing 
kMergePartialWithAliasing 
kParsePartialWithAliasing 

Definition at line 458 of file message_lite.h.

Constructor & Destructor Documentation

◆ MessageLite() [1/2]

google::protobuf::MessageLite::MessageLite ( )
inline

Definition at line 190 of file message_lite.h.

◆ ~MessageLite()

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

◆ MessageLite() [2/2]

google::protobuf::MessageLite::MessageLite ( Arena *  arena)
inlineexplicitprotected

Definition at line 453 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 442 of file message_lite.h.

◆ _InternalSerialize()

virtual uint8* google::protobuf::MessageLite::_InternalSerialize ( uint8 *  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 408 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 449 of file message_lite.h.

◆ DebugString()

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

◆ GetArena()

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

Definition at line 211 of file message_lite.h.

◆ GetCachedSize()

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

◆ GetMaybeArenaPointer()

void* google::protobuf::MessageLite::GetMaybeArenaPointer ( ) const
inline

Definition at line 222 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.

◆ 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 478 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 ( const std::string &  data)

◆ MergePartialFromBoundedZeroCopyStream()

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

◆ MergePartialFromCodedStream()

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

◆ New() [1/2]

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

Implemented in google::protobuf::Message.

◆ New() [2/2]

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

Reimplemented in google::protobuf::Message.

◆ 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()

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

◆ ParseFromBoundedZeroCopyStream()

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

◆ ParseFromCodedStream()

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

◆ ParseFromFileDescriptor()

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

◆ ParseFromIstream()

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

◆ ParseFromString()

bool google::protobuf::MessageLite::ParseFromString ( const std::string &  data)

◆ ParseFromZeroCopyStream()

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

◆ ParsePartialFromArray()

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

◆ ParsePartialFromBoundedZeroCopyStream()

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

◆ ParsePartialFromCodedStream()

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

◆ ParsePartialFromFileDescriptor()

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

◆ ParsePartialFromIstream()

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

◆ ParsePartialFromString()

bool google::protobuf::MessageLite::ParsePartialFromString ( const std::string &  data)

◆ ParsePartialFromZeroCopyStream()

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 413 of file message_lite.h.

◆ SerializeWithCachedSizesToArray()

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

◆ ShortDebugString()

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

Definition at line 255 of file message_lite.h.

◆ Utf8DebugString()

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

Definition at line 258 of file message_lite.h.

Friends And Related Function Documentation

◆ internal::WeakFieldMap

friend class internal::WeakFieldMap
friend

Definition at line 490 of file message_lite.h.

◆ internal::WireFormatLite

friend class internal::WireFormatLite
friend

Definition at line 488 of file message_lite.h.

◆ Message

friend class Message
friend

Definition at line 489 of file message_lite.h.

Member Data Documentation

◆ _internal_metadata_

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

Definition at line 455 of file message_lite.h.


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