Class Constant.Builder

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

    public static final class Constant.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Constant.Builder>
    implements ConstantOrBuilder
     Represents a primitive literal.
    
     Named 'Constant' here for backwards compatibility.
    
     This is similar as the primitives supported in the well-known type
     `google.protobuf.Value`, but richer so it can represent CEL's full range of
     primitives.
    
     Lists and structs are not included as constants as these aggregate types may
     contain [Expr][google.api.expr.v1alpha1.Expr] elements which require evaluation and are thus not constant.
    
     Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
     `true`, `null`.
     
    Protobuf type google.api.expr.v1alpha1.Constant
    • Field Detail

      • constantKindCase_

        private int constantKindCase_
      • constantKind_

        private java.lang.Object constantKind_
      • bitField0_

        private int bitField0_
      • durationValueBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> durationValueBuilder_
      • timestampValueBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,​com.google.protobuf.Timestamp.Builder,​com.google.protobuf.TimestampOrBuilder> timestampValueBuilder_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

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

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

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

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

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

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

        private void buildPartial0​(Constant result)
      • buildPartialOneofs

        private void buildPartialOneofs​(Constant result)
      • mergeFrom

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

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

        public Constant.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<Constant.Builder>
        Throws:
        java.io.IOException
      • hasNullValue

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

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

        public Constant.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 ConstantOrBuilder
        Returns:
        The nullValue.
      • setNullValue

        public Constant.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 Constant.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 ConstantOrBuilder
        Returns:
        Whether the boolValue field is set.
      • getBoolValue

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public Constant.Builder clearBytesValue()
         bytes value.
         
        bytes bytes_value = 7;
        Returns:
        This builder for chaining.
      • hasDurationValue

        @Deprecated
        public boolean hasDurationValue()
        Deprecated.
        google.api.expr.v1alpha1.Constant.duration_value is deprecated. See google/api/expr/v1alpha1/syntax.proto;l=283
         protobuf.Duration value.
        
         Deprecated: duration is no longer considered a builtin cel type.
         
        .google.protobuf.Duration duration_value = 8 [deprecated = true];
        Specified by:
        hasDurationValue in interface ConstantOrBuilder
        Returns:
        Whether the durationValue field is set.
      • getDurationValue

        @Deprecated
        public com.google.protobuf.Duration getDurationValue()
        Deprecated.
        google.api.expr.v1alpha1.Constant.duration_value is deprecated. See google/api/expr/v1alpha1/syntax.proto;l=283
         protobuf.Duration value.
        
         Deprecated: duration is no longer considered a builtin cel type.
         
        .google.protobuf.Duration duration_value = 8 [deprecated = true];
        Specified by:
        getDurationValue in interface ConstantOrBuilder
        Returns:
        The durationValue.
      • setDurationValue

        @Deprecated
        public Constant.Builder setDurationValue​(com.google.protobuf.Duration value)
        Deprecated.
         protobuf.Duration value.
        
         Deprecated: duration is no longer considered a builtin cel type.
         
        .google.protobuf.Duration duration_value = 8 [deprecated = true];
      • setDurationValue

        @Deprecated
        public Constant.Builder setDurationValue​(com.google.protobuf.Duration.Builder builderForValue)
        Deprecated.
         protobuf.Duration value.
        
         Deprecated: duration is no longer considered a builtin cel type.
         
        .google.protobuf.Duration duration_value = 8 [deprecated = true];
      • mergeDurationValue

        @Deprecated
        public Constant.Builder mergeDurationValue​(com.google.protobuf.Duration value)
        Deprecated.
         protobuf.Duration value.
        
         Deprecated: duration is no longer considered a builtin cel type.
         
        .google.protobuf.Duration duration_value = 8 [deprecated = true];
      • clearDurationValue

        @Deprecated
        public Constant.Builder clearDurationValue()
        Deprecated.
         protobuf.Duration value.
        
         Deprecated: duration is no longer considered a builtin cel type.
         
        .google.protobuf.Duration duration_value = 8 [deprecated = true];
      • getDurationValueBuilder

        @Deprecated
        public com.google.protobuf.Duration.Builder getDurationValueBuilder()
        Deprecated.
         protobuf.Duration value.
        
         Deprecated: duration is no longer considered a builtin cel type.
         
        .google.protobuf.Duration duration_value = 8 [deprecated = true];
      • getDurationValueOrBuilder

        @Deprecated
        public com.google.protobuf.DurationOrBuilder getDurationValueOrBuilder()
        Deprecated.
         protobuf.Duration value.
        
         Deprecated: duration is no longer considered a builtin cel type.
         
        .google.protobuf.Duration duration_value = 8 [deprecated = true];
        Specified by:
        getDurationValueOrBuilder in interface ConstantOrBuilder
      • getDurationValueFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> getDurationValueFieldBuilder()
         protobuf.Duration value.
        
         Deprecated: duration is no longer considered a builtin cel type.
         
        .google.protobuf.Duration duration_value = 8 [deprecated = true];
      • hasTimestampValue

        @Deprecated
        public boolean hasTimestampValue()
        Deprecated.
        google.api.expr.v1alpha1.Constant.timestamp_value is deprecated. See google/api/expr/v1alpha1/syntax.proto;l=288
         protobuf.Timestamp value.
        
         Deprecated: timestamp is no longer considered a builtin cel type.
         
        .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
        Specified by:
        hasTimestampValue in interface ConstantOrBuilder
        Returns:
        Whether the timestampValue field is set.
      • getTimestampValue

        @Deprecated
        public com.google.protobuf.Timestamp getTimestampValue()
        Deprecated.
        google.api.expr.v1alpha1.Constant.timestamp_value is deprecated. See google/api/expr/v1alpha1/syntax.proto;l=288
         protobuf.Timestamp value.
        
         Deprecated: timestamp is no longer considered a builtin cel type.
         
        .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
        Specified by:
        getTimestampValue in interface ConstantOrBuilder
        Returns:
        The timestampValue.
      • setTimestampValue

        @Deprecated
        public Constant.Builder setTimestampValue​(com.google.protobuf.Timestamp value)
        Deprecated.
         protobuf.Timestamp value.
        
         Deprecated: timestamp is no longer considered a builtin cel type.
         
        .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
      • setTimestampValue

        @Deprecated
        public Constant.Builder setTimestampValue​(com.google.protobuf.Timestamp.Builder builderForValue)
        Deprecated.
         protobuf.Timestamp value.
        
         Deprecated: timestamp is no longer considered a builtin cel type.
         
        .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
      • mergeTimestampValue

        @Deprecated
        public Constant.Builder mergeTimestampValue​(com.google.protobuf.Timestamp value)
        Deprecated.
         protobuf.Timestamp value.
        
         Deprecated: timestamp is no longer considered a builtin cel type.
         
        .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
      • clearTimestampValue

        @Deprecated
        public Constant.Builder clearTimestampValue()
        Deprecated.
         protobuf.Timestamp value.
        
         Deprecated: timestamp is no longer considered a builtin cel type.
         
        .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
      • getTimestampValueBuilder

        @Deprecated
        public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder()
        Deprecated.
         protobuf.Timestamp value.
        
         Deprecated: timestamp is no longer considered a builtin cel type.
         
        .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
      • getTimestampValueOrBuilder

        @Deprecated
        public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder()
        Deprecated.
         protobuf.Timestamp value.
        
         Deprecated: timestamp is no longer considered a builtin cel type.
         
        .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
        Specified by:
        getTimestampValueOrBuilder in interface ConstantOrBuilder
      • getTimestampValueFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,​com.google.protobuf.Timestamp.Builder,​com.google.protobuf.TimestampOrBuilder> getTimestampValueFieldBuilder()
         protobuf.Timestamp value.
        
         Deprecated: timestamp is no longer considered a builtin cel type.
         
        .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];