webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
google::protobuf::Value Class Reference

#include <struct.pb.h>

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

Public Types

enum  KindCase {
  kNullValue = 1, kNumberValue = 2, kStringValue = 3, kBoolValue = 4,
  kStructValue = 5, kListValue = 6, KIND_NOT_SET = 0
}
 
- Public Types inherited from google::protobuf::Message
typedef google::protobuf::Reflection Reflection
 

Public Member Functions

 Value ()
 
virtual ~Value ()
 
 Value (const Value &from)
 
Valueoperator= (const Value &from)
 
void Swap (Value *other)
 
ValueNew () const
 
ValueNew (::google::protobuf::Arena *arena) const
 
void CopyFrom (const ::google::protobuf::Message &from)
 
void MergeFrom (const ::google::protobuf::Message &from)
 
void CopyFrom (const Value &from)
 
void MergeFrom (const Value &from)
 
void Clear ()
 
bool IsInitialized () const
 
int ByteSize () const
 
bool MergePartialFromCodedStream (::google::protobuf::io::CodedInputStream *input)
 
void SerializeWithCachedSizes (::google::protobuf::io::CodedOutputStream *output) const
 
::google::protobuf::uint8SerializeWithCachedSizesToArray (::google::protobuf::uint8 *output) const
 
int GetCachedSize () const
 
::google::protobuf::Metadata GetMetadata () const
 
void clear_null_value ()
 
::google::protobuf::NullValue null_value () const
 
void set_null_value (::google::protobuf::NullValue value)
 
void clear_number_value ()
 
double number_value () const
 
void set_number_value (double value)
 
void clear_string_value ()
 
const ::std::stringstring_value () const
 
void set_string_value (const ::std::string &value)
 
void set_string_value (const char *value)
 
void set_string_value (const char *value, size_t size)
 
::std::stringmutable_string_value ()
 
::std::stringrelease_string_value ()
 
void set_allocated_string_value (::std::string *string_value)
 
void clear_bool_value ()
 
bool bool_value () const
 
void set_bool_value (bool value)
 
bool has_struct_value () const
 
void clear_struct_value ()
 
const ::google::protobuf::Structstruct_value () const
 
::google::protobuf::Structmutable_struct_value ()
 
::google::protobuf::Structrelease_struct_value ()
 
void set_allocated_struct_value (::google::protobuf::Struct *struct_value)
 
bool has_list_value () const
 
void clear_list_value ()
 
const ::google::protobuf::ListValuelist_value () const
 
::google::protobuf::ListValuemutable_list_value ()
 
::google::protobuf::ListValuerelease_list_value ()
 
void set_allocated_list_value (::google::protobuf::ListValue *list_value)
 
KindCase kind_case () const
 
- Public Member Functions inherited from google::protobuf::Message
 Message ()
 
virtual ~Message ()
 
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 CheckTypeAndMergeFrom (const MessageLite &other)
 
virtual bool MergePartialFromCodedStream (io::CodedInputStream *input)
 
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
 

Static Public Member Functions

static const ::google::protobuf::Descriptordescriptor ()
 
static const Valuedefault_instance ()
 

Static Public Attributes

static const int kNullValueFieldNumber = 1
 
static const int kNumberValueFieldNumber = 2
 
static const int kStringValueFieldNumber = 3
 
static const int kBoolValueFieldNumber = 4
 
static const int kStructValueFieldNumber = 5
 
static const int kListValueFieldNumber = 6
 

Friends

void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto ()
 
void protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto ()
 
void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto ()
 

Additional Inherited Members

Member Enumeration Documentation

◆ KindCase

enum google::protobuf::Value::KindCase
Enumerator
kNullValue 
kNumberValue 
kStringValue 
kBoolValue 
kStructValue 
kListValue 
KIND_NOT_SET 

Constructor & Destructor Documentation

◆ Value() [1/2]

google::protobuf::Value::Value ( )

◆ ~Value()

google::protobuf::Value::~Value ( )
virtual

◆ Value() [2/2]

google::protobuf::Value::Value ( const Value from)

Member Function Documentation

◆ bool_value()

bool google::protobuf::Value::bool_value ( ) const
inline

◆ ByteSize()

int google::protobuf::Value::ByteSize ( ) const
virtual

Reimplemented from google::protobuf::Message.

◆ Clear()

void google::protobuf::Value::Clear ( )
virtual

Reimplemented from google::protobuf::Message.

◆ clear_bool_value()

void google::protobuf::Value::clear_bool_value ( )
inline

◆ clear_list_value()

void google::protobuf::Value::clear_list_value ( )
inline

◆ clear_null_value()

void google::protobuf::Value::clear_null_value ( )
inline

◆ clear_number_value()

void google::protobuf::Value::clear_number_value ( )
inline

◆ clear_string_value()

void google::protobuf::Value::clear_string_value ( )
inline

◆ clear_struct_value()

void google::protobuf::Value::clear_struct_value ( )
inline

◆ CopyFrom() [1/2]

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

