Class V1.Toleration.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>
io.kubernetes.client.proto.V1.Toleration.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.TolerationOrBuilder, Cloneable
Enclosing class:
V1.Toleration

public static final class V1.Toleration.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder> implements V1.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 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<V1.Toleration.Builder>
    • clear

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

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

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

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

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

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

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

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

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

      public V1.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<V1.Toleration.Builder>
    • mergeFrom

      public V1.Toleration.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<V1.Toleration.Builder>
    • mergeFrom

      public V1.Toleration.Builder mergeFrom(V1.Toleration other)
    • isInitialized

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

      public V1.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<V1.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 V1.TolerationOrBuilder
    • 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 V1.TolerationOrBuilder
    • 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 V1.TolerationOrBuilder
    • setKey

      public V1.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;
    • clearKey

      public V1.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;
    • setKeyBytes

      public V1.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;
    • 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 V1.TolerationOrBuilder
    • 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 V1.TolerationOrBuilder
    • 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 V1.TolerationOrBuilder
    • setOperator

      public V1.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;
    • clearOperator

      public V1.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;
    • setOperatorBytes

      public V1.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;
    • 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 V1.TolerationOrBuilder
    • 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 V1.TolerationOrBuilder
    • 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 V1.TolerationOrBuilder
    • setValue

      public V1.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;
    • clearValue

      public V1.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;
    • setValueBytes

      public V1.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;
    • 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 V1.TolerationOrBuilder
    • 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 V1.TolerationOrBuilder
    • 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 V1.TolerationOrBuilder
    • setEffect

      public V1.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;
    • clearEffect

      public V1.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;
    • setEffectBytes

      public V1.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;
    • 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 V1.TolerationOrBuilder
    • 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 V1.TolerationOrBuilder
    • setTolerationSeconds

      public V1.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;
    • clearTolerationSeconds

      public V1.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;
    • setUnknownFields

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

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