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

#include <type.pb.h>

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

Public Types

typedef Field_Kind Kind
 
typedef Field_Cardinality Cardinality
 
- Public Types inherited from google::protobuf::Message
typedef google::protobuf::Reflection Reflection
 

Public Member Functions

 Field ()
 
virtual ~Field ()
 
 Field (const Field &from)
 
Fieldoperator= (const Field &from)
 
void Swap (Field *other)
 
FieldNew () const
 
FieldNew (::google::protobuf::Arena *arena) const
 
void CopyFrom (const ::google::protobuf::Message &from)
 
void MergeFrom (const ::google::protobuf::Message &from)
 
void CopyFrom (const Field &from)
 
void MergeFrom (const Field &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_kind ()
 
::google::protobuf::Field_Kind kind () const
 
void set_kind (::google::protobuf::Field_Kind value)
 
void clear_cardinality ()
 
::google::protobuf::Field_Cardinality cardinality () const
 
void set_cardinality (::google::protobuf::Field_Cardinality value)
 
void clear_number ()
 
::google::protobuf::int32 number () const
 
void set_number (::google::protobuf::int32 value)
 
void clear_name ()
 
const ::std::stringname () const
 
void set_name (const ::std::string &value)
 
void set_name (const char *value)
 
void set_name (const char *value, size_t size)
 
::std::stringmutable_name ()
 
::std::stringrelease_name ()
 
void set_allocated_name (::std::string *name)
 
void clear_type_url ()
 
const ::std::stringtype_url () const
 
void set_type_url (const ::std::string &value)
 
void set_type_url (const char *value)
 
void set_type_url (const char *value, size_t size)
 
::std::stringmutable_type_url ()
 
::std::stringrelease_type_url ()
 
void set_allocated_type_url (::std::string *type_url)
 
void clear_oneof_index ()
 
::google::protobuf::int32 oneof_index () const
 
void set_oneof_index (::google::protobuf::int32 value)
 
void clear_packed ()
 
bool packed () const
 
void set_packed (bool value)
 
int options_size () const
 
void clear_options ()
 
const ::google::protobuf::Optionoptions (int index) const
 
::google::protobuf::Optionmutable_options (int index)
 
::google::protobuf::Optionadd_options ()
 
::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > * mutable_options ()
 
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > & options () const
 
void clear_json_name ()
 
const ::std::stringjson_name () const
 
void set_json_name (const ::std::string &value)
 
void set_json_name (const char *value)
 
void set_json_name (const char *value, size_t size)
 
::std::stringmutable_json_name ()
 
::std::stringrelease_json_name ()
 
void set_allocated_json_name (::std::string *json_name)
 
void clear_default_value ()
 
const ::std::stringdefault_value () const
 
void set_default_value (const ::std::string &value)
 
void set_default_value (const char *value)
 
void set_default_value (const char *value, size_t size)
 
::std::stringmutable_default_value ()
 
::std::stringrelease_default_value ()
 
void set_allocated_default_value (::std::string *default_value)
 
- 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 Fielddefault_instance ()
 
static bool Kind_IsValid (int value)
 
static const ::google::protobuf::EnumDescriptorKind_descriptor ()
 
static const ::std::stringKind_Name (Kind value)
 
static bool Kind_Parse (const ::std::string &name, Kind *value)
 
static bool Cardinality_IsValid (int value)
 
static const ::google::protobuf::EnumDescriptorCardinality_descriptor ()
 
static const ::std::stringCardinality_Name (Cardinality value)
 
static bool Cardinality_Parse (const ::std::string &name, Cardinality *value)
 

Static Public Attributes

static const Kind TYPE_UNKNOWN
 
static const Kind TYPE_DOUBLE
 
static const Kind TYPE_FLOAT
 
static const Kind TYPE_INT64
 
static const Kind TYPE_UINT64
 
static const Kind TYPE_INT32
 
static const Kind TYPE_FIXED64
 
static const Kind TYPE_FIXED32
 
static const Kind TYPE_BOOL
 
static const Kind TYPE_STRING
 
static const Kind TYPE_GROUP
 
static const Kind TYPE_MESSAGE
 
static const Kind TYPE_BYTES
 
static const Kind TYPE_UINT32
 
static const Kind TYPE_ENUM
 
static const Kind TYPE_SFIXED32
 
static const Kind TYPE_SFIXED64
 
static const Kind TYPE_SINT32
 
static const Kind TYPE_SINT64
 
static const Kind Kind_MIN
 
static const Kind Kind_MAX
 
static const int Kind_ARRAYSIZE
 
static const Cardinality CARDINALITY_UNKNOWN
 
static const Cardinality CARDINALITY_OPTIONAL
 
static const Cardinality CARDINALITY_REQUIRED
 
static const Cardinality CARDINALITY_REPEATED
 
static const Cardinality Cardinality_MIN
 
static const Cardinality Cardinality_MAX
 
static const int Cardinality_ARRAYSIZE
 
static const int kKindFieldNumber = 1
 
static const int kCardinalityFieldNumber = 2
 
static const int kNumberFieldNumber = 3
 
static const int kNameFieldNumber = 4
 
static const int kTypeUrlFieldNumber = 6
 
static const int kOneofIndexFieldNumber = 7
 
static const int kPackedFieldNumber = 8
 
static const int kOptionsFieldNumber = 9
 
static const int kJsonNameFieldNumber = 10
 
static const int kDefaultValueFieldNumber = 11
 

Friends

void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto ()
 
void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto ()
 
void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto ()
 

Additional Inherited Members

Member Typedef Documentation

◆ Cardinality

◆ Kind

Constructor & Destructor Documentation

◆ Field() [1/2]

google::protobuf::Field::Field ( )

◆ ~Field()

google::protobuf::Field::~Field ( )
virtual

◆ Field() [2/2]

google::protobuf::Field::Field ( const Field from)

Member Function Documentation

◆ add_options()

google::protobuf::Option * google::protobuf::Field::add_options ( )
inline

◆ ByteSize()

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

Reimplemented from google::protobuf::Message.

◆ cardinality()

google::protobuf::Field_Cardinality google::protobuf::Field::cardinality ( ) const
inline

◆ Cardinality_descriptor()

static const ::google::protobuf::EnumDescriptor* google::protobuf::Field::Cardinality_descriptor ( )
inlinestatic

◆ Cardinality_IsValid()

static bool google::protobuf::Field::Cardinality_IsValid ( int  value)
inlinestatic

◆ Cardinality_Name()

static const ::std::string& google::protobuf::Field::Cardinality_Name ( Cardinality  value)
inlinestatic

◆ Cardinality_Parse()

static bool google::protobuf::Field::Cardinality_Parse ( const ::std::string name,
Cardinality value 
)
inlinestatic

◆ Clear()

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

Reimplemented from google::protobuf::Message.

◆ clear_cardinality()

void google::protobuf::Field::clear_cardinality ( )
inline

◆ clear_default_value()

void google::protobuf::Field::clear_default_value ( )
inline

◆ clear_json_name()

void google::protobuf::Field::clear_json_name ( )
inline

◆ clear_kind()

void google::protobuf::Field::clear_kind ( )
inline

◆ clear_name()

void google::protobuf::Field::clear_name ( )
inline

◆ clear_number()

void google::protobuf::Field::clear_number ( )
inline

◆ clear_oneof_index()

void google::protobuf::Field::clear_oneof_index ( )
inline

◆ clear_options()

void google::protobuf::Field::clear_options ( )
inline

◆ clear_packed()

void google::protobuf::Field::clear_packed ( )
inline

◆ clear_type_url()

void google::protobuf::Field::clear_type_url ( )
inline

◆ CopyFrom() [1/2]

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

◆ CopyFrom() [2/2]

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

◆ default_instance()

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

◆ default_value()

const ::std::string & google::protobuf::Field::default_value ( ) const
inline

◆ descriptor()

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

◆ GetCachedSize()

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

◆ GetMetadata()

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

◆ IsInitialized()

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

Reimplemented from google::protobuf::Message.

◆ json_name()

const ::std::string & google::protobuf::Field::json_name ( ) const
inline

◆ kind()

google::protobuf::Field_Kind google::protobuf::Field::kind ( ) const
inline

◆ Kind_descriptor()

static const ::google::protobuf::EnumDescriptor* google::protobuf::Field::Kind_descriptor ( )
inlinestatic

◆ Kind_IsValid()

static bool google::protobuf::Field::Kind_IsValid ( int  value)
inlinestatic

◆ Kind_Name()

static const ::std::string& google::protobuf::Field::Kind_Name ( Kind  value)
inlinestatic

◆ Kind_Parse()

static bool google::protobuf::Field::Kind_Parse ( const ::std::string name,
Kind value 
)
inlinestatic

◆ MergeFrom() [1/2]

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

◆ MergeFrom() [2/2]

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

◆ MergePartialFromCodedStream()

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

◆ mutable_default_value()

std::string * google::protobuf::Field::mutable_default_value ( )
inline

◆ mutable_json_name()

std::string * google::protobuf::Field::mutable_json_name ( )
inline

◆ mutable_name()

std::string * google::protobuf::Field::mutable_name ( )
inline

◆ mutable_options() [1/2]

google::protobuf::Option * google::protobuf::Field::mutable_options ( int  index)
inline

◆ mutable_options() [2/2]

google::protobuf::RepeatedPtrField<::google::protobuf::Option > * google::protobuf::Field::mutable_options ( )
inline

◆ mutable_type_url()

std::string * google::protobuf::Field::mutable_type_url ( )
inline

◆ name()

const ::std::string & google::protobuf::Field::name ( ) const
inline

◆ New() [1/2]

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

◆ New() [2/2]

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

Reimplemented from google::protobuf::Message.

◆ number()

google::protobuf::int32 google::protobuf::Field::number ( ) const
inline

◆ oneof_index()

google::protobuf::int32 google::protobuf::Field::oneof_index ( ) const
inline

◆ operator=()

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

◆ options() [1/2]

const ::google::protobuf::Option & google::protobuf::Field::options ( int  index) const
inline

◆ options() [2/2]

const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option > & google::protobuf::Field::options ( ) const
inline

◆ options_size()

int google::protobuf::Field::options_size ( ) const
inline

◆ packed()

bool google::protobuf::Field::packed ( ) const
inline

◆ release_default_value()

std::string * google::protobuf::Field::release_default_value ( )
inline

◆ release_json_name()

std::string * google::protobuf::Field::release_json_name ( )
inline

◆ release_name()

std::string * google::protobuf::Field::release_name ( )
inline

◆ release_type_url()

std::string * google::protobuf::Field::release_type_url ( )
inline

◆ SerializeWithCachedSizes()

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

◆ SerializeWithCachedSizesToArray()

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

◆ set_allocated_default_value()

void google::protobuf::Field::set_allocated_default_value ( ::std::string default_value)
inline

◆ set_allocated_json_name()

void google::protobuf::Field::set_allocated_json_name ( ::std::string json_name)
inline

◆ set_allocated_name()

void google::protobuf::Field::set_allocated_name ( ::std::string name)
inline

◆ set_allocated_type_url()

void google::protobuf::Field::set_allocated_type_url ( ::std::string type_url)
inline

◆ set_cardinality()

void google::protobuf::Field::set_cardinality ( ::google::protobuf::Field_Cardinality  value)
inline

◆ set_default_value() [1/3]

void google::protobuf::Field::set_default_value ( const ::std::string value)
inline

◆ set_default_value() [2/3]

void google::protobuf::Field::set_default_value ( const char *  value)
inline

◆ set_default_value() [3/3]

void google::protobuf::Field::set_default_value ( const char *  value,
size_t  size 
)
inline

◆ set_json_name() [1/3]

void google::protobuf::Field::set_json_name ( const ::std::string value)
inline

◆ set_json_name() [2/3]

void google::protobuf::Field::set_json_name ( const char *  value)
inline

◆ set_json_name() [3/3]

void google::protobuf::Field::set_json_name ( const char *  value,
size_t  size 
)
inline

◆ set_kind()

void google::protobuf::Field::set_kind ( ::google::protobuf::Field_Kind  value)
inline

◆ set_name() [1/3]

void google::protobuf::Field::set_name ( const ::std::string value)
inline

◆ set_name() [2/3]

void google::protobuf::Field::set_name ( const char *  value)
inline

◆ set_name() [3/3]

void google::protobuf::Field::set_name ( const char *  value,
size_t  size 
)
inline

◆ set_number()

void google::protobuf::Field::set_number ( ::google::protobuf::int32  value)
inline

◆ set_oneof_index()

void google::protobuf::Field::set_oneof_index ( ::google::protobuf::int32  value)
inline

◆ set_packed()

void google::protobuf::Field::set_packed ( bool  value)
inline

◆ set_type_url() [1/3]

void google::protobuf::Field::set_type_url ( const ::std::string value)
inline

◆ set_type_url() [2/3]

void google::protobuf::Field::set_type_url ( const char *  value)
inline

◆ set_type_url() [3/3]

void google::protobuf::Field::set_type_url ( const char *  value,
size_t  size 
)
inline

◆ Swap()

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

◆ type_url()

const ::std::string & google::protobuf::Field::type_url ( ) const
inline

Friends And Related Function Documentation

◆ protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto

void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto ( )
friend

◆ protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto

void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto ( )
friend

◆ protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto

void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto ( )
friend

Member Data Documentation

◆ Cardinality_ARRAYSIZE

const int google::protobuf::Field::Cardinality_ARRAYSIZE
static

◆ Cardinality_MAX

const Field_Cardinality google::protobuf::Field::Cardinality_MAX
static

◆ Cardinality_MIN

const Field_Cardinality google::protobuf::Field::Cardinality_MIN
static

◆ CARDINALITY_OPTIONAL

const Field_Cardinality google::protobuf::Field::CARDINALITY_OPTIONAL
static

◆ CARDINALITY_REPEATED

const Field_Cardinality google::protobuf::Field::CARDINALITY_REPEATED
static

◆ CARDINALITY_REQUIRED

const Field_Cardinality google::protobuf::Field::CARDINALITY_REQUIRED
static

◆ CARDINALITY_UNKNOWN

const Field_Cardinality google::protobuf::Field::CARDINALITY_UNKNOWN
static

◆ kCardinalityFieldNumber

const int google::protobuf::Field::kCardinalityFieldNumber = 2
static

◆ kDefaultValueFieldNumber

const int google::protobuf::Field::kDefaultValueFieldNumber = 11
static

◆ Kind_ARRAYSIZE

const int google::protobuf::Field::Kind_ARRAYSIZE
static
Initial value:

◆ Kind_MAX

const Field_Kind google::protobuf::Field::Kind_MAX
static
Initial value:

◆ Kind_MIN

const Field_Kind google::protobuf::Field::Kind_MIN
static
Initial value:

◆ kJsonNameFieldNumber

const int google::protobuf::Field::kJsonNameFieldNumber = 10
static

◆ kKindFieldNumber

const int google::protobuf::Field::kKindFieldNumber = 1
static

◆ kNameFieldNumber

const int google::protobuf::Field::kNameFieldNumber = 4
static

◆ kNumberFieldNumber

const int google::protobuf::Field::kNumberFieldNumber = 3
static

◆ kOneofIndexFieldNumber

const int google::protobuf::Field::kOneofIndexFieldNumber = 7
static

◆ kOptionsFieldNumber

const int google::protobuf::Field::kOptionsFieldNumber = 9
static

◆ kPackedFieldNumber

const int google::protobuf::Field::kPackedFieldNumber = 8
static

◆ kTypeUrlFieldNumber

const int google::protobuf::Field::kTypeUrlFieldNumber = 6
static

◆ TYPE_BOOL

const Field_Kind google::protobuf::Field::TYPE_BOOL
static
Initial value:

◆ TYPE_BYTES

const Field_Kind google::protobuf::Field::TYPE_BYTES
static
Initial value:

◆ TYPE_DOUBLE

const Field_Kind google::protobuf::Field::TYPE_DOUBLE
static
Initial value:

◆ TYPE_ENUM

const Field_Kind google::protobuf::Field::TYPE_ENUM
static
Initial value:

◆ TYPE_FIXED32

const Field_Kind google::protobuf::Field::TYPE_FIXED32
static
Initial value:

◆ TYPE_FIXED64

const Field_Kind google::protobuf::Field::TYPE_FIXED64
static
Initial value:

◆ TYPE_FLOAT

const Field_Kind google::protobuf::Field::TYPE_FLOAT
static
Initial value:

◆ TYPE_GROUP

const Field_Kind google::protobuf::Field::TYPE_GROUP
static
Initial value:

◆ TYPE_INT32

const Field_Kind google::protobuf::Field::TYPE_INT32
static
Initial value:

◆ TYPE_INT64

const Field_Kind google::protobuf::Field::TYPE_INT64
static
Initial value:

◆ TYPE_MESSAGE

const Field_Kind google::protobuf::Field::TYPE_MESSAGE
static
Initial value:

◆ TYPE_SFIXED32

const Field_Kind google::protobuf::Field::TYPE_SFIXED32
static
Initial value:

◆ TYPE_SFIXED64

const Field_Kind google::protobuf::Field::TYPE_SFIXED64
static
Initial value:

◆ TYPE_SINT32

const Field_Kind google::protobuf::Field::TYPE_SINT32
static
Initial value:

◆ TYPE_SINT64

const Field_Kind google::protobuf::Field::TYPE_SINT64
static
Initial value:

◆ TYPE_STRING

const Field_Kind google::protobuf::Field::TYPE_STRING
static
Initial value:

◆ TYPE_UINT32

const Field_Kind google::protobuf::Field::TYPE_UINT32
static
Initial value:

◆ TYPE_UINT64

const Field_Kind google::protobuf::Field::TYPE_UINT64
static
Initial value:

◆ TYPE_UNKNOWN

const Field_Kind google::protobuf::Field::TYPE_UNKNOWN
static
Initial value:

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