public static final class Expr.Comprehension.Builder extends com.google.protobuf.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`.
Protobuf type google.api.expr.v1alpha1.Expr.Comprehension| Modifier and Type | Method and Description |
|---|---|
Expr.Comprehension.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Expr.Comprehension |
build() |
Expr.Comprehension |
buildPartial() |
Expr.Comprehension.Builder |
clear() |
Expr.Comprehension.Builder |
clearAccuInit()
The initial value of the accumulator.
|
Expr.Comprehension.Builder |
clearAccuVar()
The name of the variable used for accumulation of the result.
|
Expr.Comprehension.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Expr.Comprehension.Builder |
clearIterRange()
The range over which var iterates.
|
Expr.Comprehension.Builder |
clearIterVar()
The name of the iteration variable.
|
Expr.Comprehension.Builder |
clearLoopCondition()
An expression which can contain iter_var and accu_var.
|
Expr.Comprehension.Builder |
clearLoopStep()
An expression which can contain iter_var and accu_var.
|
Expr.Comprehension.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Expr.Comprehension.Builder |
clearResult()
An expression which can contain accu_var.
|
Expr.Comprehension.Builder |
clone() |
Expr |
getAccuInit()
The initial value of the accumulator.
|
Expr.Builder |
getAccuInitBuilder()
The initial value of the accumulator.
|
ExprOrBuilder |
getAccuInitOrBuilder()
The initial value of the accumulator.
|
String |
getAccuVar()
The name of the variable used for accumulation of the result.
|
com.google.protobuf.ByteString |
getAccuVarBytes()
The name of the variable used for accumulation of the result.
|
Expr.Comprehension |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Expr |
getIterRange()
The range over which var iterates.
|
Expr.Builder |
getIterRangeBuilder()
The range over which var iterates.
|
ExprOrBuilder |
getIterRangeOrBuilder()
The range over which var iterates.
|
String |
getIterVar()
The name of the iteration variable.
|
com.google.protobuf.ByteString |
getIterVarBytes()
The name of the iteration variable.
|
Expr |
getLoopCondition()
An expression which can contain iter_var and accu_var.
|
Expr.Builder |
getLoopConditionBuilder()
An expression which can contain iter_var and accu_var.
|
ExprOrBuilder |
getLoopConditionOrBuilder()
An expression which can contain iter_var and accu_var.
|
Expr |
getLoopStep()
An expression which can contain iter_var and accu_var.
|
Expr.Builder |
getLoopStepBuilder()
An expression which can contain iter_var and accu_var.
|
ExprOrBuilder |
getLoopStepOrBuilder()
An expression which can contain iter_var and accu_var.
|
Expr |
getResult()
An expression which can contain accu_var.
|
Expr.Builder |
getResultBuilder()
An expression which can contain accu_var.
|
ExprOrBuilder |
getResultOrBuilder()
An expression which can contain accu_var.
|
boolean |
hasAccuInit()
The initial value of the accumulator.
|
boolean |
hasIterRange()
The range over which var iterates.
|
boolean |
hasLoopCondition()
An expression which can contain iter_var and accu_var.
|
boolean |
hasLoopStep()
An expression which can contain iter_var and accu_var.
|
boolean |
hasResult()
An expression which can contain accu_var.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Expr.Comprehension.Builder |
mergeAccuInit(Expr value)
The initial value of the accumulator.
|
Expr.Comprehension.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Expr.Comprehension.Builder |
mergeFrom(Expr.Comprehension other) |
Expr.Comprehension.Builder |
mergeFrom(com.google.protobuf.Message other) |
Expr.Comprehension.Builder |
mergeIterRange(Expr value)
The range over which var iterates.
|
Expr.Comprehension.Builder |
mergeLoopCondition(Expr value)
An expression which can contain iter_var and accu_var.
|
Expr.Comprehension.Builder |
mergeLoopStep(Expr value)
An expression which can contain iter_var and accu_var.
|
Expr.Comprehension.Builder |
mergeResult(Expr value)
An expression which can contain accu_var.
|
Expr.Comprehension.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Expr.Comprehension.Builder |
setAccuInit(Expr.Builder builderForValue)
The initial value of the accumulator.
|
Expr.Comprehension.Builder |
setAccuInit(Expr value)
The initial value of the accumulator.
|
Expr.Comprehension.Builder |
setAccuVar(String value)
The name of the variable used for accumulation of the result.
|
Expr.Comprehension.Builder |
setAccuVarBytes(com.google.protobuf.ByteString value)
The name of the variable used for accumulation of the result.
|
Expr.Comprehension.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Expr.Comprehension.Builder |
setIterRange(Expr.Builder builderForValue)
The range over which var iterates.
|
Expr.Comprehension.Builder |
setIterRange(Expr value)
The range over which var iterates.
|
Expr.Comprehension.Builder |
setIterVar(String value)
The name of the iteration variable.
|
Expr.Comprehension.Builder |
setIterVarBytes(com.google.protobuf.ByteString value)
The name of the iteration variable.
|
Expr.Comprehension.Builder |
setLoopCondition(Expr.Builder builderForValue)
An expression which can contain iter_var and accu_var.
|
Expr.Comprehension.Builder |
setLoopCondition(Expr value)
An expression which can contain iter_var and accu_var.
|
Expr.Comprehension.Builder |
setLoopStep(Expr.Builder builderForValue)
An expression which can contain iter_var and accu_var.
|
Expr.Comprehension.Builder |
setLoopStep(Expr value)
An expression which can contain iter_var and accu_var.
|
Expr.Comprehension.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Expr.Comprehension.Builder |
setResult(Expr.Builder builderForValue)
An expression which can contain accu_var.
|
Expr.Comprehension.Builder |
setResult(Expr value)
An expression which can contain accu_var.
|
Expr.Comprehension.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>public Expr.Comprehension.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>public Expr.Comprehension getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Expr.Comprehension build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Expr.Comprehension buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Expr.Comprehension.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>public Expr.Comprehension.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>public Expr.Comprehension.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>public Expr.Comprehension.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>public Expr.Comprehension.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>public Expr.Comprehension.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>public Expr.Comprehension.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Expr.Comprehension.Builder>public Expr.Comprehension.Builder mergeFrom(Expr.Comprehension other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>public Expr.Comprehension.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Expr.Comprehension.Builder>IOExceptionpublic String getIterVar()
The name of the iteration variable.
string iter_var = 1;getIterVar in interface Expr.ComprehensionOrBuilderpublic com.google.protobuf.ByteString getIterVarBytes()
The name of the iteration variable.
string iter_var = 1;getIterVarBytes in interface Expr.ComprehensionOrBuilderpublic Expr.Comprehension.Builder setIterVar(String value)
The name of the iteration variable.
string iter_var = 1;public Expr.Comprehension.Builder clearIterVar()
The name of the iteration variable.
string iter_var = 1;public Expr.Comprehension.Builder setIterVarBytes(com.google.protobuf.ByteString value)
The name of the iteration variable.
string iter_var = 1;public boolean hasIterRange()
The range over which var iterates.
.google.api.expr.v1alpha1.Expr iter_range = 2;hasIterRange in interface Expr.ComprehensionOrBuilderpublic Expr getIterRange()
The range over which var iterates.
.google.api.expr.v1alpha1.Expr iter_range = 2;getIterRange in interface Expr.ComprehensionOrBuilderpublic Expr.Comprehension.Builder setIterRange(Expr value)
The range over which var iterates.
.google.api.expr.v1alpha1.Expr iter_range = 2;public Expr.Comprehension.Builder setIterRange(Expr.Builder builderForValue)
The range over which var iterates.
.google.api.expr.v1alpha1.Expr iter_range = 2;public Expr.Comprehension.Builder mergeIterRange(Expr value)
The range over which var iterates.
.google.api.expr.v1alpha1.Expr iter_range = 2;public Expr.Comprehension.Builder clearIterRange()
The range over which var iterates.
.google.api.expr.v1alpha1.Expr iter_range = 2;public Expr.Builder getIterRangeBuilder()
The range over which var iterates.
.google.api.expr.v1alpha1.Expr iter_range = 2;public ExprOrBuilder getIterRangeOrBuilder()
The range over which var iterates.
.google.api.expr.v1alpha1.Expr iter_range = 2;getIterRangeOrBuilder in interface Expr.ComprehensionOrBuilderpublic String getAccuVar()
The name of the variable used for accumulation of the result.
string accu_var = 3;getAccuVar in interface Expr.ComprehensionOrBuilderpublic com.google.protobuf.ByteString getAccuVarBytes()
The name of the variable used for accumulation of the result.
string accu_var = 3;getAccuVarBytes in interface Expr.ComprehensionOrBuilderpublic Expr.Comprehension.Builder setAccuVar(String value)
The name of the variable used for accumulation of the result.
string accu_var = 3;public Expr.Comprehension.Builder clearAccuVar()
The name of the variable used for accumulation of the result.
string accu_var = 3;public Expr.Comprehension.Builder setAccuVarBytes(com.google.protobuf.ByteString value)
The name of the variable used for accumulation of the result.
string accu_var = 3;public boolean hasAccuInit()
The initial value of the accumulator.
.google.api.expr.v1alpha1.Expr accu_init = 4;hasAccuInit in interface Expr.ComprehensionOrBuilderpublic Expr getAccuInit()
The initial value of the accumulator.
.google.api.expr.v1alpha1.Expr accu_init = 4;getAccuInit in interface Expr.ComprehensionOrBuilderpublic Expr.Comprehension.Builder setAccuInit(Expr value)
The initial value of the accumulator.
.google.api.expr.v1alpha1.Expr accu_init = 4;public Expr.Comprehension.Builder setAccuInit(Expr.Builder builderForValue)
The initial value of the accumulator.
.google.api.expr.v1alpha1.Expr accu_init = 4;public Expr.Comprehension.Builder mergeAccuInit(Expr value)
The initial value of the accumulator.
.google.api.expr.v1alpha1.Expr accu_init = 4;public Expr.Comprehension.Builder clearAccuInit()
The initial value of the accumulator.
.google.api.expr.v1alpha1.Expr accu_init = 4;public Expr.Builder getAccuInitBuilder()
The initial value of the accumulator.
.google.api.expr.v1alpha1.Expr accu_init = 4;public ExprOrBuilder getAccuInitOrBuilder()
The initial value of the accumulator.
.google.api.expr.v1alpha1.Expr accu_init = 4;getAccuInitOrBuilder in interface Expr.ComprehensionOrBuilderpublic 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.
.google.api.expr.v1alpha1.Expr loop_condition = 5;hasLoopCondition in interface Expr.ComprehensionOrBuilderpublic 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.
.google.api.expr.v1alpha1.Expr loop_condition = 5;getLoopCondition in interface Expr.ComprehensionOrBuilderpublic 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.
.google.api.expr.v1alpha1.Expr loop_condition = 5;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.
.google.api.expr.v1alpha1.Expr loop_condition = 5;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.
.google.api.expr.v1alpha1.Expr loop_condition = 5;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.
.google.api.expr.v1alpha1.Expr loop_condition = 5;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.
.google.api.expr.v1alpha1.Expr loop_condition = 5;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.
.google.api.expr.v1alpha1.Expr loop_condition = 5;getLoopConditionOrBuilder in interface Expr.ComprehensionOrBuilderpublic boolean hasLoopStep()
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.google.api.expr.v1alpha1.Expr loop_step = 6;hasLoopStep in interface Expr.ComprehensionOrBuilderpublic Expr getLoopStep()
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.google.api.expr.v1alpha1.Expr loop_step = 6;getLoopStep in interface Expr.ComprehensionOrBuilderpublic Expr.Comprehension.Builder setLoopStep(Expr value)
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.google.api.expr.v1alpha1.Expr loop_step = 6;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.
.google.api.expr.v1alpha1.Expr loop_step = 6;public Expr.Comprehension.Builder mergeLoopStep(Expr value)
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.google.api.expr.v1alpha1.Expr loop_step = 6;public Expr.Comprehension.Builder clearLoopStep()
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.google.api.expr.v1alpha1.Expr loop_step = 6;public Expr.Builder getLoopStepBuilder()
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.google.api.expr.v1alpha1.Expr loop_step = 6;public ExprOrBuilder getLoopStepOrBuilder()
An expression which can contain iter_var and accu_var. Computes the next value of accu_var.
.google.api.expr.v1alpha1.Expr loop_step = 6;getLoopStepOrBuilder in interface Expr.ComprehensionOrBuilderpublic boolean hasResult()
An expression which can contain accu_var. Computes the result.
.google.api.expr.v1alpha1.Expr result = 7;hasResult in interface Expr.ComprehensionOrBuilderpublic Expr getResult()
An expression which can contain accu_var. Computes the result.
.google.api.expr.v1alpha1.Expr result = 7;getResult in interface Expr.ComprehensionOrBuilderpublic Expr.Comprehension.Builder setResult(Expr value)
An expression which can contain accu_var. Computes the result.
.google.api.expr.v1alpha1.Expr result = 7;public Expr.Comprehension.Builder setResult(Expr.Builder builderForValue)
An expression which can contain accu_var. Computes the result.
.google.api.expr.v1alpha1.Expr result = 7;public Expr.Comprehension.Builder mergeResult(Expr value)
An expression which can contain accu_var. Computes the result.
.google.api.expr.v1alpha1.Expr result = 7;public Expr.Comprehension.Builder clearResult()
An expression which can contain accu_var. Computes the result.
.google.api.expr.v1alpha1.Expr result = 7;public Expr.Builder getResultBuilder()
An expression which can contain accu_var. Computes the result.
.google.api.expr.v1alpha1.Expr result = 7;public ExprOrBuilder getResultOrBuilder()
An expression which can contain accu_var. Computes the result.
.google.api.expr.v1alpha1.Expr result = 7;getResultOrBuilder in interface Expr.ComprehensionOrBuilderpublic final Expr.Comprehension.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>public final Expr.Comprehension.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Expr.Comprehension.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.