Spaces:
Running
Running
// DO NOT MODIFY. GENERATED BY gen_on_device_proto_descriptors.py | |
namespace optimization_guide { | |
namespace { | |
std::optional<proto::Value> GetProtoValue( | |
const google::protobuf::MessageLite& msg, | |
const proto::ProtoField& proto_field, int32_t index) { | |
if (index >= proto_field.proto_descriptors_size()) { | |
return std::nullopt; | |
} | |
int32_t tag_number = | |
proto_field.proto_descriptors(index).tag_number(); | |
return std::nullopt; | |
} | |
std::optional<NestedMessageIterator> GetProtoRepeated( | |
const google::protobuf::MessageLite* msg, | |
const proto::ProtoField& proto_field, | |
int32_t index) { | |
if (index >= proto_field.proto_descriptors_size()) { | |
return std::nullopt; | |
} | |
int32_t tag_number = | |
proto_field.proto_descriptors(index).tag_number(); | |
return std::nullopt; | |
} | |
std::optional<proto::Any> SetProtoValue( | |
const std::string& proto_name, | |
const proto::ProtoField& proto_field, | |
const std::string& value, | |
int32_t index) { | |
if (index >= proto_field.proto_descriptors_size()) { | |
return std::nullopt; | |
} | |
return std::nullopt; | |
} | |
} // namespace | |
std::optional<proto::Value> GetProtoValue( | |
const google::protobuf::MessageLite& msg, | |
const proto::ProtoField& proto_field) { | |
return GetProtoValue(msg, proto_field, /*index=*/0); | |
} | |
std::optional<NestedMessageIterator> GetProtoRepeated( | |
const google::protobuf::MessageLite* msg, | |
const proto::ProtoField& proto_field) { | |
return GetProtoRepeated(msg, proto_field, /*index=*/0); | |
} | |
std::unique_ptr<google::protobuf::MessageLite> GetProtoFromAny( | |
const proto::Any& msg) { | |
return nullptr; | |
} | |
std::optional<proto::Any> SetProtoValue( | |
const std::string& proto_name, | |
const proto::ProtoField& proto_field, | |
const std::string& value) { | |
return SetProtoValue(proto_name, proto_field, value, /*index=*/0); | |
} | |
const google::protobuf::MessageLite* NestedMessageIterator::Get() const { | |
NOTREACHED_IN_MIGRATION(); | |
return nullptr; | |
} | |
std::optional<proto::Any> ConvertToAnyWrappedProto( | |
const base::Value& object, const std::string& type_name) { | |
proto::Any any; | |
any.set_type_url("type.googleapis.com/" + type_name); | |
return std::nullopt; | |
} | |
NestedMessageIterator::NestedMessageIterator( | |
const google::protobuf::MessageLite* parent, | |
int32_t tag_number, | |
int32_t field_size, | |
int32_t offset) : | |
parent_(parent), | |
tag_number_(tag_number), | |
field_size_(field_size), | |
offset_(offset) {} | |
} // namespace optimization_guide | |