Class Generated.Toleration.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.TolerationOrBuilder
    Enclosing class:
    Generated.Toleration

    public static final class Generated.Toleration.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
    implements Generated.TolerationOrBuilder
     The pod this Toleration is attached to tolerates any taint that matches
     the triple <key,value,effect> using the matching operator <operator>.
     
    Protobuf type k8s.io.api.core.v1.Toleration
    • 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<Generated.Toleration.Builder>
      • clear

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

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

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

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

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

        public Generated.Toleration.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<Generated.Toleration.Builder>
      • clearField

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

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

        public Generated.Toleration.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<Generated.Toleration.Builder>
      • addRepeatedField

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

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

        public Generated.Toleration.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<Generated.Toleration.Builder>
        Throws:
        IOException
      • hasKey

        public boolean hasKey()
         Key is the taint key that the toleration applies to. Empty means match all taint keys.
         If the key is empty, operator must be Exists; this combination means to match all values and all keys.
         +optional
         
        optional string key = 1;
        Specified by:
        hasKey in interface Generated.TolerationOrBuilder
        Returns:
        Whether the key field is set.
      • getKey

        public String getKey()
         Key is the taint key that the toleration applies to. Empty means match all taint keys.
         If the key is empty, operator must be Exists; this combination means to match all values and all keys.
         +optional
         
        optional string key = 1;
        Specified by:
        getKey in interface Generated.TolerationOrBuilder
        Returns:
        The key.
      • getKeyBytes

        public com.google.protobuf.ByteString getKeyBytes()
         Key is the taint key that the toleration applies to. Empty means match all taint keys.
         If the key is empty, operator must be Exists; this combination means to match all values and all keys.
         +optional
         
        optional string key = 1;
        Specified by:
        getKeyBytes in interface Generated.TolerationOrBuilder
        Returns:
        The bytes for key.
      • setKey

        public Generated.Toleration.Builder setKey​(String value)
         Key is the taint key that the toleration applies to. Empty means match all taint keys.
         If the key is empty, operator must be Exists; this combination means to match all values and all keys.
         +optional
         
        optional string key = 1;
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • clearKey

        public Generated.Toleration.Builder clearKey()
         Key is the taint key that the toleration applies to. Empty means match all taint keys.
         If the key is empty, operator must be Exists; this combination means to match all values and all keys.
         +optional
         
        optional string key = 1;
        Returns:
        This builder for chaining.
      • setKeyBytes

        public Generated.Toleration.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         Key is the taint key that the toleration applies to. Empty means match all taint keys.
         If the key is empty, operator must be Exists; this combination means to match all values and all keys.
         +optional
         
        optional string key = 1;
        Parameters:
        value - The bytes for key to set.
        Returns:
        This builder for chaining.
      • hasOperator

        public boolean hasOperator()
         Operator represents a key's relationship to the value.
         Valid operators are Exists and Equal. Defaults to Equal.
         Exists is equivalent to wildcard for value, so that a pod can
         tolerate all taints of a particular category.
         +optional
         
        optional string operator = 2;
        Specified by:
        hasOperator in interface Generated.TolerationOrBuilder
        Returns:
        Whether the operator field is set.
      • getOperator

        public String getOperator()
         Operator represents a key's relationship to the value.
         Valid operators are Exists and Equal. Defaults to Equal.
         Exists is equivalent to wildcard for value, so that a pod can
         tolerate all taints of a particular category.
         +optional
         
        optional string operator = 2;
        Specified by:
        getOperator in interface Generated.TolerationOrBuilder
        Returns:
        The operator.
      • getOperatorBytes

        public com.google.protobuf.ByteString getOperatorBytes()
         Operator represents a key's relationship to the value.
         Valid operators are Exists and Equal. Defaults to Equal.
         Exists is equivalent to wildcard for value, so that a pod can
         tolerate all taints of a particular category.
         +optional
         
        optional string operator = 2;
        Specified by:
        getOperatorBytes in interface Generated.TolerationOrBuilder
        Returns:
        The bytes for operator.
      • setOperator

        public Generated.Toleration.Builder setOperator​(String value)
         Operator represents a key's relationship to the value.
         Valid operators are Exists and Equal. Defaults to Equal.
         Exists is equivalent to wildcard for value, so that a pod can
         tolerate all taints of a particular category.
         +optional
         
        optional string operator = 2;
        Parameters:
        value - The operator to set.
        Returns:
        This builder for chaining.
      • clearOperator

        public Generated.Toleration.Builder clearOperator()
         Operator represents a key's relationship to the value.
         Valid operators are Exists and Equal. Defaults to Equal.
         Exists is equivalent to wildcard for value, so that a pod can
         tolerate all taints of a particular category.
         +optional
         
        optional string operator = 2;
        Returns:
        This builder for chaining.
      • setOperatorBytes

        public Generated.Toleration.Builder setOperatorBytes​(com.google.protobuf.ByteString value)
         Operator represents a key's relationship to the value.
         Valid operators are Exists and Equal. Defaults to Equal.
         Exists is equivalent to wildcard for value, so that a pod can
         tolerate all taints of a particular category.
         +optional
         
        optional string operator = 2;
        Parameters:
        value - The bytes for operator to set.
        Returns:
        This builder for chaining.
      • hasValue

        public boolean hasValue()
         Value is the taint value the toleration matches to.
         If the operator is Exists, the value should be empty, otherwise just a regular string.
         +optional
         
        optional string value = 3;
        Specified by:
        hasValue in interface Generated.TolerationOrBuilder
        Returns:
        Whether the value field is set.
      • getValue

        public String getValue()
         Value is the taint value the toleration matches to.
         If the operator is Exists, the value should be empty, otherwise just a regular string.
         +optional
         
        optional string value = 3;
        Specified by:
        getValue in interface Generated.TolerationOrBuilder
        Returns:
        The value.
      • getValueBytes

        public com.google.protobuf.ByteString getValueBytes()
         Value is the taint value the toleration matches to.
         If the operator is Exists, the value should be empty, otherwise just a regular string.
         +optional
         
        optional string value = 3;
        Specified by:
        getValueBytes in interface Generated.TolerationOrBuilder
        Returns:
        The bytes for value.
      • setValue

        public Generated.Toleration.Builder setValue​(String value)
         Value is the taint value the toleration matches to.
         If the operator is Exists, the value should be empty, otherwise just a regular string.
         +optional
         
        optional string value = 3;
        Parameters:
        value - The value to set.
        Returns:
        This builder for chaining.
      • clearValue

        public Generated.Toleration.Builder clearValue()
         Value is the taint value the toleration matches to.
         If the operator is Exists, the value should be empty, otherwise just a regular string.
         +optional
         
        optional string value = 3;
        Returns:
        This builder for chaining.
      • setValueBytes

        public Generated.Toleration.Builder setValueBytes​(com.google.protobuf.ByteString value)
         Value is the taint value the toleration matches to.
         If the operator is Exists, the value should be empty, otherwise just a regular string.
         +optional
         
        optional string value = 3;
        Parameters:
        value - The bytes for value to set.
        Returns:
        This builder for chaining.
      • hasEffect

        public boolean hasEffect()
         Effect indicates the taint effect to match. Empty means match all taint effects.
         When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
         +optional
         
        optional string effect = 4;
        Specified by:
        hasEffect in interface Generated.TolerationOrBuilder
        Returns:
        Whether the effect field is set.
      • getEffect

        public String getEffect()
         Effect indicates the taint effect to match. Empty means match all taint effects.
         When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
         +optional
         
        optional string effect = 4;
        Specified by:
        getEffect in interface Generated.TolerationOrBuilder
        Returns:
        The effect.
      • getEffectBytes

        public com.google.protobuf.ByteString getEffectBytes()
         Effect indicates the taint effect to match. Empty means match all taint effects.
         When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
         +optional
         
        optional string effect = 4;
        Specified by:
        getEffectBytes in interface Generated.TolerationOrBuilder
        Returns:
        The bytes for effect.
      • setEffect

        public Generated.Toleration.Builder setEffect​(String value)
         Effect indicates the taint effect to match. Empty means match all taint effects.
         When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
         +optional
         
        optional string effect = 4;
        Parameters:
        value - The effect to set.
        Returns:
        This builder for chaining.
      • clearEffect

        public Generated.Toleration.Builder clearEffect()
         Effect indicates the taint effect to match. Empty means match all taint effects.
         When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
         +optional
         
        optional string effect = 4;
        Returns:
        This builder for chaining.
      • setEffectBytes

        public Generated.Toleration.Builder setEffectBytes​(com.google.protobuf.ByteString value)
         Effect indicates the taint effect to match. Empty means match all taint effects.
         When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
         +optional
         
        optional string effect = 4;
        Parameters:
        value - The bytes for effect to set.
        Returns:
        This builder for chaining.
      • hasTolerationSeconds

        public boolean hasTolerationSeconds()
         TolerationSeconds represents the period of time the toleration (which must be
         of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
         it is not set, which means tolerate the taint forever (do not evict). Zero and
         negative values will be treated as 0 (evict immediately) by the system.
         +optional
         
        optional int64 tolerationSeconds = 5;
        Specified by:
        hasTolerationSeconds in interface Generated.TolerationOrBuilder
        Returns:
        Whether the tolerationSeconds field is set.
      • getTolerationSeconds

        public long getTolerationSeconds()
         TolerationSeconds represents the period of time the toleration (which must be
         of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
         it is not set, which means tolerate the taint forever (do not evict). Zero and
         negative values will be treated as 0 (evict immediately) by the system.
         +optional
         
        optional int64 tolerationSeconds = 5;
        Specified by:
        getTolerationSeconds in interface Generated.TolerationOrBuilder
        Returns:
        The tolerationSeconds.
      • setTolerationSeconds

        public Generated.Toleration.Builder setTolerationSeconds​(long value)
         TolerationSeconds represents the period of time the toleration (which must be
         of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
         it is not set, which means tolerate the taint forever (do not evict). Zero and
         negative values will be treated as 0 (evict immediately) by the system.
         +optional
         
        optional int64 tolerationSeconds = 5;
        Parameters:
        value - The tolerationSeconds to set.
        Returns:
        This builder for chaining.
      • clearTolerationSeconds

        public Generated.Toleration.Builder clearTolerationSeconds()
         TolerationSeconds represents the period of time the toleration (which must be
         of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
         it is not set, which means tolerate the taint forever (do not evict). Zero and
         negative values will be treated as 0 (evict immediately) by the system.
         +optional
         
        optional int64 tolerationSeconds = 5;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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