webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Protected Member Functions | List of all members
google::protobuf::Message Class Referenceabstract

#include <message.h>

Inheritance diagram for google::protobuf::Message:
google::protobuf::MessageLite google::protobuf::Any google::protobuf::Api google::protobuf::BoolValue google::protobuf::BytesValue google::protobuf::compiler::CodeGeneratorRequest google::protobuf::compiler::CodeGeneratorResponse google::protobuf::compiler::CodeGeneratorResponse_File google::protobuf::DescriptorProto google::protobuf::DescriptorProto_ExtensionRange google::protobuf::DescriptorProto_ReservedRange google::protobuf::DoubleValue google::protobuf::Duration google::protobuf::DynamicMessage google::protobuf::Empty google::protobuf::Enum google::protobuf::EnumDescriptorProto google::protobuf::EnumOptions google::protobuf::EnumValue google::protobuf::EnumValueDescriptorProto google::protobuf::EnumValueOptions google::protobuf::Field google::protobuf::FieldDescriptorProto google::protobuf::FieldMask google::protobuf::FieldOptions google::protobuf::FileDescriptorProto google::protobuf::FileDescriptorSet google::protobuf::FileOptions google::protobuf::FloatValue google::protobuf::GeneratedCodeInfo google::protobuf::GeneratedCodeInfo_Annotation google::protobuf::Int32Value google::protobuf::Int64Value google::protobuf.internal::MapEntryBase google::protobuf::ListValue google::protobuf::MessageOptions google::protobuf::Method google::protobuf::MethodDescriptorProto google::protobuf::MethodOptions google::protobuf::Mixin google::protobuf::OneofDescriptorProto google::protobuf::Option google::protobuf::ServiceDescriptorProto google::protobuf::ServiceOptions google::protobuf::SourceCodeInfo google::protobuf::SourceCodeInfo_Location google::protobuf::SourceContext google::protobuf::StringValue google::protobuf::Struct google::protobuf::Timestamp google::protobuf::Type google::protobuf::UInt32Value google::protobuf::UInt64Value google::protobuf::UninterpretedOption google::protobuf::UninterpretedOption_NamePart google::protobuf::Value

Public Types

typedef google::protobuf::Reflection Reflection
 

Public Member Functions

 Message ()
 
virtual ~Message ()
 
virtual MessageNew () const =0
 
virtual MessageNew (::google::protobuf::Arena *arena) const
 
virtual void CopyFrom (const Message &from)
 
virtual void MergeFrom (const Message &from)
 
void CheckInitialized () const
 
void FindInitializationErrors (std::vector< string > *errors) const
 
string InitializationErrorString () const
 
virtual void DiscardUnknownFields ()
 
virtual int SpaceUsed () const
 
string DebugString () const
 
string ShortDebugString () const
 
string Utf8DebugString () const
 
void PrintDebugString () const
 
bool ParseFromFileDescriptor (int file_descriptor)
 
bool ParsePartialFromFileDescriptor (int file_descriptor)
 
bool ParseFromIstream (istream *input)
 
bool ParsePartialFromIstream (istream *input)
 
bool SerializeToFileDescriptor (int file_descriptor) const
 
bool SerializePartialToFileDescriptor (int file_descriptor) const
 
bool SerializeToOstream (ostream *output) const
 
bool SerializePartialToOstream (ostream *output) const
 
virtual string GetTypeName () const
 
virtual void Clear ()
 
virtual bool IsInitialized () const
 
virtual void CheckTypeAndMergeFrom (const MessageLite &other)
 
virtual bool MergePartialFromCodedStream (io::CodedInputStream *input)
 
virtual int ByteSize () const
 
virtual void SerializeWithCachedSizes (io::CodedOutputStream *output) const
 
const DescriptorGetDescriptor () const
 
virtual const ReflectionGetReflection () const
 
- Public Member Functions inherited from google::protobuf::MessageLite
 MessageLite ()
 
virtual ~MessageLite ()
 
virtual ::google::protobuf::ArenaGetArena () const
 
virtual voidGetMaybeArenaPointer () const
 
bool ParseFromCodedStream (io::CodedInputStream *input)
 
bool ParsePartialFromCodedStream (io::CodedInputStream *input)
 
