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

Method MapStringFieldToValue

internal/json.cc:514–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512 }
513
514 absl::Status MapStringFieldToValue(
515 const google::protobuf::MapValueConstRef& value,
516 const google::protobuf::FieldDescriptor* absl_nonnull field,
517 google::protobuf::MessageLite* absl_nonnull result) {
518 ABSL_DCHECK_EQ(value.type(), field->cpp_type());
519 ABSL_DCHECK(!field->is_repeated());
520 ABSL_DCHECK_EQ(field->type(), FieldDescriptor::TYPE_STRING);
521 ABSL_DCHECK_EQ(field->cpp_type(), FieldDescriptor::CPPTYPE_STRING);
522 SetStringValue(result, value.GetStringValue());
523 return absl::OkStatus();
524 }
525
526 absl::Status MapMessageFieldToValue(
527 const google::protobuf::MapValueConstRef& value,

Callers

nothing calls this directly

Calls 2

typeMethod · 0.80
GetStringValueMethod · 0.45

Tested by

no test coverage detected