Package dev.cel.expr

Class ExprValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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, 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 type cel.expr.ExprValue
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
    • clear

      public ExprValue.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
    • getDefaultInstanceForType

      public ExprValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ExprValue build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ExprValue buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public ExprValue.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
    • setField

      public ExprValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
    • clearField

      public ExprValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
    • clearOneof

      public ExprValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
    • setRepeatedField

      public ExprValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
    • addRepeatedField

      public ExprValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
    • mergeFrom

      public ExprValue.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExprValue.Builder>
    • mergeFrom

      public ExprValue.Builder mergeFrom(ExprValue other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
    • mergeFrom

      public ExprValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExprValue.Builder>
      Throws:
      IOException
    • getKindCase

      public ExprValue.KindCase getKindCase()
      Specified by:
      getKindCase in interface ExprValueOrBuilder
    • clearKind

      public ExprValue.Builder clearKind()
    • hasValue

      public boolean hasValue()
      .cel.expr.Value value = 1;
      Specified by:
      hasValue in interface ExprValueOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public Value getValue()
      .cel.expr.Value value = 1;
      Specified by:
      getValue in interface ExprValueOrBuilder
      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 interface ExprValueOrBuilder
    • 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 interface ExprValueOrBuilder
      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 interface ExprValueOrBuilder
      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 interface ExprValueOrBuilder
    • 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 interface ExprValueOrBuilder
      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 interface ExprValueOrBuilder
      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 interface ExprValueOrBuilder
    • setUnknownFields

      public final ExprValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>
    • mergeUnknownFields

      public final ExprValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExprValue.Builder>