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