#include "mediapipe/framework/tool/options_registry.h"
#include <string>
#include <vector>
#include "absl/synchronization/mutex.h"
#include "mediapipe/framework/port/ret_check.h"
#include "mediapipe/framework/tool/proto_util_lite.h"
namespace mediapipe {
namespace tool {
namespace {
std::string CanonicalTypeName(const std::string& type_name) { … }
absl::StatusOr<std::vector<FieldData>> GetFieldValues(
const FieldData& message_data, std::string field_name) { … }
std::string GetFieldString(const FieldData& message_data,
std::string field_name) { … }
void RegisterDescriptorProtos(
absl::flat_hash_map<std::string, Descriptor>& result) { … }
}
RegistrationToken OptionsRegistry::Register(
const FieldData& file_descriptor_set) { … }
void OptionsRegistry::Register(const FieldData& message_type,
const std::string& parent_name) { … }
const Descriptor* OptionsRegistry::GetProtobufDescriptor(
const std::string& type_name) { … }
void OptionsRegistry::FindAllExtensions(
absl::string_view extendee, std::vector<const FieldDescriptor*>* result) { … }
absl::flat_hash_map<std::string, Descriptor>& OptionsRegistry::descriptors() { … }
absl::flat_hash_map<std::string, std::vector<FieldDescriptor>>&
OptionsRegistry::extensions() { … }
absl::Mutex& OptionsRegistry::mutex() { … }
Descriptor::Descriptor(const std::string& full_name,
const FieldData& descriptor_proto)
: … { … }
Descriptor::Descriptor(const std::string& full_name,
const std::vector<FieldDescriptor>& fields)
: … { … }
const std::string& Descriptor::full_name() const { … }
const FieldDescriptor* Descriptor::FindFieldByName(
const std::string& name) const { … }
FieldDescriptor::FieldDescriptor(const FieldData& field_proto) { … }
FieldDescriptor::FieldDescriptor(std::string name, int number, FieldType type,
std::string message_type)
: … { … }
const std::string& FieldDescriptor::name() const { … }
int FieldDescriptor::number() const { … }
FieldType FieldDescriptor::type() const { … }
const Descriptor* FieldDescriptor::message_type() const { … }
}
}