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)
| 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. |
| 113 | func 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. |