Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
google::protobuf::FieldDescriptor Class Reference

#include <descriptor.h>

Public Types

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, 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  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, 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,
  LABEL_OPTIONAL = 1, LABEL_REQUIRED = 2, LABEL_REPEATED = 3, MAX_LABEL = 3
}
 
enum  Label {
  LABEL_OPTIONAL = 1, LABEL_REQUIRED = 2, LABEL_REPEATED = 3, MAX_LABEL = 3,
  LABEL_OPTIONAL = 1, LABEL_REQUIRED = 2, LABEL_REPEATED = 3, MAX_LABEL = 3
}
 
typedef FieldDescriptorProto Proto
 
typedef FieldDescriptorProto Proto
 
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, 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  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, 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
}
 

Public Member Functions

const std::string & camelcase_name () const
 
const std::string & camelcase_name () const
 
const OneofDescriptorcontaining_oneof () const
 
const OneofDescriptorcontaining_oneof () const
 
const Descriptorcontaining_type () const
 
const Descriptorcontaining_type () const
 
void CopyTo (FieldDescriptorProto *proto) const
 
void CopyTo (FieldDescriptorProto *proto) const
 
CppType cpp_type () const
 
CppType cpp_type () const
 
const char * cpp_type_name () const
 
const char * cpp_type_name () const
 
std::string DebugString () const
 
std::string DebugString () const
 
std::string DebugStringWithOptions (const DebugStringOptions &options) const
 
std::string DebugStringWithOptions (const DebugStringOptions &options) const
 
bool default_value_bool () const
 
bool default_value_bool () const
 
double default_value_double () const
 
double default_value_double () const
 
const EnumValueDescriptordefault_value_enum () const
 
const EnumValueDescriptordefault_value_enum () const
 
float default_value_float () const
 
float default_value_float () const
 
int32 default_value_int32 () const
 
int32_t default_value_int32 () const
 
int32_t default_value_int32_t () const
 
int64 default_value_int64 () const
 
int64_t default_value_int64 () const
 
int64_t default_value_int64_t () const
 
const std::string & default_value_string () const
 
const std::string & default_value_string () const
 
uint32 default_value_uint32 () const
 
uint32_t default_value_uint32 () const
 
uint32_t default_value_uint32_t () const
 
uint64 default_value_uint64 () const
 
uint64_t default_value_uint64 () const
 
uint64_t default_value_uint64_t () const
 
const EnumDescriptorenum_type () const
 
const EnumDescriptorenum_type () const
 
const Descriptorextension_scope () const
 
const Descriptorextension_scope () const
 
const FileDescriptorfile () const
 
const FileDescriptorfile () const
 
const std::string & full_name () const
 
const std::string & full_name () const
 
bool GetSourceLocation (SourceLocation *out_location) const
 
bool GetSourceLocation (SourceLocation *out_location) const
 
bool has_default_value () const
 
bool has_default_value () const
 
bool has_json_name () const
 
bool has_json_name () const
 
bool has_optional_keyword () const
 
bool has_presence () const
 
int index () const
 
int index () const
 
int index_in_oneof () const
 
int index_in_oneof () const
 
bool is_extension () const
 
bool is_extension () const
 
bool is_map () const
 
bool is_map () const
 
bool is_optional () const
 
bool is_optional () const
 
bool is_packable () const
 
bool is_packable () const
 
bool is_packed () const
 
bool is_packed () const
 
bool is_repeated () const
 
bool is_repeated () const
 
bool is_required () const
 
bool is_required () const
 
const std::string & json_name () const
 
const std::string & json_name () const
 
Label label () const
 
Label label () const
 
const std::string & lowercase_name () const
 
const std::string & lowercase_name () const
 
const Descriptormessage_type () const
 
const Descriptormessage_type () const
 
const std::string & name () const
 
const std::string & name () const
 
int number () const
 
int number () const
 
const FieldOptionsoptions () const
 
const FieldOptionsoptions () const
 
const std::string & PrintableNameForExtension () const
 
const std::string & PrintableNameForExtension () const
 
const OneofDescriptorreal_containing_oneof () const
 
Type type () const
 
Type type () const
 
const char * type_name () const
 
const char * type_name () const
 

Static Public Member Functions

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

Static Public Attributes

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

Private Types

typedef FieldOptions OptionsType
 
typedef FieldOptions OptionsType
 
