Package dev.cel.expr
Class ExprValue.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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 ExprValuebuild()ExprValuebuildPartial()ExprValue.Builderclear()ExprValue.BuilderclearError()The set of errors in the critical path of evaluation.ExprValue.BuilderclearKind()ExprValue.BuilderclearUnknown()The set of unknowns in the critical path of evaluation.ExprValue.BuilderclearValue().cel.expr.Value value = 1;ExprValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ErrorSetgetError()The set of errors in the critical path of evaluation.ErrorSet.BuildergetErrorBuilder()The set of errors in the critical path of evaluation.ErrorSetOrBuildergetErrorOrBuilder()The set of errors in the critical path of evaluation.ExprValue.KindCasegetKindCase()UnknownSetgetUnknown()The set of unknowns in the critical path of evaluation.UnknownSet.BuildergetUnknownBuilder()The set of unknowns in the critical path of evaluation.UnknownSetOrBuildergetUnknownOrBuilder()The set of unknowns in the critical path of evaluation.ValuegetValue().cel.expr.Value value = 1;Value.BuildergetValueBuilder().cel.expr.Value value = 1;ValueOrBuildergetValueOrBuilder().cel.expr.Value value = 1;booleanhasError()The set of errors in the critical path of evaluation.booleanhasUnknown()The set of unknowns in the critical path of evaluation.booleanhasValue().cel.expr.Value value = 1;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ExprValue.BuildermergeError(ErrorSet value)The set of errors in the critical path of evaluation.ExprValue.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ExprValue.BuildermergeFrom(com.google.protobuf.Message other)ExprValue.BuildermergeFrom(ExprValue other)ExprValue.BuildermergeUnknown(UnknownSet value)The set of unknowns in the critical path of evaluation.ExprValue.BuildermergeValue(Value value).cel.expr.Value value = 1;ExprValue.BuildersetError(ErrorSet value)The set of errors in the critical path of evaluation.ExprValue.BuildersetError(ErrorSet.Builder builderForValue)The set of errors in the critical path of evaluation.ExprValue.BuildersetUnknown(UnknownSet value)The set of unknowns in the critical path of evaluation.ExprValue.BuildersetUnknown(UnknownSet.Builder builderForValue)The set of unknowns in the critical path of evaluation.ExprValue.BuildersetValue(Value value).cel.expr.Value value = 1;ExprValue.BuildersetValue(Value.Builder builderForValue).cel.expr.Value value = 1;-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ExprValue.Builder>
-
clear
public ExprValue.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ExprValue.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ExprValue.Builder>
-
getDefaultInstanceForType
public ExprValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExprValue build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExprValue buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ExprValue.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExprValue.Builder>
-
mergeFrom
public ExprValue.Builder mergeFrom(ExprValue other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExprValue.Builder>
-
mergeFrom
public ExprValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExprValue.Builder>- Throws:
java.io.IOException
-
getKindCase
public ExprValue.KindCase getKindCase()
- Specified by:
getKindCasein interfaceExprValueOrBuilder
-
clearKind
public ExprValue.Builder clearKind()
-
hasValue
public boolean hasValue()
.cel.expr.Value value = 1;- Specified by:
hasValuein interfaceExprValueOrBuilder- Returns:
- Whether the value field is set.
-
getValue
public Value getValue()
.cel.expr.Value value = 1;- Specified by:
getValuein 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:
getValueOrBuilderin 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:
hasErrorin 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:
getErrorin 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:
getErrorOrBuilderin 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:
hasUnknownin 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:
getUnknownin 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:
getUnknownOrBuilderin interfaceExprValueOrBuilder
-
-