◆ CopyFrom() [2/2]

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

◆ default_instance()

const Value & google::protobuf::Value::default_instance ( )
static

◆ descriptor()

const ::google::protobuf::Descriptor * google::protobuf::Value::descriptor ( )
static

◆ GetCachedSize()

int google::protobuf::Value::GetCachedSize ( ) const
inlinevirtual

◆ GetMetadata()

google::protobuf::Metadata google::protobuf::Value::GetMetadata ( ) const
virtual

◆ has_list_value()

bool google::protobuf::Value::has_list_value ( ) const
inline

◆ has_struct_value()

bool google::protobuf::Value::has_struct_value ( ) const
inline

◆ IsInitialized()

bool google::protobuf::Value::IsInitialized ( ) const
virtual

Reimplemented from google::protobuf::Message.

◆ kind_case()

Value::KindCase google::protobuf::Value::kind_case ( ) const
inline

◆ list_value()

const ::google::protobuf::ListValue & google::protobuf::Value::list_value ( ) const
inline

◆ MergeFrom() [1/2]

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

◆ MergeFrom() [2/2]

void google::protobuf::Value::MergeFrom ( const Value from)

◆ MergePartialFromCodedStream()

bool google::protobuf::Value::MergePartialFromCodedStream ( ::google::protobuf::io::CodedInputStream input)

◆ mutable_list_value()

google::protobuf::ListValue * google::protobuf::Value::mutable_list_value ( )
inline

◆ mutable_string_value()

std::string * google::protobuf::Value::mutable_string_value ( )
inline

◆ mutable_struct_value()

google::protobuf::Struct * google::protobuf::Value::mutable_struct_value ( )
inline

◆ New() [1/2]

Value* google::protobuf::Value::New ( ) const
inlinevirtual

◆ New() [2/2]

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

Reimplemented from google::protobuf::Message.

◆ null_value()

google::protobuf::NullValue google::protobuf::Value::null_value ( ) const
inline

◆ number_value()

double google::protobuf::Value::number_value ( ) const
inline

◆ operator=()

Value& google::protobuf::Value::operator= ( const Value from)
inline

◆ release_list_value()

google::protobuf::ListValue * google::protobuf::Value::release_list_value ( )
inline

◆ release_string_value()

std::string * google::protobuf::Value::release_string_value ( )
inline

◆ release_struct_value()

google::protobuf::Struct * google::protobuf::Value::release_struct_value ( )
inline

◆ SerializeWithCachedSizes()

void google::protobuf::Value::SerializeWithCachedSizes ( ::google::protobuf::io::CodedOutputStream output) const

◆ SerializeWithCachedSizesToArray()

google::protobuf::uint8 * google::protobuf::Value::SerializeWithCachedSizesToArray ( ::google::protobuf::uint8 output) const

◆ set_allocated_list_value()

void google::protobuf::Value::set_allocated_list_value ( ::google::protobuf::ListValue list_value)
inline

◆ set_allocated_string_value()

void google::protobuf::Value::set_allocated_string_value ( ::std::string string_value)
inline

◆ set_allocated_struct_value()

void google::protobuf::Value::set_allocated_struct_value ( ::google::protobuf::Struct struct_value)
inline

◆ set_bool_value()

void google::protobuf::Value::set_bool_value ( bool  value)
inline

◆ set_null_value()

void google::protobuf::Value::set_null_value ( ::google::protobuf::NullValue  value)
inline

◆ set_number_value()

void google::protobuf::Value::set_number_value ( double  value)
inline

◆ set_string_value() [1/3]

void google::protobuf::Value::set_string_value ( const ::std::string value)
inline

◆ set_string_value() [2/3]

void google::protobuf::Value::set_string_value ( const char *  value)
inline

◆ set_string_value() [3/3]

void google::protobuf::Value::set_string_value ( const char *  value,
size_t  size 
)
inline

◆ string_value()

const ::std::string & google::protobuf::Value::string_value ( ) const
inline

◆ struct_value()

const ::google::protobuf::Struct & google::protobuf::Value::struct_value ( ) const
inline

◆ Swap()

void google::protobuf::Value::Swap ( Value other)

Friends And Related Function Documentation

◆ protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto

void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto ( )
friend

◆ protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto

void protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto ( )
friend

◆ protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto

void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto ( )
friend

Member Data Documentation

◆ kBoolValueFieldNumber

const int google::protobuf::Value::kBoolValueFieldNumber = 4
static

◆ kListValueFieldNumber

const int google::protobuf::Value::kListValueFieldNumber = 6
static

◆ kNullValueFieldNumber

const int google::protobuf::Value::kNullValueFieldNumber = 1
static

◆ kNumberValueFieldNumber

const int google::protobuf::Value::kNumberValueFieldNumber = 2
static

◆ kStringValueFieldNumber

const int google::protobuf::Value::kStringValueFieldNumber = 3
static

◆ kStructValueFieldNumber

const int google::protobuf::Value::kStructValueFieldNumber = 5
static

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