Package dev.cel.expr
Interface Expr.ComprehensionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Expr.Comprehension,Expr.Comprehension.Builder
- Enclosing class:
- Expr
public static interface Expr.ComprehensionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExprgetAccuInit()The initial value of the accumulator.ExprOrBuildergetAccuInitOrBuilder()The initial value of the accumulator.java.lang.StringgetAccuVar()The name of the variable used for accumulation of the result.com.google.protobuf.ByteStringgetAccuVarBytes()The name of the variable used for accumulation of the result.ExprgetIterRange()The range over which the comprehension iterates.ExprOrBuildergetIterRangeOrBuilder()The range over which the comprehension iterates.java.lang.StringgetIterVar()The name of the first iteration variable.java.lang.StringgetIterVar2()The name of the second iteration variable, empty if not set.com.google.protobuf.ByteStringgetIterVar2Bytes()The name of the second iteration variable, empty if not set.com.google.protobuf.ByteStringgetIterVarBytes()The name of the first iteration variable.ExprgetLoopCondition()An expression which can contain iter_var, iter_var2, and accu_var.ExprOrBuildergetLoopConditionOrBuilder()An expression which can contain iter_var, iter_var2, and accu_var.ExprgetLoopStep()An expression which can contain iter_var, iter_var2, and accu_var.ExprOrBuildergetLoopStepOrBuilder()An expression which can contain iter_var, iter_var2, and accu_var.ExprgetResult()An expression which can contain accu_var.ExprOrBuildergetResultOrBuilder()An expression which can contain accu_var.booleanhasAccuInit()The initial value of the accumulator.booleanhasIterRange()The range over which the comprehension iterates.booleanhasLoopCondition()An expression which can contain iter_var, iter_var2, and accu_var.booleanhasLoopStep()An expression which can contain iter_var, iter_var2, and accu_var.booleanhasResult()An expression which can contain accu_var.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getIterVar
java.lang.String getIterVar()
The name of the first iteration variable. For the single iteration variable macros, when iter_range is a list, this variable is the list element and when the iter_range is a map, this variable is the map key.
string iter_var = 1;- Returns:
- The iterVar.
-
getIterVarBytes
com.google.protobuf.ByteString getIterVarBytes()
The name of the first iteration variable. For the single iteration variable macros, when iter_range is a list, this variable is the list element and when the iter_range is a map, this variable is the map key.
string iter_var = 1;- Returns:
- The bytes for iterVar.
-
getIterVar2
java.lang.String getIterVar2()
The name of the second iteration variable, empty if not set. This field is only set for comprehension v2 macros.
string iter_var2 = 8;- Returns:
- The iterVar2.
-
getIterVar2Bytes
com.google.protobuf.ByteString getIterVar2Bytes()
The name of the second iteration variable, empty if not set. This field is only set for comprehension v2 macros.
string iter_var2 = 8;- Returns:
- The bytes for iterVar2.
-
hasIterRange
boolean hasIterRange()
The range over which the comprehension iterates.
.cel.expr.Expr iter_range = 2;- Returns:
- Whether the iterRange field is set.
-
getIterRange
Expr getIterRange()
The range over which the comprehension iterates.
.cel.expr.Expr iter_range = 2;- Returns:
- The iterRange.
-
getIterRangeOrBuilder
ExprOrBuilder getIterRangeOrBuilder()
The range over which the comprehension iterates.
.cel.expr.Expr iter_range = 2;
-
getAccuVar
java.lang.String getAccuVar()
The name of the variable used for accumulation of the result.
string accu_var = 3;- Returns:
- The accuVar.
-
getAccuVarBytes
com.google.protobuf.ByteString getAccuVarBytes()
The name of the variable used for accumulation of the result.
string accu_var = 3;- Returns:
- The bytes for accuVar.
-
hasAccuInit
boolean hasAccuInit()
The initial value of the accumulator.
.cel.expr.Expr accu_init = 4;- Returns:
- Whether the accuInit field is set.
-
getAccuInit
Expr getAccuInit()
The initial value of the accumulator.
.cel.expr.Expr accu_init = 4;- Returns:
- The accuInit.
-
getAccuInitOrBuilder
ExprOrBuilder getAccuInitOrBuilder()
The initial value of the accumulator.
.cel.expr.Expr accu_init = 4;
-
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.
.cel.expr.Expr loop_condition = 5;- 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.
.cel.expr.Expr loop_condition = 5;- Returns:
- The loopCondition.
-
getLoopConditionOrBuilder
ExprOrBuilder getLoopConditionOrBuilder()
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.
.cel.expr.Expr loop_condition = 5;
-
hasLoopStep
boolean hasLoopStep()
An expression which can contain iter_var, iter_var2, and accu_var. Computes the next value of accu_var.
.cel.expr.Expr loop_step = 6;- 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.
.cel.expr.Expr loop_step = 6;- Returns:
- The loopStep.
-
getLoopStepOrBuilder
ExprOrBuilder getLoopStepOrBuilder()
An expression which can contain iter_var, iter_var2, and accu_var. Computes the next value of accu_var.
.cel.expr.Expr loop_step = 6;
-
hasResult
boolean hasResult()
An expression which can contain accu_var. Computes the result.
.cel.expr.Expr result = 7;- Returns:
- Whether the result field is set.
-
getResult
Expr getResult()
An expression which can contain accu_var. Computes the result.
.cel.expr.Expr result = 7;- Returns:
- The result.
-
getResultOrBuilder
ExprOrBuilder getResultOrBuilder()
An expression which can contain accu_var. Computes the result.
.cel.expr.Expr result = 7;
-
-