bool ParseFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
bool ParsePartialFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
bool ParseFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParsePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParseFromString (const string &data)
 
bool ParsePartialFromString (const string &data)
 
bool ParseFromArray (const void *data, int size)
 
bool ParsePartialFromArray (const void *data, int size)
 
bool MergeFromCodedStream (io::CodedInputStream *input)
 
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 (string *output) const
 
bool SerializePartialToString (string *output) const
 
bool SerializeToArray (void *data, int size) const
 
bool SerializePartialToArray (void *data, int size) const
 
string SerializeAsString () const
 
string SerializePartialAsString () const
 
bool AppendToString (string *output) const
 
bool AppendPartialToString (string *output) const
 
virtual uint8SerializeWithCachedSizesToArray (uint8 *target) const
 
virtual int GetCachedSize () const =0
 

Protected Member Functions

virtual Metadata GetMetadata () const =0
 

Member Typedef Documentation

◆ Reflection

Constructor & Destructor Documentation

◆ Message()

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

◆ ~Message()

Message::~Message ( )
virtual

Member Function Documentation

◆ ByteSize()

int Message::ByteSize ( ) const
virtual

Implements google::protobuf::MessageLite.

Reimplemented in google::protobuf::GeneratedCodeInfo, google::protobuf::GeneratedCodeInfo_Annotation, google::protobuf::SourceCodeInfo, google::protobuf::SourceCodeInfo_Location, google::protobuf::UninterpretedOption, google::protobuf::UninterpretedOption_NamePart, google::protobuf::MethodOptions, google::protobuf::ServiceOptions, google::protobuf::EnumValueOptions, google::protobuf::EnumOptions, google::protobuf::FieldOptions, google::protobuf::MessageOptions, google::protobuf::FileOptions, google::protobuf::MethodDescriptorProto, google::protobuf::ServiceDescriptorProto, google::protobuf::EnumValueDescriptorProto, google::protobuf::EnumDescriptorProto, google::protobuf::OneofDescriptorProto, google::protobuf::FieldDescriptorProto, google::protobuf::BytesValue, google::protobuf::Option, google::protobuf::DescriptorProto, google::protobuf::StringValue, google::protobuf::EnumValue, google::protobuf::DescriptorProto_ReservedRange, google::protobuf::BoolValue, google::protobuf::Enum, google::protobuf::DescriptorProto_ExtensionRange, google::protobuf::UInt32Value, google::protobuf::Int32Value, google::protobuf::Mixin, google::protobuf::UInt64Value, google::protobuf::ListValue, google::protobuf::compiler::CodeGeneratorResponse, google::protobuf::FileDescriptorProto, google::protobuf::Field, google::protobuf::Int64Value, google::protobuf::Method, google::protobuf::FileDescriptorSet, google::protobuf::compiler::CodeGeneratorResponse_File, google::protobuf::Value, google::protobuf::FloatValue, google::protobuf::Type, google::protobuf.internal::MapEntry< Key, Value, kKeyFieldType, kValueFieldType, default_enum_value >, google::protobuf::Struct, google::protobuf::DoubleValue, google::protobuf::compiler::CodeGeneratorRequest, google::protobuf::Any, google::protobuf::Empty, google::protobuf::Timestamp, google::protobuf::Api, google::protobuf::Duration, google::protobuf::FieldMask, and google::protobuf::SourceContext.

◆ CheckInitialized()

void Message::CheckInitialized ( ) const

◆ CheckTypeAndMergeFrom()

void Message::CheckTypeAndMergeFrom ( const MessageLite other)
virtual

◆ Clear()

void Message::Clear ( )
virtual

Implements google::protobuf::MessageLite.

