MCPcopy Create free account
hub / github.com/cel-expr/cel-go / RefValueToValue

Function RefValueToValue

cel/io.go:113–115  ·  view source on GitHub ↗

RefValueToValue converts between ref.Val and google.api.expr.v1alpha1.Value. The result Value is the serialized proto form. The ref.Val must not be error or unknown.

(res ref.Val)

Source from the content-addressed store, hash-verified

111// RefValueToValue converts between ref.Val and google.api.expr.v1alpha1.Value.
112// The result Value is the serialized proto form. The ref.Val must not be error or unknown.
113func RefValueToValue(res ref.Val) (*exprpb.Value, error) {
114 return ValueAsAlphaProto(res)
115}
116
117// ValueAsAlphaProto converts between ref.Val and google.api.expr.v1alpha1.Value.
118// The result Value is the serialized proto form. The ref.Val must not be error or unknown.

Callers 3

refValueToExprValueFunction · 0.92

Calls 1

ValueAsAlphaProtoFunction · 0.85

Tested by 2