#include <descriptor.h>
Classes | |
struct | ExtensionRange |
struct | ReservedRange |
Public Types | |
typedef DescriptorProto | Proto |
Private Types | |
typedef MessageOptions | OptionsType |
Private Member Functions | |
void | CopyJsonNameTo (DescriptorProto *proto) const |
void | DebugString (int depth, std::string *contents, const DebugStringOptions &options, bool include_opening_clause) const |
Descriptor () | |
void | GetLocationPath (std::vector< int > *output) const |
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Descriptor) | |
Private Attributes | |
const Descriptor * | containing_type_ |
int | enum_type_count_ |
EnumDescriptor * | enum_types_ |
int | extension_count_ |
int | extension_range_count_ |
ExtensionRange * | extension_ranges_ |
FieldDescriptor * | extensions_ |
int | field_count_ |
FieldDescriptor * | fields_ |
const FileDescriptor * | file_ |
const std::string * | full_name_ |
bool | is_placeholder_ |
bool | is_unqualified_placeholder_ |
const std::string * | name_ |
int | nested_type_count_ |
Descriptor * | nested_types_ |
int | oneof_decl_count_ |
OneofDescriptor * | oneof_decls_ |
const MessageOptions * | options_ |
int | reserved_name_count_ |
const std::string ** | reserved_names_ |
int | reserved_range_count_ |
ReservedRange * | reserved_ranges_ |
Friends | |
class | compiler::cpp::Formatter |
class | descriptor_unittest::DescriptorTest |
class | DescriptorBuilder |
class | DescriptorPool |
class | EnumDescriptor |
class | FieldDescriptor |
class | FileDescriptor |
class | io::Printer |
class | MethodDescriptor |
class | OneofDescriptor |
Definition at line 231 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 434 of file src/google/protobuf/descriptor.h.
typedef DescriptorProto google::protobuf::Descriptor::Proto |
Definition at line 233 of file src/google/protobuf/descriptor.h.
|
inlineprivate |
Definition at line 493 of file src/google/protobuf/descriptor.h.
const Descriptor* google::protobuf::Descriptor::containing_type | ( | ) | const |
|
private |
Definition at line 2102 of file src/google/protobuf/descriptor.cc.
void Descriptor::CopyTo | ( | DescriptorProto * | proto | ) | const |
Definition at line 2067 of file src/google/protobuf/descriptor.cc.
std::string Descriptor::DebugString | ( | ) | const |
Definition at line 2517 of file src/google/protobuf/descriptor.cc.
|
private |
Definition at line 2529 of file src/google/protobuf/descriptor.cc.
std::string Descriptor::DebugStringWithOptions | ( | const DebugStringOptions & | options | ) | const |
Definition at line 2522 of file src/google/protobuf/descriptor.cc.
const EnumDescriptor* google::protobuf::Descriptor::enum_type | ( | int | index | ) | const |
int google::protobuf::Descriptor::enum_type_count | ( | ) | const |
const FieldDescriptor* google::protobuf::Descriptor::extension | ( | int | index | ) | const |
int google::protobuf::Descriptor::extension_count | ( | ) | const |
const ExtensionRange* google::protobuf::Descriptor::extension_range | ( | int | index | ) | const |
int google::protobuf::Descriptor::extension_range_count | ( | ) | const |
const FieldDescriptor* google::protobuf::Descriptor::field | ( | int | index | ) | const |
int google::protobuf::Descriptor::field_count | ( | ) | const |
const FileDescriptor* google::protobuf::Descriptor::file | ( | ) | const |
const EnumDescriptor * Descriptor::FindEnumTypeByName | ( | const std::string & | name | ) | const |
Definition at line 1681 of file src/google/protobuf/descriptor.cc.
const EnumValueDescriptor * Descriptor::FindEnumValueByName | ( | const std::string & | name | ) | const |
Definition at line 1692 of file src/google/protobuf/descriptor.cc.
const FieldDescriptor * Descriptor::FindExtensionByCamelcaseName | ( | const std::string & | name | ) | const |
Definition at line 1659 of file src/google/protobuf/descriptor.cc.
const FieldDescriptor * Descriptor::FindExtensionByLowercaseName | ( | const std::string & | name | ) | const |
Definition at line 1648 of file src/google/protobuf/descriptor.cc.
const FieldDescriptor * Descriptor::FindExtensionByName | ( | const std::string & | name | ) | const |
Definition at line 1637 of file src/google/protobuf/descriptor.cc.
const Descriptor::ExtensionRange * Descriptor::FindExtensionRangeContainingNumber | ( | int | number | ) | const |
Definition at line 1815 of file src/google/protobuf/descriptor.cc.
const FieldDescriptor * Descriptor::FindFieldByCamelcaseName | ( | const std::string & | camelcase_name | ) | const |
Definition at line 1604 of file src/google/protobuf/descriptor.cc.
const FieldDescriptor * Descriptor::FindFieldByLowercaseName | ( | const std::string & | lowercase_name | ) | const |
Definition at line 1593 of file src/google/protobuf/descriptor.cc.
const FieldDescriptor * Descriptor::FindFieldByName | ( | const std::string & | name | ) | const |
Definition at line 1615 of file src/google/protobuf/descriptor.cc.
const FieldDescriptor * Descriptor::FindFieldByNumber | ( | int | number | ) | const |
Definition at line 1584 of file src/google/protobuf/descriptor.cc.
const Descriptor * Descriptor::FindNestedTypeByName | ( | const std::string & | name | ) | const |
Definition at line 1670 of file src/google/protobuf/descriptor.cc.
const OneofDescriptor * Descriptor::FindOneofByName | ( | const std::string & | name | ) | const |
Definition at line 1626 of file src/google/protobuf/descriptor.cc.
const Descriptor::ReservedRange * Descriptor::FindReservedRangeContainingNumber | ( | int | number | ) | const |
Definition at line 1827 of file src/google/protobuf/descriptor.cc.
const std::string& google::protobuf::Descriptor::full_name | ( | ) | const |
|
private |
Definition at line 3035 of file src/google/protobuf/descriptor.cc.
bool Descriptor::GetSourceLocation | ( | SourceLocation * | out_location | ) | const |
Definition at line 2992 of file src/google/protobuf/descriptor.cc.
|
private |
|
inline |
Definition at line 2091 of file src/google/protobuf/descriptor.h.
bool google::protobuf::Descriptor::is_placeholder | ( | ) | const |
|
inline |
Definition at line 2010 of file src/google/protobuf/descriptor.h.
|
inline |
Definition at line 2018 of file src/google/protobuf/descriptor.h.
|
inline |
Definition at line 2014 of file src/google/protobuf/descriptor.h.
const std::string& google::protobuf::Descriptor::name | ( | ) | const |
const Descriptor* google::protobuf::Descriptor::nested_type | ( | int | index | ) | const |
int google::protobuf::Descriptor::nested_type_count | ( | ) | const |
const OneofDescriptor* google::protobuf::Descriptor::oneof_decl | ( | int | index | ) | const |
int google::protobuf::Descriptor::oneof_decl_count | ( | ) | const |
const MessageOptions& google::protobuf::Descriptor::options | ( | ) | const |
|
inline |
Definition at line 2029 of file src/google/protobuf/descriptor.h.
int google::protobuf::Descriptor::reserved_name_count | ( | ) | const |
const ReservedRange* google::protobuf::Descriptor::reserved_range | ( | int | index | ) | const |
int google::protobuf::Descriptor::reserved_range_count | ( | ) | const |
|
friend |
Definition at line 441 of file src/google/protobuf/descriptor.h.
|
friend |
Definition at line 437 of file src/google/protobuf/descriptor.h.
|
friend |
Definition at line 494 of file src/google/protobuf/descriptor.h.
|
friend |
Definition at line 495 of file src/google/protobuf/descriptor.h.
|
friend |
Definition at line 496 of file src/google/protobuf/descriptor.h.
|
friend |
Definition at line 497 of file src/google/protobuf/descriptor.h.
|
friend |
Definition at line 500 of file src/google/protobuf/descriptor.h.
|
friend |
Definition at line 440 of file src/google/protobuf/descriptor.h.
|
friend |
Definition at line 499 of file src/google/protobuf/descriptor.h.
|
friend |
Definition at line 498 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 461 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 477 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 468 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 479 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 478 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 469 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 470 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 474 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 465 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 460 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 459 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 484 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 486 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 458 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 476 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 467 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 475 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 466 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 462 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 481 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 472 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 480 of file src/google/protobuf/descriptor.h.
|
private |
Definition at line 471 of file src/google/protobuf/descriptor.h.