MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / DeclFromV1Alpha1Proto

Function DeclFromV1Alpha1Proto

common/decl_proto_v1alpha1.cc:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55absl::StatusOr<absl::variant<VariableDecl, FunctionDecl>> DeclFromV1Alpha1Proto(
56 const google::api::expr::v1alpha1::Decl& decl,
57 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
58 google::protobuf::Arena* absl_nonnull arena) {
59 cel::expr::Decl unversioned;
60 if (!unversioned.MergeFromString(decl.SerializeAsString())) {
61 return absl::InternalError(
62 "failed to convert versioned to unversioned Decl proto");
63 }
64 return DeclFromProto(unversioned, descriptor_pool, arena);
65}
66
67} // namespace cel

Callers 1

TEST_PFunction · 0.85

Calls 1

DeclFromProtoFunction · 0.85

Tested by 1

TEST_PFunction · 0.68