Interface Expr.ComprehensionOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
Expr.Comprehension, Expr.Comprehension.Builder
Enclosing class:
Expr

public static interface Expr.ComprehensionOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The initial value of the accumulator.
    The name of the variable used for accumulation of the result.
    com.google.protobuf.ByteString
    The name of the variable used for accumulation of the result.
    The range over which the comprehension iterates.
    The name of the first iteration variable.
    The name of the second iteration variable, empty if not set.
    com.google.protobuf.ByteString
    The name of the second iteration variable, empty if not set.
    com.google.protobuf.ByteString
    The name of the first iteration variable.
    An expression which can contain iter_var, iter_var2, and accu_var.
    An expression which can contain iter_var, iter_var2, and accu_var.
    An expression which can contain accu_var.
    boolean
    The initial value of the accumulator.
    boolean
    The range over which the comprehension iterates.
    boolean
    An expression which can contain iter_var, iter_var2, and accu_var.
    boolean
    An expression which can contain iter_var, iter_var2, and accu_var.
    boolean
    An expression which can contain accu_var.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getIterVar

      String getIterVar()
       The name of the first iteration variable.
       When the iter_range is a list, this variable is the list element.
       When the iter_range is a map, this variable is the map entry key.
       
      string iter_var = 1 [json_name = "iterVar"];
      Returns:
      The iterVar.
    • getIterVarBytes

      com.google.protobuf.ByteString getIterVarBytes()
       The name of the first iteration variable.
       When the iter_range is a list, this variable is the list element.
       When the iter_range is a map, this variable is the map entry key.
       
      string iter_var = 1 [json_name = "iterVar"];
      Returns:
      The bytes for iterVar.
    • getIterVar2

      String getIterVar2()
       The name of the second iteration variable, empty if not set.
       When the iter_range is a list, this variable is the integer index.
       When the iter_range is a map, this variable is the map entry value.
       This field is only set for comprehension v2 macros.
       
      string iter_var2 = 8 [json_name = "iterVar2"];
      Returns:
      The iterVar2.
    • getIterVar2Bytes

      com.google.protobuf.ByteString getIterVar2Bytes()
       The name of the second iteration variable, empty if not set.
       When the iter_range is a list, this variable is the integer index.
       When the iter_range is a map, this variable is the map entry value.
       This field is only set for comprehension v2 macros.
       
      string iter_var2 = 8 [json_name = "iterVar2"];
      Returns:
      The bytes for iterVar2.
    • hasIterRange

      boolean hasIterRange()
       The range over which the comprehension iterates.
       
      .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"];
      Returns:
      Whether the iterRange field is set.
    • getIterRange

      Expr getIterRange()
       The range over which the comprehension iterates.
       
      .google.api.expr.v1alpha1.Expr iter_range = 2 [json_name = "iterRange"];
      Returns:
      The iterRange.
    • getAccuVar

      String getAccuVar()
       The name of the variable used for accumulation of the result.
       
      string accu_var = 3 [json_name = "accuVar"];
      Returns:
      The accuVar.
    • getAccuVarBytes

      com.google.protobuf.ByteString getAccuVarBytes()
       The name of the variable used for accumulation of the result.
       
      string accu_var = 3 [json_name = "accuVar"];
      Returns:
      The bytes for accuVar.
    • hasAccuInit

      boolean hasAccuInit()
       The initial value of the accumulator.
       
      .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"];
      Returns:
      Whether the accuInit field is set.
    • getAccuInit

      Expr getAccuInit()
       The initial value of the accumulator.
       
      .google.api.expr.v1alpha1.Expr accu_init = 4 [json_name = "accuInit"];
      Returns:
      The accuInit.
    • hasLoopCondition

      boolean hasLoopCondition()
       An expression which can contain iter_var, iter_var2, and accu_var.
      
       Returns false when the result has been computed and may be used as
       a hint to short-circuit the remainder of the comprehension.
       
      .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"];
      Returns:
      Whether the loopCondition field is set.
    • getLoopCondition

      Expr getLoopCondition()
       An expression which can contain iter_var, iter_var2, and accu_var.
      
       Returns false when the result has been computed and may be used as
       a hint to short-circuit the remainder of the comprehension.
       
      .google.api.expr.v1alpha1.Expr loop_condition = 5 [json_name = "loopCondition"];
      Returns:
      The loopCondition.
    • hasLoopStep

      boolean hasLoopStep()
       An expression which can contain iter_var, iter_var2, and accu_var.
      
       Computes the next value of accu_var.
       
      .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"];
      Returns:
      Whether the loopStep field is set.
    • getLoopStep

      Expr getLoopStep()
       An expression which can contain iter_var, iter_var2, and accu_var.
      
       Computes the next value of accu_var.
       
      .google.api.expr.v1alpha1.Expr loop_step = 6 [json_name = "loopStep"];
      Returns:
      The loopStep.
    • hasResult

      boolean hasResult()
       An expression which can contain accu_var.
      
       Computes the result.
       
      .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"];
      Returns:
      Whether the result field is set.
    • getResult

      Expr getResult()
       An expression which can contain accu_var.
      
       Computes the result.
       
      .google.api.expr.v1alpha1.Expr result = 7 [json_name = "result"];
      Returns:
      The result.