45class ErrorCollector :
public google::protobuf::DescriptorPool::ErrorCollector {
47 google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation;
48 void AddError(
const std::string& filename,
const std::string& element_name,
49 const google::protobuf::Message* descriptor,
50 ErrorLocation location,
const std::string& message)
override;
52 void AddWarning(
const std::string& filename,
const std::string& element_name,
53 const google::protobuf::Message* descriptor,
54 ErrorLocation location,
const std::string& message)
override;
76 std::string* desc_str);
80 std::string* desc_str);
86 void GetProtoPath(
const std::string& type, std::string& location);
91 const std::string& type)
const;
95 const FileDescriptorProto& file_desc_proto);
102 const std::string& name)
const;
104 void GetPythonDesc(
const std::string& type, std::string* desc_str);
108 google::protobuf::Message* GetMessageByGeneratedType(
109 const std::string& type)
const;
110 static bool GetProtoDesc(
const FileDescriptor* file_desc,
113 std::mutex register_mutex_;
114 std::unique_ptr<DescriptorPool> pool_ =
nullptr;
115 std::unique_ptr<DynamicMessageFactory> factory_ =
nullptr;