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

Function ToString

common/internal/value_conversion.cc:48–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46using ExprListValue = cel::expr::ListValue;
47
48std::string ToString(ExprValueKind kind_case) {
49 switch (kind_case) {
50 case ExprValueKind::kBoolValue:
51 return "bool_value";
52 case ExprValueKind::kInt64Value:
53 return "int64_value";
54 case ExprValueKind::kUint64Value:
55 return "uint64_value";
56 case ExprValueKind::kDoubleValue:
57 return "double_value";
58 case ExprValueKind::kStringValue:
59 return "string_value";
60 case ExprValueKind::kBytesValue:
61 return "bytes_value";
62 case ExprValueKind::kTypeValue:
63 return "type_value";
64 case ExprValueKind::kEnumValue:
65 return "enum_value";
66 case ExprValueKind::kMapValue:
67 return "map_value";
68 case ExprValueKind::kListValue:
69 return "list_value";
70 case ExprValueKind::kNullValue:
71 return "null_value";
72 case ExprValueKind::kObjectValue:
73 return "object_value";
74 default:
75 return "unknown kind case";
76 }
77}
78
79absl::StatusOr<Value> FromObject(
80 const google::protobuf::Any& any,

Callers 1

FromExprValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected