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

Function RefValueToValue

cel/io.go:161–163  ·  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

159// RefValueToValue converts between ref.Val and google.api.expr.v1alpha1.Value.
160// The result Value is the serialized proto form. The ref.Val must not be error or unknown.
161func RefValueToValue(res ref.Val) (*exprpb.Value, error) {
162 return ValueAsAlphaProto(res)
163}
164
165// ValueAsAlphaProto converts between ref.Val and google.api.expr.v1alpha1.Value.
166// 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