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

Method HasFieldByNumber

common/values/struct_value.cc:141–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141absl::StatusOr<bool> StructValue::HasFieldByNumber(int64_t number) const {
142 return variant_.Visit(
143 [number](const auto& alternative) -> absl::StatusOr<bool> {
144 return alternative.HasFieldByNumber(number);
145 });
146}
147
148absl::Status StructValue::GetFieldByName(
149 absl::string_view name, ProtoWrapperTypeOptions unboxing_options,

Callers 1

TEST_FFunction · 0.45

Calls 1

VisitMethod · 0.45

Tested by 1

TEST_FFunction · 0.36