| 434 | } |
| 435 | |
| 436 | bool AssignEnum(const CelValue& cel_value) const { |
| 437 | int64_t value; |
| 438 | if (!cel_value.GetValue(&value)) { |
| 439 | return false; |
| 440 | } |
| 441 | if (!cel::internal::CheckedInt64ToInt32(value).ok()) { |
| 442 | return false; |
| 443 | } |
| 444 | static_cast<const Derived*>(this)->SetEnum(value); |
| 445 | return true; |
| 446 | } |
| 447 | |
| 448 | bool AssignMessage(const google::protobuf::Message* message) const { |
| 449 | return static_cast<const Derived*>(this)->SetMessage(message); |
nothing calls this directly
no test coverage detected