| 27 | namespace cel { |
| 28 | |
| 29 | absl::StatusOr<VariableDecl> VariableDeclFromV1Alpha1Proto( |
| 30 | absl::string_view name, |
| 31 | const google::api::expr::v1alpha1::Decl::IdentDecl& variable, |
| 32 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 33 | google::protobuf::Arena* absl_nonnull arena) { |
| 34 | cel::expr::Decl::IdentDecl unversioned; |
| 35 | if (!unversioned.MergeFromString(variable.SerializeAsString())) { |
| 36 | return absl::InternalError( |
| 37 | "failed to convert versioned to unversioned Decl proto"); |
| 38 | } |
| 39 | return VariableDeclFromProto(name, unversioned, descriptor_pool, arena); |
| 40 | } |
| 41 | |
| 42 | absl::StatusOr<FunctionDecl> FunctionDeclFromV1Alpha1Proto( |
| 43 | absl::string_view name, |
nothing calls this directly
no test coverage detected