Package com.google.api.expr.v1beta1
Class EvalState.Result.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<EvalState.Result,EvalState.Result.Builder>
com.google.api.expr.v1beta1.EvalState.Result.Builder
- All Implemented Interfaces:
EvalState.ResultOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- EvalState.Result
public static final class EvalState.Result.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<EvalState.Result,EvalState.Result.Builder>
implements EvalState.ResultOrBuilder
A single evaluation result.Protobuf type
google.api.expr.v1beta1.EvalState.Result
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionThe expression this result is for.The index in `values` of the resulting value.getExpr()
The expression this result is for.int
getValue()
The index in `values` of the resulting value.boolean
hasExpr()
The expression this result is for.The expression this result is for.The expression this result is for.setExpr
(IdRef.Builder builderForValue) The expression this result is for.setValue
(int value) The index in `values` of the resulting value.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasExpr
public boolean hasExpr()The expression this result is for.
.google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"];
- Specified by:
hasExpr
in interfaceEvalState.ResultOrBuilder
- Returns:
- Whether the expr field is set.
-
getExpr
The expression this result is for.
.google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"];
- Specified by:
getExpr
in interfaceEvalState.ResultOrBuilder
- Returns:
- The expr.
-
setExpr
The expression this result is for.
.google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"];
-
setExpr
The expression this result is for.
.google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"];
-
mergeExpr
The expression this result is for.
.google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"];
-
clearExpr
The expression this result is for.
.google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"];
-
getValue
public int getValue()The index in `values` of the resulting value.
int32 value = 2 [json_name = "value"];
- Specified by:
getValue
in interfaceEvalState.ResultOrBuilder
- Returns:
- The value.
-
setValue
The index in `values` of the resulting value.
int32 value = 2 [json_name = "value"];
- Parameters:
value
- The value to set.- Returns:
- This builder for chaining.
-
clearValue
The index in `values` of the resulting value.
int32 value = 2 [json_name = "value"];
- Returns:
- This builder for chaining.
-