Reimplemented in google::protobuf::GeneratedCodeInfo, google::protobuf::GeneratedCodeInfo_Annotation, google::protobuf::SourceCodeInfo, google::protobuf::SourceCodeInfo_Location, google::protobuf::UninterpretedOption, google::protobuf::UninterpretedOption_NamePart, google::protobuf::MethodOptions, google::protobuf::ServiceOptions, google::protobuf::EnumValueOptions, google::protobuf::EnumOptions, google::protobuf::FieldOptions, google::protobuf::MessageOptions, google::protobuf::FileOptions, google::protobuf::MethodDescriptorProto, google::protobuf::ServiceDescriptorProto, google::protobuf::EnumValueDescriptorProto, google::protobuf::EnumDescriptorProto, google::protobuf::OneofDescriptorProto, google::protobuf::FieldDescriptorProto, google::protobuf::BytesValue, google::protobuf::Option, google::protobuf::DescriptorProto, google::protobuf::StringValue, google::protobuf::EnumValue, google::protobuf::DescriptorProto_ReservedRange, google::protobuf::BoolValue, google::protobuf::Enum, google::protobuf::DescriptorProto_ExtensionRange, google::protobuf::UInt32Value, google::protobuf::Int32Value, google::protobuf::Mixin, google::protobuf::UInt64Value, google::protobuf::ListValue, google::protobuf::compiler::CodeGeneratorResponse, google::protobuf::FileDescriptorProto, google::protobuf::Field, google::protobuf::Int64Value, google::protobuf.internal::MapEntry< Key, Value, kKeyFieldType, kValueFieldType, default_enum_value >, google::protobuf::Method, google::protobuf::FileDescriptorSet, google::protobuf::compiler::CodeGeneratorResponse_File, google::protobuf::Value, google::protobuf::FloatValue, google::protobuf::Type, google::protobuf::Struct, google::protobuf::DoubleValue, google::protobuf::compiler::CodeGeneratorRequest, google::protobuf::Any, google::protobuf::Empty, google::protobuf::Timestamp, google::protobuf::Api, google::protobuf::Duration, google::protobuf::FieldMask, and google::protobuf::SourceContext.

◆ CopyFrom()

void Message::CopyFrom ( const Message from)
virtual

◆ DebugString()

string Message::DebugString ( ) const

◆ DiscardUnknownFields()

void Message::DiscardUnknownFields ( )
virtual

◆ FindInitializationErrors()

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

◆ GetDescriptor()

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

◆ GetMetadata()

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

Implemented in google::protobuf::GeneratedCodeInfo, google::protobuf::GeneratedCodeInfo_Annotation, google::protobuf::SourceCodeInfo, google::protobuf::SourceCodeInfo_Location, google::protobuf::UninterpretedOption, google::protobuf::UninterpretedOption_NamePart, google::protobuf::MethodOptions, google::protobuf::ServiceOptions, google::protobuf::EnumValueOptions, google::protobuf::EnumOptions, google::protobuf::FieldOptions, google::protobuf::MessageOptions, google::protobuf::FileOptions, google::protobuf::MethodDescriptorProto, google::protobuf::ServiceDescriptorProto, google::protobuf::EnumValueDescriptorProto, google::protobuf::EnumDescriptorProto, google::protobuf::OneofDescriptorProto, google::protobuf::FieldDescriptorProto, google::protobuf::BytesValue, google::protobuf::Option, google::protobuf::DescriptorProto, google::protobuf::StringValue, google::protobuf::EnumValue, google::protobuf::DescriptorProto_ReservedRange, google::protobuf::BoolValue, google::protobuf::Enum, google::protobuf::DescriptorProto_ExtensionRange, google::protobuf::UInt32Value, google::protobuf::Int32Value, google::protobuf::Mixin, google::protobuf::UInt64Value, google::protobuf::ListValue, google::protobuf::compiler::CodeGeneratorResponse, google::protobuf::FileDescriptorProto, google::protobuf::Field, google::protobuf::Int64Value, google::protobuf::DynamicMessage, google::protobuf::Method, google::protobuf::FileDescriptorSet, google::protobuf::compiler::CodeGeneratorResponse_File, google::protobuf::Value, google::protobuf::FloatValue, google::protobuf::Type, google::protobuf::Struct, google::protobuf::DoubleValue, google::protobuf::compiler::CodeGeneratorRequest, google::protobuf::Any, google::protobuf::Empty, google::protobuf::Timestamp, google::protobuf::Api, google::protobuf::Duration, google::protobuf::FieldMask, google::protobuf::SourceContext, and google::protobuf.internal::MapEntryBase.

◆ GetReflection()

virtual const Reflection* google::protobuf::Message::GetReflection ( ) const
inlinevirtual

◆ GetTypeName()

