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

Method SetField

common/values/struct_value_builder.cc:1393–1402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1391 }
1392
1393 absl::StatusOr<absl::optional<ErrorValue>> SetField(
1394 const google::protobuf::FieldDescriptor* absl_nonnull field, Value value) {
1395 if (field->is_map()) {
1396 return SetMapField(field, std::move(value));
1397 }
1398 if (field->is_repeated()) {
1399 return SetRepeatedField(field, std::move(value));
1400 }
1401 return SetSingularField(field, std::move(value));
1402 }
1403
1404 google::protobuf::Arena* absl_nullable const arena_;
1405 const google::protobuf::DescriptorPool* absl_nonnull const descriptor_pool_;

Callers 5

CEL_ASSIGN_OR_RETURNMethod · 0.80
TESTFunction · 0.80
SetFieldByNameMethod · 0.80
SetFieldByNameMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64