| 334 | } // namespace |
| 335 | |
| 336 | Value Value::Enum(const google::protobuf::EnumValueDescriptor* absl_nonnull value) { |
| 337 | ABSL_DCHECK(value != nullptr); |
| 338 | if (value->type()->full_name() == "google.protobuf.NullValue") { |
| 339 | ABSL_DCHECK_EQ(value->number(), 0); |
| 340 | return NullValue(); |
| 341 | } |
| 342 | return NonNullEnumValue(value); |
| 343 | } |
| 344 | |
| 345 | Value Value::Enum(const google::protobuf::EnumDescriptor* absl_nonnull type, |
| 346 | int32_t number) { |
nothing calls this directly
no test coverage detected