Package dev.cel.expr
Class ExprValue.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
- dev.cel.expr.ExprValue.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ExprValueOrBuilder
,java.lang.Cloneable
- Enclosing class:
- ExprValue
public static final class ExprValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder> implements ExprValueOrBuilder
The value of an evaluated expression.
Protobuf typecel.expr.ExprValue
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExprValue.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ExprValue
build()
ExprValue
buildPartial()
ExprValue.Builder
clear()
ExprValue.Builder
clearError()
The set of errors in the critical path of evaluation.ExprValue.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ExprValue.Builder
clearKind()
ExprValue.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ExprValue.Builder
clearUnknown()
The set of unknowns in the critical path of evaluation.ExprValue.Builder
clearValue()
.cel.expr.Value value = 1;
ExprValue.Builder
clone()
ExprValue
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ErrorSet
getError()
The set of errors in the critical path of evaluation.ErrorSet.Builder
getErrorBuilder()
The set of errors in the critical path of evaluation.ErrorSetOrBuilder
getErrorOrBuilder()
The set of errors in the critical path of evaluation.ExprValue.KindCase
getKindCase()
UnknownSet
getUnknown()
The set of unknowns in the critical path of evaluation.UnknownSet.Builder
getUnknownBuilder()
The set of unknowns in the critical path of evaluation.UnknownSetOrBuilder
getUnknownOrBuilder()
The set of unknowns in the critical path of evaluation.Value
getValue()
.cel.expr.Value value = 1;
Value.Builder
getValueBuilder()
.cel.expr.Value value = 1;
ValueOrBuilder
getValueOrBuilder()
.cel.expr.Value value = 1;
boolean
hasError()
The set of errors in the critical path of evaluation.boolean
hasUnknown()
The set of unknowns in the critical path of evaluation.boolean
hasValue()
.cel.expr.Value value = 1;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ExprValue.Builder
mergeError(ErrorSet value)
The set of errors in the critical path of evaluation.ExprValue.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ExprValue.Builder
mergeFrom(com.google.protobuf.Message other)
ExprValue.Builder
mergeFrom(ExprValue other)
ExprValue.Builder
mergeUnknown(UnknownSet value)
The set of unknowns in the critical path of evaluation.ExprValue.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ExprValue.Builder
mergeValue(Value value)
.cel.expr.Value value = 1;
ExprValue.Builder
setError(ErrorSet value)
The set of errors in the critical path of evaluation.ExprValue.Builder
setError(ErrorSet.Builder builderForValue)
The set of errors in the critical path of evaluation.ExprValue.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
ExprValue.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
ExprValue.Builder
setUnknown(UnknownSet value)
The set of unknowns in the critical path of evaluation.ExprValue.Builder
setUnknown(UnknownSet.Builder builderForValue)
The set of unknowns in the critical path of evaluation.ExprValue.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ExprValue.Builder
setValue(Value value)
.cel.expr.Value value = 1;
ExprValue.Builder
setValue(Value.Builder builderForValue)
.cel.expr.Value value = 1;
-
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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
clear
public ExprValue.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
getDefaultInstanceForType
public ExprValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExprValue build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExprValue buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExprValue.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
setField
public ExprValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
clearField
public ExprValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
clearOneof
public ExprValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
setRepeatedField
public ExprValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
addRepeatedField
public ExprValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
mergeFrom
public ExprValue.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExprValue.Builder>
-
mergeFrom
public ExprValue.Builder mergeFrom(ExprValue other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
mergeFrom
public ExprValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExprValue.Builder>
- Throws:
java.io.IOException
-
getKindCase
public ExprValue.KindCase getKindCase()
- Specified by:
getKindCase
in interfaceExprValueOrBuilder
-
clearKind
public ExprValue.Builder clearKind()
-
hasValue
public boolean hasValue()
.cel.expr.Value value = 1;
- Specified by:
hasValue
in interfaceExprValueOrBuilder
- Returns:
- Whether the value field is set.
-
getValue
public Value getValue()
.cel.expr.Value value = 1;
- Specified by:
getValue
in interfaceExprValueOrBuilder
- Returns:
- The value.
-
setValue
public ExprValue.Builder setValue(Value value)
.cel.expr.Value value = 1;
-
setValue
public ExprValue.Builder setValue(Value.Builder builderForValue)
.cel.expr.Value value = 1;
-
mergeValue
public ExprValue.Builder mergeValue(Value value)
.cel.expr.Value value = 1;
-
clearValue
public ExprValue.Builder clearValue()
.cel.expr.Value value = 1;
-
getValueBuilder
public Value.Builder getValueBuilder()
.cel.expr.Value value = 1;
-
getValueOrBuilder
public ValueOrBuilder getValueOrBuilder()
.cel.expr.Value value = 1;
- Specified by:
getValueOrBuilder
in interfaceExprValueOrBuilder
-
hasError
public boolean hasError()
The set of errors in the critical path of evaluation. Only errors in the critical path are included. For example, `(<error1> || true) && <error2>` will only result in `<error2>`, while `<error1> || <error2>` will result in both `<error1>` and `<error2>`. Errors cause by the presence of other errors are not included in the set. For example `<error1>.foo`, `foo(<error1>)`, and `<error1> + 1` will only result in `<error1>`. Multiple errors *might* be included when evaluation could result in different errors. For example `<error1> + <error2>` and `foo(<error1>, <error2>)` may result in `<error1>`, `<error2>` or both. The exact subset of errors included for this case is unspecified and depends on the implementation details of the evaluator.
.cel.expr.ErrorSet error = 2;
- Specified by:
hasError
in interfaceExprValueOrBuilder
- Returns:
- Whether the error field is set.
-
getError
public ErrorSet getError()
The set of errors in the critical path of evaluation. Only errors in the critical path are included. For example, `(<error1> || true) && <error2>` will only result in `<error2>`, while `<error1> || <error2>` will result in both `<error1>` and `<error2>`. Errors cause by the presence of other errors are not included in the set. For example `<error1>.foo`, `foo(<error1>)`, and `<error1> + 1` will only result in `<error1>`. Multiple errors *might* be included when evaluation could result in different errors. For example `<error1> + <error2>` and `foo(<error1>, <error2>)` may result in `<error1>`, `<error2>` or both. The exact subset of errors included for this case is unspecified and depends on the implementation details of the evaluator.
.cel.expr.ErrorSet error = 2;
- Specified by:
getError
in interfaceExprValueOrBuilder
- Returns:
- The error.
-
setError
public ExprValue.Builder setError(ErrorSet value)
The set of errors in the critical path of evaluation. Only errors in the critical path are included. For example, `(<error1> || true) && <error2>` will only result in `<error2>`, while `<error1> || <error2>` will result in both `<error1>` and `<error2>`. Errors cause by the presence of other errors are not included in the set. For example `<error1>.foo`, `foo(<error1>)`, and `<error1> + 1` will only result in `<error1>`. Multiple errors *might* be included when evaluation could result in different errors. For example `<error1> + <error2>` and `foo(<error1>, <error2>)` may result in `<error1>`, `<error2>` or both. The exact subset of errors included for this case is unspecified and depends on the implementation details of the evaluator.
.cel.expr.ErrorSet error = 2;
-
setError
public ExprValue.Builder setError(ErrorSet.Builder builderForValue)
The set of errors in the critical path of evaluation. Only errors in the critical path are included. For example, `(<error1> || true) && <error2>` will only result in `<error2>`, while `<error1> || <error2>` will result in both `<error1>` and `<error2>`. Errors cause by the presence of other errors are not included in the set. For example `<error1>.foo`, `foo(<error1>)`, and `<error1> + 1` will only result in `<error1>`. Multiple errors *might* be included when evaluation could result in different errors. For example `<error1> + <error2>` and `foo(<error1>, <error2>)` may result in `<error1>`, `<error2>` or both. The exact subset of errors included for this case is unspecified and depends on the implementation details of the evaluator.
.cel.expr.ErrorSet error = 2;
-
mergeError
public ExprValue.Builder mergeError(ErrorSet value)
The set of errors in the critical path of evaluation. Only errors in the critical path are included. For example, `(<error1> || true) && <error2>` will only result in `<error2>`, while `<error1> || <error2>` will result in both `<error1>` and `<error2>`. Errors cause by the presence of other errors are not included in the set. For example `<error1>.foo`, `foo(<error1>)`, and `<error1> + 1` will only result in `<error1>`. Multiple errors *might* be included when evaluation could result in different errors. For example `<error1> + <error2>` and `foo(<error1>, <error2>)` may result in `<error1>`, `<error2>` or both. The exact subset of errors included for this case is unspecified and depends on the implementation details of the evaluator.
.cel.expr.ErrorSet error = 2;
-
clearError
public ExprValue.Builder clearError()
The set of errors in the critical path of evaluation. Only errors in the critical path are included. For example, `(<error1> || true) && <error2>` will only result in `<error2>`, while `<error1> || <error2>` will result in both `<error1>` and `<error2>`. Errors cause by the presence of other errors are not included in the set. For example `<error1>.foo`, `foo(<error1>)`, and `<error1> + 1` will only result in `<error1>`. Multiple errors *might* be included when evaluation could result in different errors. For example `<error1> + <error2>` and `foo(<error1>, <error2>)` may result in `<error1>`, `<error2>` or both. The exact subset of errors included for this case is unspecified and depends on the implementation details of the evaluator.
.cel.expr.ErrorSet error = 2;
-
getErrorBuilder
public ErrorSet.Builder getErrorBuilder()
The set of errors in the critical path of evaluation. Only errors in the critical path are included. For example, `(<error1> || true) && <error2>` will only result in `<error2>`, while `<error1> || <error2>` will result in both `<error1>` and `<error2>`. Errors cause by the presence of other errors are not included in the set. For example `<error1>.foo`, `foo(<error1>)`, and `<error1> + 1` will only result in `<error1>`. Multiple errors *might* be included when evaluation could result in different errors. For example `<error1> + <error2>` and `foo(<error1>, <error2>)` may result in `<error1>`, `<error2>` or both. The exact subset of errors included for this case is unspecified and depends on the implementation details of the evaluator.
.cel.expr.ErrorSet error = 2;
-
getErrorOrBuilder
public ErrorSetOrBuilder getErrorOrBuilder()
The set of errors in the critical path of evaluation. Only errors in the critical path are included. For example, `(<error1> || true) && <error2>` will only result in `<error2>`, while `<error1> || <error2>` will result in both `<error1>` and `<error2>`. Errors cause by the presence of other errors are not included in the set. For example `<error1>.foo`, `foo(<error1>)`, and `<error1> + 1` will only result in `<error1>`. Multiple errors *might* be included when evaluation could result in different errors. For example `<error1> + <error2>` and `foo(<error1>, <error2>)` may result in `<error1>`, `<error2>` or both. The exact subset of errors included for this case is unspecified and depends on the implementation details of the evaluator.
.cel.expr.ErrorSet error = 2;
- Specified by:
getErrorOrBuilder
in interfaceExprValueOrBuilder
-
hasUnknown
public boolean hasUnknown()
The set of unknowns in the critical path of evaluation. Unknown behaves identically to Error with regards to propagation. Specifically, only unknowns in the critical path are included, unknowns caused by the presence of other unknowns are not included, and multiple unknowns *might* be included when evaluation could result in different unknowns. For example: (<unknown[1]> || true) && <unknown[2]> -> <unknown[2]> <unknown[1]> || <unknown[2]> -> <unknown[1,2]> <unknown[1]>.foo -> <unknown[1]> foo(<unknown[1]>) -> <unknown[1]> <unknown[1]> + <unknown[2]> -> <unknown[1]> or <unknown[2[> Unknown takes precedence over Error in cases where a `Value` can short circuit the result: <error> || <unknown> -> <unknown> <error> && <unknown> -> <unknown> Errors take precedence in all other cases: <unknown> + <error> -> <error> foo(<unknown>, <error>) -> <error>
.cel.expr.UnknownSet unknown = 3;
- Specified by:
hasUnknown
in interfaceExprValueOrBuilder
- Returns:
- Whether the unknown field is set.
-
getUnknown
public UnknownSet getUnknown()
The set of unknowns in the critical path of evaluation. Unknown behaves identically to Error with regards to propagation. Specifically, only unknowns in the critical path are included, unknowns caused by the presence of other unknowns are not included, and multiple unknowns *might* be included when evaluation could result in different unknowns. For example: (<unknown[1]> || true) && <unknown[2]> -> <unknown[2]> <unknown[1]> || <unknown[2]> -> <unknown[1,2]> <unknown[1]>.foo -> <unknown[1]> foo(<unknown[1]>) -> <unknown[1]> <unknown[1]> + <unknown[2]> -> <unknown[1]> or <unknown[2[> Unknown takes precedence over Error in cases where a `Value` can short circuit the result: <error> || <unknown> -> <unknown> <error> && <unknown> -> <unknown> Errors take precedence in all other cases: <unknown> + <error> -> <error> foo(<unknown>, <error>) -> <error>
.cel.expr.UnknownSet unknown = 3;
- Specified by:
getUnknown
in interfaceExprValueOrBuilder
- Returns:
- The unknown.
-
setUnknown
public ExprValue.Builder setUnknown(UnknownSet value)
The set of unknowns in the critical path of evaluation. Unknown behaves identically to Error with regards to propagation. Specifically, only unknowns in the critical path are included, unknowns caused by the presence of other unknowns are not included, and multiple unknowns *might* be included when evaluation could result in different unknowns. For example: (<unknown[1]> || true) && <unknown[2]> -> <unknown[2]> <unknown[1]> || <unknown[2]> -> <unknown[1,2]> <unknown[1]>.foo -> <unknown[1]> foo(<unknown[1]>) -> <unknown[1]> <unknown[1]> + <unknown[2]> -> <unknown[1]> or <unknown[2[> Unknown takes precedence over Error in cases where a `Value` can short circuit the result: <error> || <unknown> -> <unknown> <error> && <unknown> -> <unknown> Errors take precedence in all other cases: <unknown> + <error> -> <error> foo(<unknown>, <error>) -> <error>
.cel.expr.UnknownSet unknown = 3;
-
setUnknown
public ExprValue.Builder setUnknown(UnknownSet.Builder builderForValue)
The set of unknowns in the critical path of evaluation. Unknown behaves identically to Error with regards to propagation. Specifically, only unknowns in the critical path are included, unknowns caused by the presence of other unknowns are not included, and multiple unknowns *might* be included when evaluation could result in different unknowns. For example: (<unknown[1]> || true) && <unknown[2]> -> <unknown[2]> <unknown[1]> || <unknown[2]> -> <unknown[1,2]> <unknown[1]>.foo -> <unknown[1]> foo(<unknown[1]>) -> <unknown[1]> <unknown[1]> + <unknown[2]> -> <unknown[1]> or <unknown[2[> Unknown takes precedence over Error in cases where a `Value` can short circuit the result: <error> || <unknown> -> <unknown> <error> && <unknown> -> <unknown> Errors take precedence in all other cases: <unknown> + <error> -> <error> foo(<unknown>, <error>) -> <error>
.cel.expr.UnknownSet unknown = 3;
-
mergeUnknown
public ExprValue.Builder mergeUnknown(UnknownSet value)
The set of unknowns in the critical path of evaluation. Unknown behaves identically to Error with regards to propagation. Specifically, only unknowns in the critical path are included, unknowns caused by the presence of other unknowns are not included, and multiple unknowns *might* be included when evaluation could result in different unknowns. For example: (<unknown[1]> || true) && <unknown[2]> -> <unknown[2]> <unknown[1]> || <unknown[2]> -> <unknown[1,2]> <unknown[1]>.foo -> <unknown[1]> foo(<unknown[1]>) -> <unknown[1]> <unknown[1]> + <unknown[2]> -> <unknown[1]> or <unknown[2[> Unknown takes precedence over Error in cases where a `Value` can short circuit the result: <error> || <unknown> -> <unknown> <error> && <unknown> -> <unknown> Errors take precedence in all other cases: <unknown> + <error> -> <error> foo(<unknown>, <error>) -> <error>
.cel.expr.UnknownSet unknown = 3;
-
clearUnknown
public ExprValue.Builder clearUnknown()
The set of unknowns in the critical path of evaluation. Unknown behaves identically to Error with regards to propagation. Specifically, only unknowns in the critical path are included, unknowns caused by the presence of other unknowns are not included, and multiple unknowns *might* be included when evaluation could result in different unknowns. For example: (<unknown[1]> || true) && <unknown[2]> -> <unknown[2]> <unknown[1]> || <unknown[2]> -> <unknown[1,2]> <unknown[1]>.foo -> <unknown[1]> foo(<unknown[1]>) -> <unknown[1]> <unknown[1]> + <unknown[2]> -> <unknown[1]> or <unknown[2[> Unknown takes precedence over Error in cases where a `Value` can short circuit the result: <error> || <unknown> -> <unknown> <error> && <unknown> -> <unknown> Errors take precedence in all other cases: <unknown> + <error> -> <error> foo(<unknown>, <error>) -> <error>
.cel.expr.UnknownSet unknown = 3;
-
getUnknownBuilder
public UnknownSet.Builder getUnknownBuilder()
The set of unknowns in the critical path of evaluation. Unknown behaves identically to Error with regards to propagation. Specifically, only unknowns in the critical path are included, unknowns caused by the presence of other unknowns are not included, and multiple unknowns *might* be included when evaluation could result in different unknowns. For example: (<unknown[1]> || true) && <unknown[2]> -> <unknown[2]> <unknown[1]> || <unknown[2]> -> <unknown[1,2]> <unknown[1]>.foo -> <unknown[1]> foo(<unknown[1]>) -> <unknown[1]> <unknown[1]> + <unknown[2]> -> <unknown[1]> or <unknown[2[> Unknown takes precedence over Error in cases where a `Value` can short circuit the result: <error> || <unknown> -> <unknown> <error> && <unknown> -> <unknown> Errors take precedence in all other cases: <unknown> + <error> -> <error> foo(<unknown>, <error>) -> <error>
.cel.expr.UnknownSet unknown = 3;
-
getUnknownOrBuilder
public UnknownSetOrBuilder getUnknownOrBuilder()
The set of unknowns in the critical path of evaluation. Unknown behaves identically to Error with regards to propagation. Specifically, only unknowns in the critical path are included, unknowns caused by the presence of other unknowns are not included, and multiple unknowns *might* be included when evaluation could result in different unknowns. For example: (<unknown[1]> || true) && <unknown[2]> -> <unknown[2]> <unknown[1]> || <unknown[2]> -> <unknown[1,2]> <unknown[1]>.foo -> <unknown[1]> foo(<unknown[1]>) -> <unknown[1]> <unknown[1]> + <unknown[2]> -> <unknown[1]> or <unknown[2[> Unknown takes precedence over Error in cases where a `Value` can short circuit the result: <error> || <unknown> -> <unknown> <error> && <unknown> -> <unknown> Errors take precedence in all other cases: <unknown> + <error> -> <error> foo(<unknown>, <error>) -> <error>
.cel.expr.UnknownSet unknown = 3;
- Specified by:
getUnknownOrBuilder
in interfaceExprValueOrBuilder
-
setUnknownFields
public final ExprValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
mergeUnknownFields
public final ExprValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
-
-