Class V1Policy.PodDisruptionBudgetSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1Policy.PodDisruptionBudgetSpec.Builder>
io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetSpec.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Policy.PodDisruptionBudgetSpecOrBuilder, Cloneable
Enclosing class:
V1Policy.PodDisruptionBudgetSpec

public static final class V1Policy.PodDisruptionBudgetSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Policy.PodDisruptionBudgetSpec.Builder> implements V1Policy.PodDisruptionBudgetSpecOrBuilder
 PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
 
Protobuf type k8s.io.api.policy.v1.PodDisruptionBudgetSpec
  • 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<V1Policy.PodDisruptionBudgetSpec.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<V1Policy.PodDisruptionBudgetSpec.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<V1Policy.PodDisruptionBudgetSpec.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1Policy.PodDisruptionBudgetSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<V1Policy.PodDisruptionBudgetSpec.Builder>
    • setField

      public V1Policy.PodDisruptionBudgetSpec.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<V1Policy.PodDisruptionBudgetSpec.Builder>
    • clearField

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

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

      public V1Policy.PodDisruptionBudgetSpec.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<V1Policy.PodDisruptionBudgetSpec.Builder>
    • addRepeatedField

      public V1Policy.PodDisruptionBudgetSpec.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<V1Policy.PodDisruptionBudgetSpec.Builder>
    • mergeFrom

      public V1Policy.PodDisruptionBudgetSpec.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<V1Policy.PodDisruptionBudgetSpec.Builder>
    • mergeFrom

    • isInitialized

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

      public V1Policy.PodDisruptionBudgetSpec.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<V1Policy.PodDisruptionBudgetSpec.Builder>
      Throws:
      IOException
    • hasMinAvailable

      public boolean hasMinAvailable()
       An eviction is allowed if at least "minAvailable" pods selected by
       "selector" will still be available after the eviction, i.e. even in the
       absence of the evicted pod.  So for example you can prevent all voluntary
       evictions by specifying "100%".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1;
      Specified by:
      hasMinAvailable in interface V1Policy.PodDisruptionBudgetSpecOrBuilder
    • getMinAvailable

      public IntStr.IntOrString getMinAvailable()
       An eviction is allowed if at least "minAvailable" pods selected by
       "selector" will still be available after the eviction, i.e. even in the
       absence of the evicted pod.  So for example you can prevent all voluntary
       evictions by specifying "100%".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1;
      Specified by:
      getMinAvailable in interface V1Policy.PodDisruptionBudgetSpecOrBuilder
    • setMinAvailable

       An eviction is allowed if at least "minAvailable" pods selected by
       "selector" will still be available after the eviction, i.e. even in the
       absence of the evicted pod.  So for example you can prevent all voluntary
       evictions by specifying "100%".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1;
    • setMinAvailable

      public V1Policy.PodDisruptionBudgetSpec.Builder setMinAvailable(IntStr.IntOrString.Builder builderForValue)
       An eviction is allowed if at least "minAvailable" pods selected by
       "selector" will still be available after the eviction, i.e. even in the
       absence of the evicted pod.  So for example you can prevent all voluntary
       evictions by specifying "100%".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1;
    • mergeMinAvailable

       An eviction is allowed if at least "minAvailable" pods selected by
       "selector" will still be available after the eviction, i.e. even in the
       absence of the evicted pod.  So for example you can prevent all voluntary
       evictions by specifying "100%".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1;
    • clearMinAvailable

      public V1Policy.PodDisruptionBudgetSpec.Builder clearMinAvailable()
       An eviction is allowed if at least "minAvailable" pods selected by
       "selector" will still be available after the eviction, i.e. even in the
       absence of the evicted pod.  So for example you can prevent all voluntary
       evictions by specifying "100%".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1;
    • getMinAvailableBuilder

      public IntStr.IntOrString.Builder getMinAvailableBuilder()
       An eviction is allowed if at least "minAvailable" pods selected by
       "selector" will still be available after the eviction, i.e. even in the
       absence of the evicted pod.  So for example you can prevent all voluntary
       evictions by specifying "100%".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1;
    • getMinAvailableOrBuilder

      public IntStr.IntOrStringOrBuilder getMinAvailableOrBuilder()
       An eviction is allowed if at least "minAvailable" pods selected by
       "selector" will still be available after the eviction, i.e. even in the
       absence of the evicted pod.  So for example you can prevent all voluntary
       evictions by specifying "100%".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1;
      Specified by:
      getMinAvailableOrBuilder in interface V1Policy.PodDisruptionBudgetSpecOrBuilder
    • hasSelector

      public boolean hasSelector()
       Label query over pods whose evictions are managed by the disruption
       budget.
       A null selector will match no pods, while an empty ({}) selector will select
       all pods within the namespace.
       +patchStrategy=replace
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      hasSelector in interface V1Policy.PodDisruptionBudgetSpecOrBuilder
    • getSelector

      public Meta.LabelSelector getSelector()
       Label query over pods whose evictions are managed by the disruption
       budget.
       A null selector will match no pods, while an empty ({}) selector will select
       all pods within the namespace.
       +patchStrategy=replace
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      getSelector in interface V1Policy.PodDisruptionBudgetSpecOrBuilder
    • setSelector

       Label query over pods whose evictions are managed by the disruption
       budget.
       A null selector will match no pods, while an empty ({}) selector will select
       all pods within the namespace.
       +patchStrategy=replace
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • setSelector

       Label query over pods whose evictions are managed by the disruption
       budget.
       A null selector will match no pods, while an empty ({}) selector will select
       all pods within the namespace.
       +patchStrategy=replace
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • mergeSelector

       Label query over pods whose evictions are managed by the disruption
       budget.
       A null selector will match no pods, while an empty ({}) selector will select
       all pods within the namespace.
       +patchStrategy=replace
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • clearSelector

       Label query over pods whose evictions are managed by the disruption
       budget.
       A null selector will match no pods, while an empty ({}) selector will select
       all pods within the namespace.
       +patchStrategy=replace
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • getSelectorBuilder

      public Meta.LabelSelector.Builder getSelectorBuilder()
       Label query over pods whose evictions are managed by the disruption
       budget.
       A null selector will match no pods, while an empty ({}) selector will select
       all pods within the namespace.
       +patchStrategy=replace
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • getSelectorOrBuilder

      public Meta.LabelSelectorOrBuilder getSelectorOrBuilder()
       Label query over pods whose evictions are managed by the disruption
       budget.
       A null selector will match no pods, while an empty ({}) selector will select
       all pods within the namespace.
       +patchStrategy=replace
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      getSelectorOrBuilder in interface V1Policy.PodDisruptionBudgetSpecOrBuilder
    • hasMaxUnavailable

      public boolean hasMaxUnavailable()
       An eviction is allowed if at most "maxUnavailable" pods selected by
       "selector" are unavailable after the eviction, i.e. even in absence of
       the evicted pod. For example, one can prevent all voluntary evictions
       by specifying 0. This is a mutually exclusive setting with "minAvailable".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3;
      Specified by:
      hasMaxUnavailable in interface V1Policy.PodDisruptionBudgetSpecOrBuilder
    • getMaxUnavailable

      public IntStr.IntOrString getMaxUnavailable()
       An eviction is allowed if at most "maxUnavailable" pods selected by
       "selector" are unavailable after the eviction, i.e. even in absence of
       the evicted pod. For example, one can prevent all voluntary evictions
       by specifying 0. This is a mutually exclusive setting with "minAvailable".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3;
      Specified by:
      getMaxUnavailable in interface V1Policy.PodDisruptionBudgetSpecOrBuilder
    • setMaxUnavailable

       An eviction is allowed if at most "maxUnavailable" pods selected by
       "selector" are unavailable after the eviction, i.e. even in absence of
       the evicted pod. For example, one can prevent all voluntary evictions
       by specifying 0. This is a mutually exclusive setting with "minAvailable".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3;
    • setMaxUnavailable

      public V1Policy.PodDisruptionBudgetSpec.Builder setMaxUnavailable(IntStr.IntOrString.Builder builderForValue)
       An eviction is allowed if at most "maxUnavailable" pods selected by
       "selector" are unavailable after the eviction, i.e. even in absence of
       the evicted pod. For example, one can prevent all voluntary evictions
       by specifying 0. This is a mutually exclusive setting with "minAvailable".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3;
    • mergeMaxUnavailable

       An eviction is allowed if at most "maxUnavailable" pods selected by
       "selector" are unavailable after the eviction, i.e. even in absence of
       the evicted pod. For example, one can prevent all voluntary evictions
       by specifying 0. This is a mutually exclusive setting with "minAvailable".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3;
    • clearMaxUnavailable

      public V1Policy.PodDisruptionBudgetSpec.Builder clearMaxUnavailable()
       An eviction is allowed if at most "maxUnavailable" pods selected by
       "selector" are unavailable after the eviction, i.e. even in absence of
       the evicted pod. For example, one can prevent all voluntary evictions
       by specifying 0. This is a mutually exclusive setting with "minAvailable".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3;
    • getMaxUnavailableBuilder

      public IntStr.IntOrString.Builder getMaxUnavailableBuilder()
       An eviction is allowed if at most "maxUnavailable" pods selected by
       "selector" are unavailable after the eviction, i.e. even in absence of
       the evicted pod. For example, one can prevent all voluntary evictions
       by specifying 0. This is a mutually exclusive setting with "minAvailable".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3;
    • getMaxUnavailableOrBuilder

      public IntStr.IntOrStringOrBuilder getMaxUnavailableOrBuilder()
       An eviction is allowed if at most "maxUnavailable" pods selected by
       "selector" are unavailable after the eviction, i.e. even in absence of
       the evicted pod. For example, one can prevent all voluntary evictions
       by specifying 0. This is a mutually exclusive setting with "minAvailable".
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3;
      Specified by:
      getMaxUnavailableOrBuilder in interface V1Policy.PodDisruptionBudgetSpecOrBuilder
    • setUnknownFields

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

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