string Message::GetTypeName ( ) const
virtual

◆ InitializationErrorString()

string Message::InitializationErrorString ( ) const
virtual

Reimplemented from google::protobuf::MessageLite.

◆ IsInitialized()

bool Message::IsInitialized ( ) const
virtual

Implements google::protobuf::MessageLite.

Reimplemented in google::protobuf::GeneratedCodeInfo, google::protobuf::GeneratedCodeInfo_Annotation, google::protobuf::SourceCodeInfo, google::protobuf::SourceCodeInfo_Location, google::protobuf::UninterpretedOption, google::protobuf::UninterpretedOption_NamePart, google::protobuf::MethodOptions, google::protobuf::ServiceOptions, google::protobuf::EnumValueOptions, google::protobuf::EnumOptions, google::protobuf::FieldOptions, google::protobuf::MessageOptions, google::protobuf::FileOptions, google::protobuf::MethodDescriptorProto, google::protobuf::ServiceDescriptorProto, google::protobuf::EnumValueDescriptorProto, google::protobuf::EnumDescriptorProto, google::protobuf::OneofDescriptorProto, google::protobuf::FieldDescriptorProto, google::protobuf::BytesValue, google::protobuf::Option, google::protobuf::DescriptorProto, google::protobuf::StringValue, google::protobuf::EnumValue, google::protobuf::DescriptorProto_ReservedRange, google::protobuf::BoolValue, google::protobuf::Enum, google::protobuf::DescriptorProto_ExtensionRange, google::protobuf::UInt32Value, google::protobuf::Int32Value, google::protobuf::Mixin, google::protobuf::UInt64Value, google::protobuf::ListValue, google::protobuf::compiler::CodeGeneratorResponse, google::protobuf::FileDescriptorProto, google::protobuf::Field, google::protobuf::Int64Value, google::protobuf::Method, google::protobuf::FileDescriptorSet, google::protobuf::compiler::CodeGeneratorResponse_File, google::protobuf::Value, google::protobuf.internal::MapEntry< Key, Value, kKeyFieldType, kValueFieldType, default_enum_value >, google::protobuf::FloatValue, google::protobuf::Type, google::protobuf::Struct, google::protobuf::DoubleValue, google::protobuf::compiler::CodeGeneratorRequest, google::protobuf::Any, google::protobuf::Empty, google::protobuf::Timestamp, google::protobuf::Api, google::protobuf::Duration, google::protobuf::FieldMask, and google::protobuf::SourceContext.

◆ MergeFrom()

void Message::MergeFrom ( const Message from)
virtual

◆ MergePartialFromCodedStream()

bool Message::MergePartialFromCodedStream ( io::CodedInputStream input)
virtual

◆ New() [1/2]

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

Implements google::protobuf::MessageLite.

Implemented in google::protobuf::GeneratedCodeInfo, google::protobuf::GeneratedCodeInfo_Annotation, google::protobuf::SourceCodeInfo, google::protobuf::SourceCodeInfo_Location, google::protobuf::UninterpretedOption, google::protobuf::UninterpretedOption_NamePart, google::protobuf::MethodOptions, google::protobuf::ServiceOptions, google::protobuf::EnumValueOptions, google::protobuf::EnumOptions, google::protobuf::FieldOptions, google::protobuf::MessageOptions, google::protobuf::FileOptions, google::protobuf::MethodDescriptorProto, google::protobuf::ServiceDescriptorProto, google::protobuf::EnumValueDescriptorProto, google::protobuf::EnumDescriptorProto, google::protobuf::OneofDescriptorProto, google::protobuf::FieldDescriptorProto, google::protobuf::BytesValue, google::protobuf::Option, google::protobuf::DescriptorProto, google::protobuf::StringValue, google::protobuf::EnumValue, google::protobuf::DescriptorProto_ReservedRange, google::protobuf::BoolValue, google::protobuf::Enum, google::protobuf::DescriptorProto_ExtensionRange, google::protobuf::UInt32Value, google::protobuf::Int32Value, google::protobuf::Mixin, google::protobuf::UInt64Value, google::protobuf::ListValue, google::protobuf::compiler::CodeGeneratorResponse, google::protobuf::FileDescriptorProto, google::protobuf::Field, google::protobuf::DynamicMessage, google::protobuf::Int64Value, google::protobuf::Method, google::protobuf::FileDescriptorSet, google::protobuf::compiler::CodeGeneratorResponse_File, google::protobuf::Value, google::protobuf.internal::MapEntry< Key, Value, kKeyFieldType, kValueFieldType, default_enum_value >, google::protobuf::FloatValue, google::protobuf::Type, google::protobuf::Struct, google::protobuf::DoubleValue, google::protobuf::compiler::CodeGeneratorRequest, google::protobuf::Any, google::protobuf::Empty, google::protobuf::Timestamp, google::protobuf::Api, google::protobuf::Duration, google::protobuf::FieldMask, and google::protobuf::SourceContext.