enum  PrintLabelFlag { PRINT_LABEL, OMIT_LABEL }
 

Private Member Functions

void CopyJsonNameTo (FieldDescriptorProto *proto) const
 
void CopyJsonNameTo (FieldDescriptorProto *proto) const
 
void DebugString (int depth, PrintLabelFlag print_label_flag, std::string *contents, const DebugStringOptions &options) const
 
void DebugString (int depth, std::string *contents, const DebugStringOptions &options) const
 
std::string DefaultValueAsString (bool quote_string_type) const
 
std::string DefaultValueAsString (bool quote_string_type) const
 
 FieldDescriptor ()
 
 FieldDescriptor ()
 
std::string FieldTypeNameDebugString () const
 
std::string FieldTypeNameDebugString () const
 
void GetLocationPath (std::vector< int > *output) const
 
void GetLocationPath (std::vector< int > *output) const
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (FieldDescriptor)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (FieldDescriptor)
 
void InternalTypeOnceInit () const
 
void InternalTypeOnceInit () const
 
bool is_map_message_type () const
 
bool is_map_message_type () const
 

Static Private Member Functions

static void TypeOnceInit (const FieldDescriptor *to_init)
 
static void TypeOnceInit (const FieldDescriptor *to_init)
 

Private Attributes

union {
   bool   default_value_bool_
 
   double   default_value_double_
 
   const EnumValueDescriptor *   default_value_enum_
 
   float   default_value_float_
 
   int32   default_value_int32_
 
   int64   default_value_int64_
 
   const std::string *   default_value_string_
 
   uint32   default_value_uint32_
 
   uint64   default_value_uint64_
 
}; 
 
union {
   std::atomic< const Message * >   default_generated_instance_
 
   bool   default_value_bool_
 
   double   default_value_double_
 
   const EnumValueDescriptor *   default_value_enum_
 
   float   default_value_float_
 
   int32_t   default_value_int32_t_
 
   int64_t   default_value_int64_t_
 
   const std::string *   default_value_string_
 
   uint32_t   default_value_uint32_t_
 
   uint64_t   default_value_uint64_t_
 
   const char *   lazy_default_value_enum_name_
 
}; 
 
const std::string * all_names_
 
const std::string * camelcase_name_
 
uint8_t camelcase_name_index_: 2
 
const OneofDescriptorcontaining_oneof_
 
const Descriptorcontaining_type_
 
const std::string * default_value_enum_name_
 
const EnumDescriptorenum_type_
 
const Descriptorextension_scope_
 
const FileDescriptorfile_
 
const std::string * full_name_
 
bool has_default_value_
 
bool has_json_name_
 
int index_in_oneof_
 
bool is_extension_
 
bool is_oneof_: 1
 
const std::string * json_name_
 
uint8_t json_name_index_: 3
 
Label label_
 
uint8_t label_: 2
 
const std::string * lowercase_name_
 
uint8_t lowercase_name_index_: 2
 
const Descriptormessage_type_
 
const std::string * name_
 
int number_
 
const FieldOptionsoptions_
 
bool proto3_optional_: 1
 
union {
   const OneofDescriptor *   containing_oneof
 
   const Descriptor *   extension_scope
 
scope_
 
Type type_
 
uint8_t type_
 
union {
   const EnumDescriptor *   enum_type
 
   const char *   lazy_type_name
 
