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 string & | name () const |
const string & | full_name () const |
const FileDescriptor * | file () const |
bool | is_extension () const |
int | number () const |
const string & | lowercase_name () const |
const string & | camelcase_name () const |
Type | type () const |
CppType | cpp_type () const |
Label | label () const |
bool | is_required () const |
bool | is_optional () const |
bool | is_repeated () const |
bool | is_packable () 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 EnumValueDescriptor * | default_value_enum () const |
const string & | default_value_string () const |
const Descriptor * | containing_type () const |
const Descriptor * | extension_scope () const |
const Descriptor * | message_type () const |
const EnumDescriptor * | enum_type () const |
const FieldDescriptor * | experimental_map_key () const |
const FieldOptions & | options () const |
void | CopyTo (FieldDescriptorProto *proto) const |
string | DebugString () const |
Static Public Member Functions |
static CppType | TypeToCppType (Type 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 | DescriptorBuilder |
class | FileDescriptor |
class | Descriptor |