template <typename Value>
class DescriptorIndex
Defined at line 177 of file ../../third_party/protobuf/src/google/protobuf/descriptor_database.h
An index mapping file names, symbol names, and extension numbers to
some sort of values.
Public Methods
bool AddFile (const FileDescriptorProto & file, Value value)
Helpers to recursively add particular descriptors and all their contents
to the index.
bool AddSymbol (absl::string_view name, Value value)
bool AddNestedExtensions (const std::string & filename, const DescriptorProto & message_type, Value value)
bool AddExtension (const std::string & filename, const FieldDescriptorProto & field, Value value)
Value FindFile (const std::string & filename)
Value FindSymbol (const std::string & name)
Value FindExtension (const std::string & containing_type, int field_number)
bool FindAllExtensionNumbers (const std::string & containing_type, std::vector<int> * output)
void FindAllFileNames (std::vector<std::string> * output)