   const Descriptor *   message_type
 
type_descriptor_
 
const std::string * type_name_
 
internal::once_flagtype_once_
 

Static Private Attributes

static const char *const kCppTypeToName [MAX_CPPTYPE+1]
 
static const char *const kLabelToName [MAX_LABEL+1]
 
static const CppType kTypeToCppTypeMap [MAX_TYPE+1]
 
static const char *const kTypeToName [MAX_TYPE+1]
 

Friends

class compiler::cpp::Formatter
 
class Descriptor
 
class DescriptorBuilder
 
class FileDescriptor
 
class io::Printer
 
class OneofDescriptor
 
class Reflection
 
class Symbol
 

Detailed Description

Definition at line 515 of file bloaty/third_party/protobuf/src/google/protobuf/descriptor.h.

Member Typedef Documentation

◆ OptionsType [1/2]

typedef FieldOptions google::protobuf::FieldDescriptor::OptionsType
private

◆ OptionsType [2/2]

typedef FieldOptions google::protobuf::FieldDescriptor::OptionsType
private

Definition at line 868 of file protobuf/src/google/protobuf/descriptor.h.

◆ Proto [1/2]

typedef FieldDescriptorProto google::protobuf::FieldDescriptor::Proto

◆ Proto [2/2]

typedef FieldDescriptorProto google::protobuf::FieldDescriptor::Proto

Definition at line 614 of file protobuf/src/google/protobuf/descriptor.h.

Member Enumeration Documentation

◆ CppType [1/2]

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 
CPPTYPE_INT32 
CPPTYPE_INT64 
CPPTYPE_UINT32 
CPPTYPE_UINT64 
CPPTYPE_DOUBLE 
CPPTYPE_FLOAT 
CPPTYPE_BOOL 
CPPTYPE_ENUM 
CPPTYPE_STRING 
CPPTYPE_MESSAGE 
MAX_CPPTYPE 

Definition at line 553 of file bloaty/third_party/protobuf/src/google/protobuf/descriptor.h.

◆ CppType [2/2]

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 
CPPTYPE_INT32 
CPPTYPE_INT64 
CPPTYPE_UINT32 
CPPTYPE_UINT64 
CPPTYPE_DOUBLE 
CPPTYPE_FLOAT 
CPPTYPE_BOOL 
CPPTYPE_ENUM 
CPPTYPE_STRING 
CPPTYPE_MESSAGE 
MAX_CPPTYPE 

Definition at line 650 of file protobuf/src/google/protobuf/descriptor.h.

◆ Label [1/2]

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

Definition at line 571 of file bloaty/third_party/protobuf/src/google/protobuf/descriptor.h.

◆ Label [2/2]

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

Definition at line 668 of file protobuf/src/google/protobuf/descriptor.h.

◆ PrintLabelFlag

enum google::protobuf::FieldDescriptor::PrintLabelFlag
private
Enumerator
PRINT_LABEL 
OMIT_LABEL 

Definition at line 759 of file bloaty/third_party/protobuf/src/google/protobuf/descriptor.h.

◆ Type [1/2]

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 
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 

Definition at line 521 of file bloaty/third_party/protobuf/src/google/protobuf/descriptor.h.

◆ Type [2/2]

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 
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 

Definition at line 618 of file protobuf/src/google/protobuf/descriptor.h.

Constructor & Destructor Documentation

◆ FieldDescriptor() [1/2]

google::protobuf::FieldDescriptor::FieldDescriptor ( )
inlineprivate

◆ FieldDescriptor() [2/2]

google::protobuf::FieldDescriptor::FieldDescriptor ( )
inlineprivate

Definition at line 969 of file protobuf/src/google/protobuf/descriptor.h.

Member Function Documentation

◆ camelcase_name() [1/2]

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

◆ camelcase_name() [2/2]

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

◆ containing_oneof() [1/2]

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

◆ containing_oneof() [2/2]

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

◆ containing_type() [1/2]

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

◆ containing_type() [2/2]

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

◆ CopyJsonNameTo() [1/2]

void FieldDescriptor::CopyJsonNameTo ( FieldDescriptorProto proto) const
private

◆ CopyJsonNameTo() [2/2]

void google::protobuf::FieldDescriptor::CopyJsonNameTo ( FieldDescriptorProto proto) const
private

◆ CopyTo() [1/2]

void FieldDescriptor::CopyTo ( FieldDescriptorProto proto) const

◆ CopyTo() [2/2]

void google::protobuf::FieldDescriptor::CopyTo ( FieldDescriptorProto proto) const

◆ cpp_type() [1/2]

FieldDescriptor::CppType FieldDescriptor::cpp_type ( ) const
inline

◆ cpp_type() [2/2]

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

◆ cpp_type_name() [1/2]

const char * FieldDescriptor::cpp_type_name ( ) const
inline

◆ cpp_type_name() [2/2]

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

◆ CppTypeName() [1/2]

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

◆ CppTypeName() [2/2]

static const char* google::protobuf::FieldDescriptor::CppTypeName ( CppType  cpp_type)
static

◆ DebugString() [1/4]

std::string FieldDescriptor::DebugString ( ) const

◆ DebugString() [2/4]

std::string google::protobuf::FieldDescriptor::DebugString ( ) const

◆ DebugString() [3/4]

void FieldDescriptor::DebugString ( int  depth,
PrintLabelFlag  print_label_flag,
std::string *  contents,
const DebugStringOptions options 
) const
private

◆ DebugString() [4/4]

void FieldDescriptor::DebugString ( int  depth,
std::string *  contents,
const DebugStringOptions options 
) const
private

Definition at line 3258 of file protobuf/src/google/protobuf/descriptor.cc.

◆ DebugStringWithOptions() [1/2]

std::string FieldDescriptor::DebugStringWithOptions ( const DebugStringOptions options) const

◆ DebugStringWithOptions() [2/2]

std::string google::protobuf::FieldDescriptor::DebugStringWithOptions ( const DebugStringOptions options) const

◆ default_value_bool() [1/2]

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

◆ default_value_bool() [2/2]

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

◆ default_value_double() [1/2]

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

◆ default_value_double() [2/2]

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

◆ default_value_enum() [1/2]

const EnumValueDescriptor * FieldDescriptor::default_value_enum ( ) const

◆ default_value_enum() [2/2]

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

◆ default_value_float() [1/2]

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

◆ default_value_float() [2/2]

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

◆ default_value_int32() [1/2]

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

◆ default_value_int32() [2/2]

int32_t google::protobuf::FieldDescriptor::default_value_int32 ( ) const
inline

Definition at line 756 of file protobuf/src/google/protobuf/descriptor.h.

◆ default_value_int32_t()

int32_t google::protobuf::FieldDescriptor::default_value_int32_t ( ) const

◆ default_value_int64() [1/2]

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

◆ default_value_int64() [2/2]

int64_t google::protobuf::FieldDescriptor::default_value_int64 ( ) const
inline

Definition at line 760 of file protobuf/src/google/protobuf/descriptor.h.

◆ default_value_int64_t()

int64_t google::protobuf::FieldDescriptor::default_value_int64_t ( ) const

◆ default_value_string() [1/2]

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

◆ default_value_string() [2/2]

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

◆ default_value_uint32() [1/2]

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

◆ default_value_uint32() [2/2]

uint32_t google::protobuf::FieldDescriptor::default_value_uint32 ( ) const
inline

Definition at line 764 of file protobuf/src/google/protobuf/descriptor.h.

◆ default_value_uint32_t()

uint32_t google::protobuf::FieldDescriptor::default_value_uint32_t ( ) const

◆ default_value_uint64() [1/2]

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

◆ default_value_uint64() [2/2]

uint64_t google::protobuf::FieldDescriptor::default_value_uint64 ( ) const
inline

Definition at line 768 of file protobuf/src/google/protobuf/descriptor.h.

◆ default_value_uint64_t()

uint64_t google::protobuf::FieldDescriptor::default_value_uint64_t ( ) const

◆ DefaultValueAsString() [1/2]

std::string FieldDescriptor::DefaultValueAsString ( bool  quote_string_type) const
private

◆ DefaultValueAsString() [2/2]

std::string google::protobuf::FieldDescriptor::DefaultValueAsString ( bool  quote_string_type) const
private

◆ enum_type() [1/2]

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

◆ enum_type() [2/2]

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

◆ extension_scope() [1/2]

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

◆ extension_scope() [2/2]

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

◆ FieldTypeNameDebugString() [1/2]

std::string FieldDescriptor::FieldTypeNameDebugString ( ) const
private

◆ FieldTypeNameDebugString() [2/2]

std::string google::protobuf::FieldDescriptor::FieldTypeNameDebugString ( ) const
private

◆ file() [1/2]

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

◆ file() [2/2]

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

◆ full_name() [1/2]

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

◆ full_name() [2/2]

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

◆ GetLocationPath() [1/2]

void FieldDescriptor::GetLocationPath ( std::vector< int > *  output) const
private

◆ GetLocationPath() [2/2]

void google::protobuf::FieldDescriptor::GetLocationPath ( std::vector< int > *  output) const
private

◆ GetSourceLocation() [1/2]

bool FieldDescriptor::GetSourceLocation ( SourceLocation out_location) const

◆ GetSourceLocation() [2/2]

bool google::protobuf::FieldDescriptor::GetSourceLocation ( SourceLocation out_location) const

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [1/2]

google::protobuf::FieldDescriptor::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( FieldDescriptor  )
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [2/2]

google::protobuf::FieldDescriptor::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( FieldDescriptor  )
private

◆ has_default_value() [1/2]

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

◆ has_default_value() [2/2]

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

◆ has_json_name() [1/2]

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

◆ has_json_name() [2/2]

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

◆ has_optional_keyword()

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

◆ has_presence()

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

◆ index() [1/2]

int FieldDescriptor::index ( ) const
inline

◆ index() [2/2]

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

◆ index_in_oneof() [1/2]

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

◆ index_in_oneof() [2/2]

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

◆ InternalTypeOnceInit() [1/2]

void FieldDescriptor::InternalTypeOnceInit ( ) const
private

◆ InternalTypeOnceInit() [2/2]

void google::protobuf::FieldDescriptor::InternalTypeOnceInit ( ) const
private

◆ is_extension() [1/2]

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

◆ is_extension() [2/2]

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

◆ is_map() [1/2]

bool FieldDescriptor::is_map ( ) const
inline

◆ is_map() [2/2]

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

◆ is_map_message_type() [1/2]

bool FieldDescriptor::is_map_message_type ( ) const
private

◆ is_map_message_type() [2/2]

bool google::protobuf::FieldDescriptor::is_map_message_type ( ) const
private

◆ is_optional() [1/2]

bool FieldDescriptor::is_optional ( ) const
inline

◆ is_optional() [2/2]

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

◆ is_packable() [1/2]

bool FieldDescriptor::is_packable ( ) const
inline

◆ is_packable() [2/2]

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

◆ is_packed() [1/2]

bool FieldDescriptor::is_packed ( ) const

◆ is_packed() [2/2]

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

◆ is_repeated() [1/2]

bool FieldDescriptor::is_repeated ( ) const
inline

◆ is_repeated() [2/2]

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

◆ is_required() [1/2]

bool FieldDescriptor::is_required ( ) const
inline

◆ is_required() [2/2]

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

◆ IsTypePackable() [1/2]

bool FieldDescriptor::IsTypePackable ( Type  field_type)
inlinestatic

◆ IsTypePackable() [2/2]

static bool google::protobuf::FieldDescriptor::IsTypePackable ( Type  field_type)
inlinestatic

◆ json_name() [1/2]

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

◆ json_name() [2/2]

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

◆ label() [1/2]

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

◆ label() [2/2]

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

◆ lowercase_name() [1/2]

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

◆ lowercase_name() [2/2]

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

◆ message_type() [1/2]

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

◆ message_type() [2/2]

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

◆ name() [1/2]

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

◆ name() [2/2]

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

◆ number() [1/2]

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

◆ number() [2/2]

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

◆ options() [1/2]

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

◆ options() [2/2]

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

◆ PrintableNameForExtension() [1/2]

const std::string & FieldDescriptor::PrintableNameForExtension ( ) const

◆ PrintableNameForExtension() [2/2]

const std::string& google::protobuf::FieldDescriptor::PrintableNameForExtension ( ) const

◆ real_containing_oneof()

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

◆ type() [1/2]

FieldDescriptor::Type FieldDescriptor::type ( ) const
inline

◆ type() [2/2]

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

◆ type_name() [1/2]

const char * FieldDescriptor::type_name ( ) const
inline

◆ type_name() [2/2]

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

◆ TypeName() [1/2]

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

◆ TypeName() [2/2]

static const char* google::protobuf::FieldDescriptor::TypeName ( Type  type)
static

◆ TypeOnceInit() [1/2]

void FieldDescriptor::TypeOnceInit ( const FieldDescriptor to_init)
staticprivate

◆ TypeOnceInit() [2/2]

static void google::protobuf::FieldDescriptor::TypeOnceInit ( const FieldDescriptor to_init)
staticprivate

◆ TypeToCppType() [1/2]

FieldDescriptor::CppType FieldDescriptor::TypeToCppType ( Type  type)
inlinestatic

◆ TypeToCppType() [2/2]

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

Friends And Related Function Documentation

◆ compiler::cpp::Formatter

◆ Descriptor

Descriptor
friend

◆ DescriptorBuilder

◆ FileDescriptor

◆ io::Printer

io::Printer
friend

◆ OneofDescriptor

◆ Reflection

friend class Reflection
friend

Definition at line 873 of file protobuf/src/google/protobuf/descriptor.h.

◆ Symbol

friend class Symbol
friend

Definition at line 867 of file protobuf/src/google/protobuf/descriptor.h.

Member Data Documentation

◆ @227

union { ... }

◆ @484

union { ... }

◆ all_names_

const std::string* google::protobuf::FieldDescriptor::all_names_
private

Definition at line 924 of file protobuf/src/google/protobuf/descriptor.h.

◆ camelcase_name_

const std::string* google::protobuf::FieldDescriptor::camelcase_name_
private

◆ camelcase_name_index_

uint8_t google::protobuf::FieldDescriptor::camelcase_name_index_
private

Definition at line 919 of file protobuf/src/google/protobuf/descriptor.h.

◆ containing_oneof

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

Definition at line 932 of file protobuf/src/google/protobuf/descriptor.h.

◆ containing_oneof_

const OneofDescriptor* google::protobuf::FieldDescriptor::containing_oneof_
private

◆ containing_type_

const Descriptor * FieldDescriptor::containing_type_
private

◆ default_generated_instance_

std::atomic<const Message*> google::protobuf::FieldDescriptor::default_generated_instance_
mutable

Definition at line 957 of file protobuf/src/google/protobuf/descriptor.h.

◆ 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_
mutable

◆ default_value_enum_name_

const std::string* google::protobuf::FieldDescriptor::default_value_enum_name_
private

◆ default_value_float_

float google::protobuf::FieldDescriptor::default_value_float_

◆ default_value_int32_

int32 google::protobuf::FieldDescriptor::default_value_int32_

◆ default_value_int32_t_

int32_t google::protobuf::FieldDescriptor::default_value_int32_t_

Definition at line 946 of file protobuf/src/google/protobuf/descriptor.h.

◆ default_value_int64_

int64 google::protobuf::FieldDescriptor::default_value_int64_

◆ default_value_int64_t_

int64_t google::protobuf::FieldDescriptor::default_value_int64_t_

Definition at line 947 of file protobuf/src/google/protobuf/descriptor.h.

◆ default_value_string_

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

◆ default_value_uint32_

uint32 google::protobuf::FieldDescriptor::default_value_uint32_

◆ default_value_uint32_t_

uint32_t google::protobuf::FieldDescriptor::default_value_uint32_t_

Definition at line 948 of file protobuf/src/google/protobuf/descriptor.h.

◆ default_value_uint64_

uint64 google::protobuf::FieldDescriptor::default_value_uint64_

◆ default_value_uint64_t_

uint64_t google::protobuf::FieldDescriptor::default_value_uint64_t_

Definition at line 949 of file protobuf/src/google/protobuf/descriptor.h.

◆ enum_type

const EnumDescriptor * FieldDescriptor::enum_type
mutable

Definition at line 937 of file protobuf/src/google/protobuf/descriptor.h.

◆ enum_type_

const EnumDescriptor* google::protobuf::FieldDescriptor::enum_type_
mutableprivate

◆ extension_scope

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

Definition at line 933 of file protobuf/src/google/protobuf/descriptor.h.

◆ extension_scope_

const Descriptor* google::protobuf::FieldDescriptor::extension_scope_
private

◆ file_

const FileDescriptor * FieldDescriptor::file_
private

◆ full_name_

const std::string* google::protobuf::FieldDescriptor::full_name_
private

◆ has_default_value_

bool FieldDescriptor::has_default_value_
private

◆ has_json_name_

bool FieldDescriptor::has_json_name_
private

◆ index_in_oneof_

int google::protobuf::FieldDescriptor::index_in_oneof_
private

◆ is_extension_

bool FieldDescriptor::is_extension_
private

◆ is_oneof_

bool google::protobuf::FieldDescriptor::is_oneof_
private

Definition at line 903 of file protobuf/src/google/protobuf/descriptor.h.

◆ json_name_

const std::string* google::protobuf::FieldDescriptor::json_name_
private

◆ json_name_index_

uint8_t google::protobuf::FieldDescriptor::json_name_index_
private

Definition at line 920 of file protobuf/src/google/protobuf/descriptor.h.

◆ kCppTypeToName

static const char *const FieldDescriptor::kCppTypeToName
staticprivate
Initial value:
= {
"ERROR",
"int32",
"int64",
"uint32",
"uint64",
"double",
"float",
"bool",
"enum",
"string",
"message",
}

Definition at line 828 of file bloaty/third_party/protobuf/src/google/protobuf/descriptor.h.

◆ kFirstReservedNumber

static const int FieldDescriptor::kFirstReservedNumber = 19000
static

◆ kLabelToName

static const char *const FieldDescriptor::kLabelToName
staticprivate
Initial value:
= {
"ERROR",
"optional",
"required",
"repeated",
}

Definition at line 830 of file bloaty/third_party/protobuf/src/google/protobuf/descriptor.h.

◆ kLastReservedNumber

static const int FieldDescriptor::kLastReservedNumber = 19999
static

◆ kMaxNumber

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

◆ kTypeToCppTypeMap

static const CppType FieldDescriptor::kTypeToCppTypeMap
staticprivate

◆ kTypeToName

static const char *const FieldDescriptor::kTypeToName
staticprivate
Initial value:
= {
"ERROR",
"double",
"float",
"int64",
"uint64",
"int32",
"fixed64",
"fixed32",
"bool",
"string",
"group",
"message",
"bytes",
"uint32",
"enum",
"sfixed32",
"sfixed64",
"sint32",
"sint64",
}

Definition at line 826 of file bloaty/third_party/protobuf/src/google/protobuf/descriptor.h.

◆ label_ [1/2]

Label google::protobuf::FieldDescriptor::label_
private

◆ label_ [2/2]

uint8_t google::protobuf::FieldDescriptor::label_
private

Definition at line 906 of file protobuf/src/google/protobuf/descriptor.h.

◆ lazy_default_value_enum_name_

const char* google::protobuf::FieldDescriptor::lazy_default_value_enum_name_

Definition at line 955 of file protobuf/src/google/protobuf/descriptor.h.

◆ lazy_type_name

const char* google::protobuf::FieldDescriptor::lazy_type_name

Definition at line 938 of file protobuf/src/google/protobuf/descriptor.h.

◆ lowercase_name_

const std::string* google::protobuf::FieldDescriptor::lowercase_name_
private

◆ lowercase_name_index_

uint8_t google::protobuf::FieldDescriptor::lowercase_name_index_
private

Definition at line 918 of file protobuf/src/google/protobuf/descriptor.h.

◆ message_type

const Descriptor * FieldDescriptor::message_type
mutable

Definition at line 936 of file protobuf/src/google/protobuf/descriptor.h.

◆ message_type_

const Descriptor* google::protobuf::FieldDescriptor::message_type_
mutableprivate

◆ name_

const std::string* google::protobuf::FieldDescriptor::name_
private

◆ number_

int FieldDescriptor::number_
private

◆ options_

const FieldOptions * FieldDescriptor::options_
private

◆ proto3_optional_

bool google::protobuf::FieldDescriptor::proto3_optional_
private

Definition at line 898 of file protobuf/src/google/protobuf/descriptor.h.

◆ scope_

union { ... } google::protobuf::FieldDescriptor::scope_

◆ type_ [1/2]

Type google::protobuf::FieldDescriptor::type_
mutableprivate

◆ type_ [2/2]

uint8_t google::protobuf::FieldDescriptor::type_
mutableprivate

Definition at line 909 of file protobuf/src/google/protobuf/descriptor.h.

◆ type_descriptor_

union { ... } google::protobuf::FieldDescriptor::type_descriptor_

◆ type_name_

const std::string* google::protobuf::FieldDescriptor::type_name_
private

◆ type_once_

internal::once_flag * FieldDescriptor::type_once_
private

The documentation for this class was generated from the following files:
google::protobuf::FieldDescriptor::CPPTYPE_STRING
@ CPPTYPE_STRING
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:562
google::protobuf::FieldDescriptor::CPPTYPE_UINT64
@ CPPTYPE_UINT64
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:557
google::protobuf::FieldDescriptor::CPPTYPE_INT64
@ CPPTYPE_INT64
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:555
google::protobuf::FieldDescriptor::CPPTYPE_UINT32
@ CPPTYPE_UINT32
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:556
google::protobuf::FieldDescriptor::CPPTYPE_FLOAT
@ CPPTYPE_FLOAT
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:559
google::protobuf::FieldDescriptor::CPPTYPE_BOOL
@ CPPTYPE_BOOL
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:560
google::protobuf::FieldDescriptor::CPPTYPE_DOUBLE
@ CPPTYPE_DOUBLE
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:558
google::protobuf::FieldDescriptor::CPPTYPE_ENUM
@ CPPTYPE_ENUM
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:561
google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE
@ CPPTYPE_MESSAGE
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:563
google::protobuf::FieldDescriptor::CppType
CppType
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:553
google::protobuf::FieldDescriptor::CPPTYPE_INT32
@ CPPTYPE_INT32
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:554


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:11