◆ New() [2/2]

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

Reimplemented from google::protobuf::MessageLite.

Reimplemented in google::protobuf::GeneratedCodeInfo, google::protobuf::GeneratedCodeInfo_Annotation, google::protobuf::SourceCodeInfo, google::protobuf::SourceCodeInfo_Location, google::protobuf::UninterpretedOption, google::protobuf::UninterpretedOption_NamePart, google::protobuf::MethodOptions, google::protobuf::ServiceOptions, google::protobuf::EnumValueOptions, google::protobuf::EnumOptions, google::protobuf::FieldOptions, google::protobuf::MessageOptions, google::protobuf::FileOptions, google::protobuf::MethodDescriptorProto, google::protobuf::ServiceDescriptorProto, google::protobuf::EnumValueDescriptorProto, google::protobuf::EnumDescriptorProto, google::protobuf::OneofDescriptorProto, google::protobuf::FieldDescriptorProto, google::protobuf::BytesValue, google::protobuf::Option, google::protobuf::DescriptorProto, google::protobuf::StringValue, google::protobuf::EnumValue, google::protobuf::DescriptorProto_ReservedRange, google::protobuf::BoolValue, google::protobuf::Enum, google::protobuf::DescriptorProto_ExtensionRange, google::protobuf::UInt32Value, google::protobuf::Int32Value, google::protobuf::Mixin, google::protobuf::UInt64Value, google::protobuf::ListValue, google::protobuf::compiler::CodeGeneratorResponse, google::protobuf::FileDescriptorProto, google::protobuf::Field, google::protobuf::DynamicMessage, google::protobuf::Int64Value, google::protobuf::Method, google::protobuf::FileDescriptorSet, google::protobuf::compiler::CodeGeneratorResponse_File, google::protobuf::Value, google::protobuf::FloatValue, google::protobuf::Type, google::protobuf::Struct, google::protobuf::DoubleValue, google::protobuf::compiler::CodeGeneratorRequest, google::protobuf::Any, google::protobuf::Empty, google::protobuf::Timestamp, google::protobuf::Api, google::protobuf::Duration, google::protobuf::FieldMask, and google::protobuf::SourceContext.

◆ ParseFromFileDescriptor()

bool Message::ParseFromFileDescriptor ( int  file_descriptor)

◆ ParseFromIstream()

bool Message::ParseFromIstream ( istream *  input)

◆ ParsePartialFromFileDescriptor()

bool Message::ParsePartialFromFileDescriptor ( int  file_descriptor)

◆ ParsePartialFromIstream()

bool Message::ParsePartialFromIstream ( istream *  input)

◆ PrintDebugString()

void Message::PrintDebugString ( ) const

◆ SerializePartialToFileDescriptor()

bool Message::SerializePartialToFileDescriptor ( int  file_descriptor) const

◆ SerializePartialToOstream()

bool Message::SerializePartialToOstream ( ostream *  output) const

◆ SerializeToFileDescriptor()

bool Message::SerializeToFileDescriptor ( int  file_descriptor) const

◆ SerializeToOstream()

bool Message::SerializeToOstream ( ostream *  output) const

◆ SerializeWithCachedSizes()

void Message::SerializeWithCachedSizes ( io::CodedOutputStream output) const
virtual

◆ ShortDebugString()

string Message::ShortDebugString ( ) const

◆ SpaceUsed()

int Message::SpaceUsed ( ) const
virtual

◆ Utf8DebugString()

string Message::Utf8DebugString ( ) const

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