template <typename Value>
class DescriptorIndex
Defined at line 200 of file ../../third_party/protobuf/src/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 (absl::string_viewfilename,const DescriptorProto &message_type,Valuevalue)
bool AddExtension (absl::string_viewfilename,const FieldDescriptorProto &field,Valuevalue)
Value FindFile (absl::string_view filename)
Value FindSymbol (absl::string_view name)
Value FindExtension (absl::string_view containing_type, int field_number)
bool FindAllExtensionNumbers (absl::string_view containing_type, std::vector<int> * output)
void FindAllFileNames (std::vector<std::string> * output)