| 40 | } |
| 41 | |
| 42 | absl::StatusOr<FunctionDecl> FunctionDeclFromV1Alpha1Proto( |
| 43 | absl::string_view name, |
| 44 | const google::api::expr::v1alpha1::Decl::FunctionDecl& function, |
| 45 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 46 | google::protobuf::Arena* absl_nonnull arena) { |
| 47 | cel::expr::Decl::FunctionDecl unversioned; |
| 48 | if (!unversioned.MergeFromString(function.SerializeAsString())) { |
| 49 | return absl::InternalError( |
| 50 | "failed to convert versioned to unversioned Decl proto"); |
| 51 | } |
| 52 | return FunctionDeclFromProto(name, unversioned, descriptor_pool, arena); |
| 53 | } |
| 54 | |
| 55 | absl::StatusOr<absl::variant<VariableDecl, FunctionDecl>> DeclFromV1Alpha1Proto( |
| 56 | const google::api::expr::v1alpha1::Decl& decl, |
nothing calls this directly
no test coverage detected