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::FieldDescriptor Class Reference

#include <descriptor.h>

Public Types

enum  Type {
  TYPE_DOUBLE = 1, TYPE_FLOAT = 2, TYPE_INT64 = 3, TYPE_UINT64 = 4,
  TYPE_INT32 = 5, TYPE_FIXED64 = 6, TYPE_FIXED32 = 7, TYPE_BOOL = 8,
  TYPE_STRING = 9, TYPE_GROUP = 10, TYPE_MESSAGE = 11, TYPE_BYTES = 12,
  TYPE_UINT32 = 13, TYPE_ENUM = 14, TYPE_SFIXED32 = 15, TYPE_SFIXED64 = 16,
  TYPE_SINT32 = 17, TYPE_SINT64 = 18, MAX_TYPE = 18
}
 
enum  CppType {
  CPPTYPE_INT32 = 1, CPPTYPE_INT64 = 2, CPPTYPE_UINT32 = 3, CPPTYPE_UINT64 = 4,
  CPPTYPE_DOUBLE = 5, CPPTYPE_FLOAT = 6, CPPTYPE_BOOL = 7, CPPTYPE_ENUM = 8,
  CPPTYPE_STRING = 9, CPPTYPE_MESSAGE = 10, MAX_CPPTYPE = 10
}
 
enum  Label { LABEL_OPTIONAL = 1, LABEL_REQUIRED = 2, LABEL_REPEATED = 3, MAX_LABEL = 3 }
 

Public Member Functions

const stringname () const
 
const stringfull_name () const
 
const stringjson_name () const
 
const FileDescriptorfile () const
 
bool is_extension () const
 
int number () const
 
const stringlowercase_name () const
 
const stringcamelcase_name () const
 
Type type () const
 
const char * type_name () const
 
CppType cpp_type () const
 
const char * cpp_type_name () const
 
Label label () const
 
bool is_required () const
 
bool is_optional () const
 
bool is_repeated () const
 
bool is_packable () const
 
bool is_packed () const
 
bool is_map () const
 
int index () const
 
bool has_default_value () const
 
int32 default_value_int32 () const
 
int64 default_value_int64 () const
 
uint32 default_value_uint32 () const
 
uint64 default_value_uint64 () const
 
float default_value_float () const
 
double default_value_double () const
 
bool default_value_bool () const
 
const EnumValueDescriptordefault_value_enum () const
 
const stringdefault_value_string () const
 
const Descriptorcontaining_type () const
 
const OneofDescriptorcontaining_oneof () const
 
int index_in_oneof () const
 
const Descriptorextension_scope () const
 
const Descriptormessage_type () const
 
const EnumDescriptorenum_type () const
 
const FieldOptionsoptions () const
 
void CopyTo (FieldDescriptorProto *proto) const
 
string DebugString () const
 
string DebugStringWithOptions (const DebugStringOptions &options) const
 
bool GetSourceLocation (SourceLocation *out_location) const
 

Static Public Member Functions

static CppType TypeToCppType (Type type)
 
static const char * TypeName (Type type)
 
static const char * CppTypeName (CppType cpp_type)
 
static bool IsTypePackable (Type field_type)
 

Static Public Attributes

static const int kMaxNumber = (1 << 29) - 1
 
static const int kFirstReservedNumber = 19000
 
static const int kLastReservedNumber = 19999
 

Friends

class ::google::protobuf::io::Printer
 
class DescriptorBuilder
 
class FileDescriptor
 
class Descriptor
 
class OneofDescriptor
 

Member Enumeration Documentation

◆ CppType

enum google::protobuf::FieldDescriptor::CppType
Enumerator
CPPTYPE_INT32 
CPPTYPE_INT64 
CPPTYPE_UINT32 
CPPTYPE_UINT64 
CPPTYPE_DOUBLE 
CPPTYPE_FLOAT 
CPPTYPE_BOOL 
CPPTYPE_ENUM 
CPPTYPE_STRING 
CPPTYPE_MESSAGE 
MAX_CPPTYPE 

◆ Label

enum google::protobuf::FieldDescriptor::Label
Enumerator
LABEL_OPTIONAL 
LABEL_REQUIRED 
LABEL_REPEATED 
MAX_LABEL 

◆ Type

enum google::protobuf::FieldDescriptor::Type
Enumerator
TYPE_DOUBLE 
TYPE_FLOAT 
TYPE_INT64 
TYPE_UINT64 
TYPE_INT32 
TYPE_FIXED64 
TYPE_FIXED32 
TYPE_BOOL 
TYPE_STRING 
TYPE_GROUP 
TYPE_MESSAGE 
TYPE_BYTES 
TYPE_UINT32 
TYPE_ENUM 
TYPE_SFIXED32 
TYPE_SFIXED64 
TYPE_SINT32 
TYPE_SINT64 
MAX_TYPE 

Member Function Documentation

◆ camelcase_name()

const string& google::protobuf::FieldDescriptor::camelcase_name ( ) const

◆ containing_oneof()

const OneofDescriptor* google::protobuf::FieldDescriptor::containing_oneof ( ) const

◆ containing_type()

const Descriptor* google::protobuf::FieldDescriptor::containing_type ( ) const

◆ CopyTo()

void FieldDescriptor::CopyTo ( FieldDescriptorProto proto) const

◆ cpp_type()

CppType google::protobuf::FieldDescriptor::cpp_type ( ) const

◆ cpp_type_name()

