MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / MapBytesFieldToValue

Method MapBytesFieldToValue

internal/json.cc:502–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500 }
501
502 absl::Status MapBytesFieldToValue(
503 const google::protobuf::MapValueConstRef& value,
504 const google::protobuf::FieldDescriptor* absl_nonnull field,
505 google::protobuf::MessageLite* absl_nonnull result) {
506 ABSL_DCHECK_EQ(value.type(), field->cpp_type());
507 ABSL_DCHECK(!field->is_repeated());
508 ABSL_DCHECK_EQ(field->type(), FieldDescriptor::TYPE_BYTES);
509 ABSL_DCHECK_EQ(field->cpp_type(), FieldDescriptor::CPPTYPE_STRING);
510 SetStringValueFromBytes(result, value.GetStringValue());
511 return absl::OkStatus();
512 }
513
514 absl::Status MapStringFieldToValue(
515 const google::protobuf::MapValueConstRef& value,

Callers

nothing calls this directly

Calls 2

typeMethod · 0.80
GetStringValueMethod · 0.45

Tested by

no test coverage detected