class MergedDescriptorDatabase

Defined at line 378 of file ../../third_party/protobuf/src/src/google/protobuf/descriptor_database.h

A DescriptorDatabase that wraps two or more others. It first searches the

first database and, if that fails, tries the second, and so on.

Public Methods

void MergedDescriptorDatabase (DescriptorDatabase * source1, DescriptorDatabase * source2)

Merge just two databases. The sources remain property of the caller.

void MergedDescriptorDatabase (const std::vector<DescriptorDatabase *> & sources)

Merge more than two databases. The sources remain property of the caller.

The vector may be deleted after the constructor returns but the

DescriptorDatabases need to stick around.

bool FindFileByName (absl::string_view filename, FileDescriptorProto * output)

implements DescriptorDatabase -----------------------------------

bool FindFileContainingSymbol (absl::string_view symbol_name, FileDescriptorProto * output)
bool FindFileContainingExtension (absl::string_view containing_type, int field_number, FileDescriptorProto * output)
bool FindAllExtensionNumbers (absl::string_view extendee_type, std::vector<int> * output)

Merges the results of calling all databases. Returns true iff any

of the databases returned true.

bool FindAllFileNames (std::vector<std::string> * output)

This function is best-effort. Returns true if at least one underlying

DescriptorDatabase returns true.

void MergedDescriptorDatabase (const MergedDescriptorDatabase & )

Defined at line 388 of file ../../third_party/protobuf/src/src/google/protobuf/descriptor_database.h

MergedDescriptorDatabase & operator= (const MergedDescriptorDatabase & )

Defined at line 389 of file ../../third_party/protobuf/src/src/google/protobuf/descriptor_database.h

void ~MergedDescriptorDatabase ()