const char* google::protobuf::FieldDescriptor::cpp_type_name ( ) const

◆ CppTypeName()

const char * FieldDescriptor::CppTypeName ( CppType  cpp_type)
inlinestatic

◆ DebugString()

string FieldDescriptor::DebugString ( ) const

◆ DebugStringWithOptions()

string FieldDescriptor::DebugStringWithOptions ( const DebugStringOptions options) const

◆ default_value_bool()

bool google::protobuf::FieldDescriptor::default_value_bool ( ) const

◆ default_value_double()

double google::protobuf::FieldDescriptor::default_value_double ( ) const

◆ default_value_enum()

const EnumValueDescriptor* google::protobuf::FieldDescriptor::default_value_enum ( ) const

◆ default_value_float()

float google::protobuf::FieldDescriptor::default_value_float ( ) const

◆ default_value_int32()

int32 google::protobuf::FieldDescriptor::default_value_int32 ( ) const

◆ default_value_int64()

int64 google::protobuf::FieldDescriptor::default_value_int64 ( ) const

◆ default_value_string()

const string& google::protobuf::FieldDescriptor::default_value_string ( ) const

◆ default_value_uint32()

uint32 google::protobuf::FieldDescriptor::default_value_uint32 ( ) const

◆ default_value_uint64()

uint64 google::protobuf::FieldDescriptor::default_value_uint64 ( ) const

◆ enum_type()

const EnumDescriptor* google::protobuf::FieldDescriptor::enum_type ( ) const

◆ extension_scope()

const Descriptor* google::protobuf::FieldDescriptor::extension_scope ( ) const

◆ file()

const FileDescriptor* google::protobuf::FieldDescriptor::file ( ) const

◆ full_name()

const string& google::protobuf::FieldDescriptor::full_name ( ) const

◆ GetSourceLocation()

bool FieldDescriptor::GetSourceLocation ( SourceLocation out_location) const

◆ has_default_value()

bool google::protobuf::FieldDescriptor::has_default_value ( ) const

◆ index()

int google::protobuf::FieldDescriptor::index ( ) const

◆ index_in_oneof()

int google::protobuf::FieldDescriptor::index_in_oneof ( ) const

◆ is_extension()

bool google::protobuf::FieldDescriptor::is_extension ( ) const

◆ is_map()

bool FieldDescriptor::is_map ( ) const

◆ is_optional()

bool google::protobuf::FieldDescriptor::is_optional ( ) const

◆ is_packable()

bool google::protobuf::FieldDescriptor::is_packable ( ) const

◆ is_packed()

bool FieldDescriptor::is_packed ( ) const

◆ is_repeated()

bool google::protobuf::FieldDescriptor::is_repeated ( ) const

◆ is_required()

bool google::protobuf::FieldDescriptor::is_required ( ) const

◆ IsTypePackable()

bool FieldDescriptor::IsTypePackable ( Type  field_type)
inlinestatic

◆ json_name()

const string& google::protobuf::FieldDescriptor::json_name ( ) const

◆ label()

Label google::protobuf::FieldDescriptor::label ( ) const

◆ lowercase_name()

const string& google::protobuf::FieldDescriptor::lowercase_name ( ) const

◆ message_type()

const Descriptor* google::protobuf::FieldDescriptor::message_type ( ) const

◆ name()

const string& google::protobuf::FieldDescriptor::name ( ) const

◆ number()

int google::protobuf::FieldDescriptor::number ( ) const

◆ options()

const FieldOptions& google::protobuf::FieldDescriptor::options ( ) const

◆ type()

Type google::protobuf::FieldDescriptor::type ( ) const

◆ type_name()

const char* google::protobuf::FieldDescriptor::type_name ( ) const

◆ TypeName()

const char * FieldDescriptor::TypeName ( Type  type)
inlinestatic

◆ TypeToCppType()

static CppType google::protobuf::FieldDescriptor::TypeToCppType ( Type  type)
static

Friends And Related Function Documentation

◆ ::google::protobuf::io::Printer

◆ Descriptor

friend class Descriptor
friend

◆ DescriptorBuilder

friend class DescriptorBuilder
friend

◆ FileDescriptor

friend class FileDescriptor
friend

◆ OneofDescriptor

friend class OneofDescriptor
friend

Member Data Documentation

◆ default_value_bool_

bool google::protobuf::FieldDescriptor::default_value_bool_

◆ default_value_double_

double google::protobuf::FieldDescriptor::default_value_double_

◆ default_value_enum_

const EnumValueDescriptor* google::protobuf::FieldDescriptor::default_value_enum_

◆ default_value_float_

float google::protobuf::FieldDescriptor::default_value_float_

◆ default_value_int32_

int32 google::protobuf::FieldDescriptor::default_value_int32_

◆ default_value_int64_

int64 google::protobuf::FieldDescriptor::default_value_int64_

◆ default_value_string_

const string* google::protobuf::FieldDescriptor::default_value_string_

◆ default_value_uint32_

uint32 google::protobuf::FieldDescriptor::default_value_uint32_

◆ default_value_uint64_

uint64 google::protobuf::FieldDescriptor::default_value_uint64_

◆ kFirstReservedNumber

const int FieldDescriptor::kFirstReservedNumber = 19000
static

◆ kLastReservedNumber

const int FieldDescriptor::kLastReservedNumber = 19999
static

◆ kMaxNumber

const int FieldDescriptor::kMaxNumber = (1 << 29) - 1
static

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