Package dev.cel.expr

Class Value.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ValueOrBuilder, java.lang.Cloneable
    Enclosing class:
    Value

    public static final class Value.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
    implements ValueOrBuilder
     Represents a CEL value.
     This is similar to `google.protobuf.Value`, but can represent CEL's full
     range of values.
     
    Protobuf type cel.expr.Value
    • Method Detail

      • 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<Value.Builder>
      • clear

        public Value.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<Value.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<Value.Builder>
      • getDefaultInstanceForType

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

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

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

        public Value.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<Value.Builder>
      • setField

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

        public Value.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<Value.Builder>
      • clearOneof

        public Value.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<Value.Builder>
      • setRepeatedField

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

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

        public Value.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<Value.Builder>
      • isInitialized

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

        public Value.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                throws java.io.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<Value.Builder>
        Throws:
        java.io.IOException
      • hasNullValue

        public boolean hasNullValue()
         Null value.
         
        .google.protobuf.NullValue null_value = 1;
        Specified by:
        hasNullValue in interface ValueOrBuilder
        Returns:
        Whether the nullValue field is set.
      • getNullValueValue

        public int getNullValueValue()
         Null value.
         
        .google.protobuf.NullValue null_value = 1;
        Specified by:
        getNullValueValue in interface ValueOrBuilder
        Returns:
        The enum numeric value on the wire for nullValue.
      • setNullValueValue

        public Value.Builder setNullValueValue​(int value)
         Null value.
         
        .google.protobuf.NullValue null_value = 1;
        Parameters:
        value - The enum numeric value on the wire for nullValue to set.
        Returns:
        This builder for chaining.
      • getNullValue

        public com.google.protobuf.NullValue getNullValue()
         Null value.
         
        .google.protobuf.NullValue null_value = 1;
        Specified by:
        getNullValue in interface ValueOrBuilder
        Returns:
        The nullValue.
      • setNullValue

        public Value.Builder setNullValue​(com.google.protobuf.NullValue value)
         Null value.
         
        .google.protobuf.NullValue null_value = 1;
        Parameters:
        value - The nullValue to set.
        Returns:
        This builder for chaining.
      • clearNullValue

        public Value.Builder clearNullValue()
         Null value.
         
        .google.protobuf.NullValue null_value = 1;
        Returns:
        This builder for chaining.
      • hasBoolValue

        public boolean hasBoolValue()
         Boolean value.
         
        bool bool_value = 2;
        Specified by:
        hasBoolValue in interface ValueOrBuilder
        Returns:
        Whether the boolValue field is set.
      • getBoolValue

        public boolean getBoolValue()
         Boolean value.
         
        bool bool_value = 2;
        Specified by:
        getBoolValue in interface ValueOrBuilder
        Returns:
        The boolValue.
      • setBoolValue

        public Value.Builder setBoolValue​(boolean value)
         Boolean value.
         
        bool bool_value = 2;
        Parameters:
        value - The boolValue to set.
        Returns:
        This builder for chaining.
      • clearBoolValue

        public Value.Builder clearBoolValue()
         Boolean value.
         
        bool bool_value = 2;
        Returns:
        This builder for chaining.
      • hasInt64Value

        public boolean hasInt64Value()
         Signed integer value.
         
        int64 int64_value = 3;
        Specified by:
        hasInt64Value in interface ValueOrBuilder
        Returns:
        Whether the int64Value field is set.
      • getInt64Value

        public long getInt64Value()
         Signed integer value.
         
        int64 int64_value = 3;
        Specified by:
        getInt64Value in interface ValueOrBuilder
        Returns:
        The int64Value.
      • setInt64Value

        public Value.Builder setInt64Value​(long value)
         Signed integer value.
         
        int64 int64_value = 3;
        Parameters:
        value - The int64Value to set.
        Returns:
        This builder for chaining.
      • clearInt64Value

        public Value.Builder clearInt64Value()
         Signed integer value.
         
        int64 int64_value = 3;
        Returns:
        This builder for chaining.
      • hasUint64Value

        public boolean hasUint64Value()
         Unsigned integer value.
         
        uint64 uint64_value = 4;
        Specified by:
        hasUint64Value in interface ValueOrBuilder
        Returns:
        Whether the uint64Value field is set.
      • getUint64Value

        public long getUint64Value()
         Unsigned integer value.
         
        uint64 uint64_value = 4;
        Specified by:
        getUint64Value in interface ValueOrBuilder
        Returns:
        The uint64Value.
      • setUint64Value

        public Value.Builder setUint64Value​(long value)
         Unsigned integer value.
         
        uint64 uint64_value = 4;
        Parameters:
        value - The uint64Value to set.
        Returns:
        This builder for chaining.
      • clearUint64Value

        public Value.Builder clearUint64Value()
         Unsigned integer value.
         
        uint64 uint64_value = 4;
        Returns:
        This builder for chaining.
      • hasDoubleValue

        public boolean hasDoubleValue()
         Floating point value.
         
        double double_value = 5;
        Specified by:
        hasDoubleValue in interface ValueOrBuilder
        Returns:
        Whether the doubleValue field is set.
      • getDoubleValue

        public double getDoubleValue()
         Floating point value.
         
        double double_value = 5;
        Specified by:
        getDoubleValue in interface ValueOrBuilder
        Returns:
        The doubleValue.
      • setDoubleValue

        public Value.Builder setDoubleValue​(double value)
         Floating point value.
         
        double double_value = 5;
        Parameters:
        value - The doubleValue to set.
        Returns:
        This builder for chaining.
      • clearDoubleValue

        public Value.Builder clearDoubleValue()
         Floating point value.
         
        double double_value = 5;
        Returns:
        This builder for chaining.
      • hasStringValue

        public boolean hasStringValue()
         UTF-8 string value.
         
        string string_value = 6;
        Specified by:
        hasStringValue in interface ValueOrBuilder
        Returns:
        Whether the stringValue field is set.
      • getStringValue

        public java.lang.String getStringValue()
         UTF-8 string value.
         
        string string_value = 6;
        Specified by:
        getStringValue in interface ValueOrBuilder
        Returns:
        The stringValue.
      • getStringValueBytes

        public com.google.protobuf.ByteString getStringValueBytes()
         UTF-8 string value.
         
        string string_value = 6;
        Specified by:
        getStringValueBytes in interface ValueOrBuilder
        Returns:
        The bytes for stringValue.
      • setStringValue

        public Value.Builder setStringValue​(java.lang.String value)
         UTF-8 string value.
         
        string string_value = 6;
        Parameters:
        value - The stringValue to set.
        Returns:
        This builder for chaining.
      • clearStringValue

        public Value.Builder clearStringValue()
         UTF-8 string value.
         
        string string_value = 6;
        Returns:
        This builder for chaining.
      • setStringValueBytes

        public Value.Builder setStringValueBytes​(com.google.protobuf.ByteString value)
         UTF-8 string value.
         
        string string_value = 6;
        Parameters:
        value - The bytes for stringValue to set.
        Returns:
        This builder for chaining.
      • hasBytesValue

        public boolean hasBytesValue()
         Byte string value.
         
        bytes bytes_value = 7;
        Specified by:
        hasBytesValue in interface ValueOrBuilder
        Returns:
        Whether the bytesValue field is set.
      • getBytesValue

        public com.google.protobuf.ByteString getBytesValue()
         Byte string value.
         
        bytes bytes_value = 7;
        Specified by:
        getBytesValue in interface ValueOrBuilder
        Returns:
        The bytesValue.
      • setBytesValue

        public Value.Builder setBytesValue​(com.google.protobuf.ByteString value)
         Byte string value.
         
        bytes bytes_value = 7;
        Parameters:
        value - The bytesValue to set.
        Returns:
        This builder for chaining.
      • clearBytesValue

        public Value.Builder clearBytesValue()
         Byte string value.
         
        bytes bytes_value = 7;
        Returns:
        This builder for chaining.
      • hasEnumValue

        public boolean hasEnumValue()
         An enum value.
         
        .cel.expr.EnumValue enum_value = 9;
        Specified by:
        hasEnumValue in interface ValueOrBuilder
        Returns:
        Whether the enumValue field is set.
      • getEnumValue

        public EnumValue getEnumValue()
         An enum value.
         
        .cel.expr.EnumValue enum_value = 9;
        Specified by:
        getEnumValue in interface ValueOrBuilder
        Returns:
        The enumValue.
      • setEnumValue

        public Value.Builder setEnumValue​(EnumValue value)
         An enum value.
         
        .cel.expr.EnumValue enum_value = 9;
      • mergeEnumValue

        public Value.Builder mergeEnumValue​(EnumValue value)
         An enum value.
         
        .cel.expr.EnumValue enum_value = 9;
      • clearEnumValue

        public Value.Builder clearEnumValue()
         An enum value.
         
        .cel.expr.EnumValue enum_value = 9;
      • getEnumValueBuilder

        public EnumValue.Builder getEnumValueBuilder()
         An enum value.
         
        .cel.expr.EnumValue enum_value = 9;
      • hasObjectValue

        public boolean hasObjectValue()
         The proto message backing an object value.
         
        .google.protobuf.Any object_value = 10;
        Specified by:
        hasObjectValue in interface ValueOrBuilder
        Returns:
        Whether the objectValue field is set.
      • getObjectValue

        public com.google.protobuf.Any getObjectValue()
         The proto message backing an object value.
         
        .google.protobuf.Any object_value = 10;
        Specified by:
        getObjectValue in interface ValueOrBuilder
        Returns:
        The objectValue.
      • setObjectValue

        public Value.Builder setObjectValue​(com.google.protobuf.Any value)
         The proto message backing an object value.
         
        .google.protobuf.Any object_value = 10;
      • setObjectValue

        public Value.Builder setObjectValue​(com.google.protobuf.Any.Builder builderForValue)
         The proto message backing an object value.
         
        .google.protobuf.Any object_value = 10;
      • mergeObjectValue

        public Value.Builder mergeObjectValue​(com.google.protobuf.Any value)
         The proto message backing an object value.
         
        .google.protobuf.Any object_value = 10;
      • clearObjectValue

        public Value.Builder clearObjectValue()
         The proto message backing an object value.
         
        .google.protobuf.Any object_value = 10;
      • getObjectValueBuilder

        public com.google.protobuf.Any.Builder getObjectValueBuilder()
         The proto message backing an object value.
         
        .google.protobuf.Any object_value = 10;
      • getObjectValueOrBuilder

        public com.google.protobuf.AnyOrBuilder getObjectValueOrBuilder()
         The proto message backing an object value.
         
        .google.protobuf.Any object_value = 10;
        Specified by:
        getObjectValueOrBuilder in interface ValueOrBuilder
      • hasMapValue

        public boolean hasMapValue()
         Map value.
         
        .cel.expr.MapValue map_value = 11;
        Specified by:
        hasMapValue in interface ValueOrBuilder
        Returns:
        Whether the mapValue field is set.
      • getMapValue

        public MapValue getMapValue()
         Map value.
         
        .cel.expr.MapValue map_value = 11;
        Specified by:
        getMapValue in interface ValueOrBuilder
        Returns:
        The mapValue.
      • setMapValue

        public Value.Builder setMapValue​(MapValue value)
         Map value.
         
        .cel.expr.MapValue map_value = 11;
      • mergeMapValue

        public Value.Builder mergeMapValue​(MapValue value)
         Map value.
         
        .cel.expr.MapValue map_value = 11;
      • clearMapValue

        public Value.Builder clearMapValue()
         Map value.
         
        .cel.expr.MapValue map_value = 11;
      • getMapValueBuilder

        public MapValue.Builder getMapValueBuilder()
         Map value.
         
        .cel.expr.MapValue map_value = 11;
      • hasListValue

        public boolean hasListValue()
         List value.
         
        .cel.expr.ListValue list_value = 12;
        Specified by:
        hasListValue in interface ValueOrBuilder
        Returns:
        Whether the listValue field is set.
      • getListValue

        public ListValue getListValue()
         List value.
         
        .cel.expr.ListValue list_value = 12;
        Specified by:
        getListValue in interface ValueOrBuilder
        Returns:
        The listValue.
      • setListValue

        public Value.Builder setListValue​(ListValue value)
         List value.
         
        .cel.expr.ListValue list_value = 12;
      • mergeListValue

        public Value.Builder mergeListValue​(ListValue value)
         List value.
         
        .cel.expr.ListValue list_value = 12;
      • clearListValue

        public Value.Builder clearListValue()
         List value.
         
        .cel.expr.ListValue list_value = 12;
      • getListValueBuilder

        public ListValue.Builder getListValueBuilder()
         List value.
         
        .cel.expr.ListValue list_value = 12;
      • hasTypeValue

        public boolean hasTypeValue()
         Type value.
         
        string type_value = 15;
        Specified by:
        hasTypeValue in interface ValueOrBuilder
        Returns:
        Whether the typeValue field is set.
      • getTypeValue

        public java.lang.String getTypeValue()
         Type value.
         
        string type_value = 15;
        Specified by:
        getTypeValue in interface ValueOrBuilder
        Returns:
        The typeValue.
      • getTypeValueBytes

        public com.google.protobuf.ByteString getTypeValueBytes()
         Type value.
         
        string type_value = 15;
        Specified by:
        getTypeValueBytes in interface ValueOrBuilder
        Returns:
        The bytes for typeValue.
      • setTypeValue

        public Value.Builder setTypeValue​(java.lang.String value)
         Type value.
         
        string type_value = 15;
        Parameters:
        value - The typeValue to set.
        Returns:
        This builder for chaining.
      • clearTypeValue

        public Value.Builder clearTypeValue()
         Type value.
         
        string type_value = 15;
        Returns:
        This builder for chaining.
      • setTypeValueBytes

        public Value.Builder setTypeValueBytes​(com.google.protobuf.ByteString value)
         Type value.
         
        string type_value = 15;
        Parameters:
        value - The bytes for typeValue to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Value.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<Value.Builder>
      • mergeUnknownFields

        public final Value.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<Value.Builder>