Package dev.cel.expr
Class Expr.Comprehension.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
- dev.cel.expr.Expr.Comprehension.Builder
-
- All Implemented Interfaces:
Message.Builder,MessageLite.Builder,MessageLiteOrBuilder,MessageOrBuilder,Expr.ComprehensionOrBuilder,java.lang.Cloneable
- Enclosing class:
- Expr.Comprehension
public static final class Expr.Comprehension.Builder extends GeneratedMessageV3.Builder<Expr.Comprehension.Builder> implements Expr.ComprehensionOrBuilder
A comprehension expression applied to a list or map. Comprehensions are not part of the core syntax, but enabled with macros. A macro matches a specific call signature within a parsed AST and replaces the call with an alternate AST block. Macro expansion happens at parse time. The following macros are supported within CEL: Aggregate type macros may be applied to all elements in a list or all keys in a map: * `all`, `exists`, `exists_one` - test a predicate expression against the inputs and return `true` if the predicate is satisfied for all, any, or only one value `list.all(x, x < 10)`. * `filter` - test a predicate expression against the inputs and return the subset of elements which satisfy the predicate: `payments.filter(p, p > 1000)`. * `map` - apply an expression to all elements in the input and return the output aggregate type: `[1, 2, 3].map(i, i * i)`. The `has(m.x)` macro tests whether the property `x` is present in struct `m`. The semantics of this macro depend on the type of `m`. For proto2 messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the macro tests whether the property is set to its default. For map and struct types, the macro tests whether the property `x` is defined on `m`. Comprehension evaluation can be best visualized as the following pseudocode: ``` let `accu_var` = `accu_init` for (let `iter_var` in `iter_range`) { if (!`loop_condition`) { break } `accu_var` = `loop_step` } return `result` ```Protobuf typecel.expr.Expr.Comprehension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Expr.Comprehension.BuilderaddRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)LikesetRepeatedField, but appends the value as a new element.Expr.Comprehensionbuild()Constructs the message based on the state of the Builder.Expr.ComprehensionbuildPartial()LikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields.Expr.Comprehension.Builderclear()Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.Expr.Comprehension.BuilderclearAccuInit()The initial value of the accumulator.Expr.Comprehension.BuilderclearAccuVar()The name of the variable used for accumulation of the result.Expr.Comprehension.BuilderclearField(Descriptors.FieldDescriptor field)Clears the field.Expr.Comprehension.BuilderclearIterRange()The range over which var iterates.Expr.Comprehension.BuilderclearIterVar()The name of the iteration variable.Expr.Comprehension.BuilderclearLoopCondition()An expression which can contain iter_var and accu_var.Expr.Comprehension.BuilderclearLoopStep()An expression which can contain iter_var and accu_var.Expr.Comprehension.BuilderclearOneof(Descriptors.OneofDescriptor oneof)TODO(jieluo): Clear it when all subclasses have implemented this method.Expr.Comprehension.BuilderclearResult()An expression which can contain accu_var.Expr.Comprehension.Builderclone()Clones the Builder.ExprgetAccuInit()The initial value of the accumulator.Expr.BuildergetAccuInitBuilder()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.ByteStringgetAccuVarBytes()The name of the variable used for accumulation of the result.Expr.ComprehensiongetDefaultInstanceForType()Get an instance of the type with no fields set.static Descriptors.DescriptorgetDescriptor()Descriptors.DescriptorgetDescriptorForType()Get the message's type's descriptor.ExprgetIterRange()The range over which var iterates.Expr.BuildergetIterRangeBuilder()The range over which var iterates.ExprOrBuildergetIterRangeOrBuilder()The range over which var iterates.java.lang.StringgetIterVar()The name of the iteration variable.ByteStringgetIterVarBytes()The name of the iteration variable.ExprgetLoopCondition()An expression which can contain iter_var and accu_var.Expr.BuildergetLoopConditionBuilder()An expression which can contain iter_var and accu_var.ExprOrBuildergetLoopConditionOrBuilder()An expression which can contain iter_var and accu_var.ExprgetLoopStep()An expression which can contain iter_var and accu_var.Expr.BuildergetLoopStepBuilder()An expression which can contain iter_var and accu_var.ExprOrBuildergetLoopStepOrBuilder()An expression which can contain iter_var and accu_var.ExprgetResult()An expression which can contain accu_var.Expr.BuildergetResultBuilder()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 var iterates.booleanhasLoopCondition()An expression which can contain iter_var and accu_var.booleanhasLoopStep()An expression which can contain iter_var and accu_var.booleanhasResult()An expression which can contain accu_var.protected GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()Get the FieldAccessorTable for this type.booleanisInitialized()Returns true if all required fields in the message and all embedded messages are set, false otherwise.Expr.Comprehension.BuildermergeAccuInit(Expr value)The initial value of the accumulator.Expr.Comprehension.BuildermergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.Expr.Comprehension.BuildermergeFrom(Message other)Mergeotherinto the message being built.Expr.Comprehension.BuildermergeFrom(Expr.Comprehension other)Expr.Comprehension.BuildermergeIterRange(Expr value)The range over which var iterates.Expr.Comprehension.BuildermergeLoopCondition(Expr value)An expression which can contain iter_var and accu_var.Expr.Comprehension.BuildermergeLoopStep(Expr value)An expression which can contain iter_var and accu_var.Expr.Comprehension.BuildermergeResult(Expr value)An expression which can contain accu_var.Expr.Comprehension.BuildermergeUnknownFields(UnknownFieldSet unknownFields)Merge some unknown fields into theUnknownFieldSetfor this message.Expr.Comprehension.BuildersetAccuInit(Expr value)The initial value of the accumulator.Expr.Comprehension.BuildersetAccuInit(Expr.Builder builderForValue)The initial value of the accumulator.Expr.Comprehension.BuildersetAccuVar(java.lang.String value)The name of the variable used for accumulation of the result.Expr.Comprehension.BuildersetAccuVarBytes(ByteString value)The name of the variable used for accumulation of the result.Expr.Comprehension.BuildersetField(Descriptors.FieldDescriptor field, java.lang.Object value)Sets a field to the given value.Expr.Comprehension.BuildersetIterRange(Expr value)The range over which var iterates.Expr.Comprehension.BuildersetIterRange(Expr.Builder builderForValue)The range over which var iterates.Expr.Comprehension.BuildersetIterVar(java.lang.String value)The name of the iteration variable.Expr.Comprehension.BuildersetIterVarBytes(ByteString value)The name of the iteration variable.Expr.Comprehension.BuildersetLoopCondition(Expr value)An expression which can contain iter_var and accu_var.Expr.Comprehension.BuildersetLoopCondition(Expr.Builder builderForValue)An expression which can contain iter_var and accu_var.Expr.Comprehension.BuildersetLoopStep(Expr value)An expression which can contain iter_var and accu_var.Expr.Comprehension.BuildersetLoopStep(Expr.Builder builderForValue)An expression which can contain iter_var and accu_var.Expr.Comprehension.BuildersetRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)Sets an element of a repeated field to the given value.Expr.Comprehension.BuildersetResult(Expr value)An expression which can contain accu_var.Expr.Comprehension.BuildersetResult(Expr.Builder builderForValue)An expression which can contain accu_var.Expr.Comprehension.BuildersetUnknownFields(UnknownFieldSet unknownFields)Set theUnknownFieldSetfor this message.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3.BuilderGet the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
clear
public Expr.Comprehension.Builder clear()
Description copied from class:GeneratedMessageV3.BuilderCalled by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
Description copied from interface:Message.BuilderGet the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType().- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
getDefaultInstanceForType
public Expr.Comprehension getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilderGet an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
public Expr.Comprehension build()
Description copied from interface:MessageLite.BuilderConstructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
public Expr.Comprehension buildPartial()
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
public Expr.Comprehension.Builder clone()
Description copied from interface:MessageLite.BuilderClones the Builder.- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>- See Also:
Object.clone()
-
setField
public Expr.Comprehension.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderSets a field to the given value. The value must be of the correct type for this field, that is, the same type thatMessageOrBuilder.getField(Descriptors.FieldDescriptor)returns.- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
clearField
public Expr.Comprehension.Builder clearField(Descriptors.FieldDescriptor field)
Description copied from interface:Message.BuilderClears the field. This is exactly equivalent to calling the generated "clear" accessor method corresponding to the field.- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
clearOneof
public Expr.Comprehension.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Description copied from class:AbstractMessage.BuilderTODO(jieluo): Clear it when all subclasses have implemented this method.- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
setRepeatedField
public Expr.Comprehension.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Description copied from interface:Message.BuilderSets an element of a repeated field to the given value. The value must be of the correct type for this field; that is, the same type thatMessageOrBuilder.getRepeatedField(Descriptors.FieldDescriptor,int)returns.- Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
addRepeatedField
public Expr.Comprehension.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderLikesetRepeatedField, but appends the value as a new element.- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
mergeFrom
public Expr.Comprehension.Builder mergeFrom(Message other)
Description copied from interface:Message.BuilderMergeotherinto the message being built.othermust have the exact same type asthis(i.e.getDescriptorForType() == other.getDescriptorForType()).Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set inother, thenother's value overwrites the value in this message.
* For singular message fields, if the field is set inother, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements inotherare concatenated with the elements in this message.
* For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.This is equivalent to the
Message::MergeFrommethod in C++.- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Expr.Comprehension.Builder>
-
mergeFrom
public Expr.Comprehension.Builder mergeFrom(Expr.Comprehension other)
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
mergeFrom
public Expr.Comprehension.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered inextensionRegistry. Extensions not in the registry will be treated as unknown fields.- Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<Expr.Comprehension.Builder>- Throws:
InvalidProtocolBufferException- the bytes read are not syntactically correct according to the protobuf wire format specification. The data is corrupt, incomplete, or was never a protobuf in the first place.java.io.IOException- an I/O error reading from the stream
-
getIterVar
public java.lang.String getIterVar()
The name of the iteration variable.
string iter_var = 1;- Specified by:
getIterVarin interfaceExpr.ComprehensionOrBuilder- Returns:
- The iterVar.
-
getIterVarBytes
public ByteString getIterVarBytes()
The name of the iteration variable.
string iter_var = 1;- Specified by:
getIterVarBytesin interfaceExpr.ComprehensionOrBuilder- Returns:
- The bytes for iterVar.
-
setIterVar
public Expr.Comprehension.Builder setIterVar(java.lang.String value)
The name of the iteration variable.
string iter_var = 1;- Parameters:
value- The iterVar to set.- Returns:
- This builder for chaining.
-
clearIterVar
public Expr.Comprehension.Builder clearIterVar()
The name of the iteration variable.
string iter_var = 1;- Returns:
- This builder for chaining.
-
setIterVarBytes
public Expr.Comprehension.Builder setIterVarBytes(ByteString value)
The name of the iteration variable.
string iter_var = 1;- Parameters:
value- The bytes for iterVar to set.- Returns:
- This builder for chaining.
-
hasIterRange
public boolean hasIterRange()
The range over which var iterates.
.cel.expr.Expr iter_range = 2;- Specified by:
hasIterRangein interfaceExpr.ComprehensionOrBuilder- Returns:
- Whether the iterRange field is set.
-
getIterRange
public Expr getIterRange()
The range over which var iterates.
.cel.expr.Expr iter_range = 2;- Specified by:
getIterRangein interfaceExpr.ComprehensionOrBuilder- Returns:
- The iterRange.
-
setIterRange
public Expr.Comprehension.Builder setIterRange(Expr value)
The range over which var iterates.
.cel.expr.Expr iter_range = 2;
-
setIterRange
public Expr.Comprehension.Builder setIterRange(Expr.Builder builderForValue)
The range over which var iterates.
.cel.expr.Expr iter_range = 2;
-
mergeIterRange
public Expr.Comprehension.Builder mergeIterRange(Expr value)
The range over which var iterates.
.cel.expr.Expr iter_range = 2;
-
clearIterRange
public Expr.Comprehension.Builder clearIterRange()
The range over which var iterates.
.cel.expr.Expr iter_range = 2;
-
getIterRangeBuilder
public Expr.Builder getIterRangeBuilder()
The range over which var iterates.
.cel.expr.Expr iter_range = 2;
-
getIterRangeOrBuilder
public ExprOrBuilder getIterRangeOrBuilder()
The range over which var iterates.
.cel.expr.Expr iter_range = 2;- Specified by:
getIterRangeOrBuilderin interfaceExpr.ComprehensionOrBuilder
-
getAccuVar
public java.lang.String getAccuVar()
The name of the variable used for accumulation of the result.
string accu_var = 3;- Specified by:
getAccuVarin interfaceExpr.ComprehensionOrBuilder- Returns:
- The accuVar.
-
getAccuVarBytes
public ByteString getAccuVarBytes()
The name of the variable used for accumulation of the result.
string accu_var = 3;- Specified by:
getAccuVarBytesin interfaceExpr.ComprehensionOrBuilder- Returns:
- The bytes for accuVar.
-
setAccuVar
public Expr.Comprehension.Builder setAccuVar(java.lang.String value)
The name of the variable used for accumulation of the result.
string accu_var = 3;- Parameters:
value- The accuVar to set.- Returns:
- This builder for chaining.
-
clearAccuVar
public Expr.Comprehension.Builder clearAccuVar()
The name of the variable used for accumulation of the result.
string accu_var = 3;- Returns:
- This builder for chaining.
-
setAccuVarBytes
public Expr.Comprehension.Builder setAccuVarBytes(ByteString value)
The name of the variable used for accumulation of the result.
string accu_var = 3;- Parameters:
value- The bytes for accuVar to set.- Returns:
- This builder for chaining.
-
hasAccuInit
public boolean hasAccuInit()
The initial value of the accumulator.
.cel.expr.Expr accu_init = 4;- Specified by:
hasAccuInitin interfaceExpr.ComprehensionOrBuilder- Returns:
- Whether the accuInit field is set.
-
getAccuInit
public Expr getAccuInit()
The initial value of the accumulator.
.cel.expr.Expr accu_init = 4;- Specified by:
getAccuInitin interfaceExpr.ComprehensionOrBuilder- Returns:
- The accuInit.
-
setAccuInit
public Expr.Comprehension.Builder setAccuInit(Expr value)
The initial value of the accumulator.
.cel.expr.Expr accu_init = 4;
-
setAccuInit
public Expr.Comprehension.Builder setAccuInit(Expr.Builder builderForValue)
The initial value of the accumulator.
.cel.expr.Expr accu_init = 4;
-
mergeAccuInit
public Expr.Comprehension.Builder mergeAccuInit(Expr value)
The initial value of the accumulator.
.cel.expr.Expr accu_init = 4;
-
clearAccuInit
public Expr.Comprehension.Builder clearAccuInit()
The initial value of the accumulator.
.cel.expr.Expr accu_init = 4;
-
getAccuInitBuilder
public Expr.Builder getAccuInitBuilder()
The initial value of the accumulator.
.cel.expr.Expr accu_init = 4;
-
getAccuInitOrBuilder
public ExprOrBuilder getAccuInitOrBuilder()
The initial value of the accumulator.
.cel.expr.Expr accu_init = 4;- Specified by:
getAccuInitOrBuilderin interfaceExpr.ComprehensionOrBuilder
-
hasLoopCondition
public boolean hasLoopCondition()
An expression which can contain iter_var 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;- Specified by:
hasLoopConditionin interfaceExpr.ComprehensionOrBuilder- Returns:
- Whether the loopCondition field is set.
-
getLoopCondition
public Expr getLoopCondition()
An expression which can contain iter_var 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;- Specified by:
getLoopConditionin interfaceExpr.ComprehensionOrBuilder- Returns:
- The loopCondition.
-
setLoopCondition
public Expr.Comprehension.Builder setLoopCondition(Expr value)
An expression which can contain iter_var 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;
-
setLoopCondition
public Expr.Comprehension.Builder setLoopCondition(Expr.Builder builderForValue)
An expression which can contain iter_var 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;
-
mergeLoopCondition
public Expr.Comprehension.Builder mergeLoopCondition(Expr value)
An expression which can contain iter_var 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;
-
clearLoopCondition
public Expr.Comprehension.Builder clearLoopCondition()
An expression which can contain iter_var 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;
-
getLoopConditionBuilder
public Expr.Builder getLoopConditionBuilder()
An expression which can contain iter_var 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;
-
getLoopConditionOrBuilder
public ExprOrBuilder getLoopConditionOrBuilder()
An expression which can contain iter_var 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;- Specified by:
getLoopConditionOrBuilderin interfaceExpr.ComprehensionOrBuilder
-
hasLoopStep
public boolean hasLoopStep()
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.cel.expr.Expr loop_step = 6;- Specified by:
hasLoopStepin interfaceExpr.ComprehensionOrBuilder- Returns:
- Whether the loopStep field is set.
-
getLoopStep
public Expr getLoopStep()
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.cel.expr.Expr loop_step = 6;- Specified by:
getLoopStepin interfaceExpr.ComprehensionOrBuilder- Returns:
- The loopStep.
-
setLoopStep
public Expr.Comprehension.Builder setLoopStep(Expr value)
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.cel.expr.Expr loop_step = 6;
-
setLoopStep
public Expr.Comprehension.Builder setLoopStep(Expr.Builder builderForValue)
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.cel.expr.Expr loop_step = 6;
-
mergeLoopStep
public Expr.Comprehension.Builder mergeLoopStep(Expr value)
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.cel.expr.Expr loop_step = 6;
-
clearLoopStep
public Expr.Comprehension.Builder clearLoopStep()
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.cel.expr.Expr loop_step = 6;
-
getLoopStepBuilder
public Expr.Builder getLoopStepBuilder()
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.cel.expr.Expr loop_step = 6;
-
getLoopStepOrBuilder
public ExprOrBuilder getLoopStepOrBuilder()
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.cel.expr.Expr loop_step = 6;- Specified by:
getLoopStepOrBuilderin interfaceExpr.ComprehensionOrBuilder
-
hasResult
public boolean hasResult()
An expression which can contain accu_var. Computes the result.
.cel.expr.Expr result = 7;- Specified by:
hasResultin interfaceExpr.ComprehensionOrBuilder- Returns:
- Whether the result field is set.
-
getResult
public Expr getResult()
An expression which can contain accu_var. Computes the result.
.cel.expr.Expr result = 7;- Specified by:
getResultin interfaceExpr.ComprehensionOrBuilder- Returns:
- The result.
-
setResult
public Expr.Comprehension.Builder setResult(Expr value)
An expression which can contain accu_var. Computes the result.
.cel.expr.Expr result = 7;
-
setResult
public Expr.Comprehension.Builder setResult(Expr.Builder builderForValue)
An expression which can contain accu_var. Computes the result.
.cel.expr.Expr result = 7;
-
mergeResult
public Expr.Comprehension.Builder mergeResult(Expr value)
An expression which can contain accu_var. Computes the result.
.cel.expr.Expr result = 7;
-
clearResult
public Expr.Comprehension.Builder clearResult()
An expression which can contain accu_var. Computes the result.
.cel.expr.Expr result = 7;
-
getResultBuilder
public Expr.Builder getResultBuilder()
An expression which can contain accu_var. Computes the result.
.cel.expr.Expr result = 7;
-
getResultOrBuilder
public ExprOrBuilder getResultOrBuilder()
An expression which can contain accu_var. Computes the result.
.cel.expr.Expr result = 7;- Specified by:
getResultOrBuilderin interfaceExpr.ComprehensionOrBuilder
-
setUnknownFields
public final Expr.Comprehension.Builder setUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderSet theUnknownFieldSetfor this message.- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
mergeUnknownFields
public final Expr.Comprehension.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderMerge some unknown fields into theUnknownFieldSetfor this message.- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<Expr.Comprehension.Builder>
-
-