| 43 | namespace cel { |
| 44 | |
| 45 | const google::protobuf::Descriptor* absl_nonnull MessageValue::GetDescriptor() const { |
| 46 | ABSL_CHECK(*this); // Crash OK |
| 47 | return absl::visit( |
| 48 | absl::Overload( |
| 49 | [](absl::monostate) -> const google::protobuf::Descriptor* absl_nonnull { |
| 50 | ABSL_UNREACHABLE(); |
| 51 | }, |
| 52 | [](const ParsedMessageValue& alternative) |
| 53 | -> const google::protobuf::Descriptor* absl_nonnull { |
| 54 | return alternative.GetDescriptor(); |
| 55 | }), |
| 56 | variant_); |
| 57 | } |
| 58 | |
| 59 | std::string MessageValue::DebugString() const { |
| 60 | return absl::visit( |
no outgoing calls