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 Type
    Method
    Description
    The expression this result is for.
    The index in `values` of the resulting value.
    The expression this result is for.
    int
    The index in `values` of the resulting value.
    boolean
    The expression this result is for.
    The expression this result is for.
    setExpr(IdRef value)
    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 interface EvalState.ResultOrBuilder
      Returns:
      Whether the expr field is set.
    • getExpr

      public IdRef getExpr()
       The expression this result is for.
       
      .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"];
      Specified by:
      getExpr in interface EvalState.ResultOrBuilder
      Returns:
      The expr.
    • setExpr

      public EvalState.Result.Builder setExpr(IdRef value)
       The expression this result is for.
       
      .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"];
    • setExpr

      public EvalState.Result.Builder setExpr(IdRef.Builder builderForValue)
       The expression this result is for.
       
      .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"];
    • mergeExpr

      public EvalState.Result.Builder mergeExpr(IdRef value)
       The expression this result is for.
       
      .google.api.expr.v1beta1.IdRef expr = 1 [json_name = "expr"];
    • clearExpr

      public EvalState.Result.Builder 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 interface EvalState.ResultOrBuilder
      Returns:
      The value.
    • setValue

      public EvalState.Result.Builder setValue(int value)
       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

      public EvalState.Result.Builder clearValue()
       The index in `values` of the resulting value.
       
      int32 value = 2 [json_name = "value"];
      Returns:
      This builder for chaining.