Class V1beta1Extensions.RollingUpdateDeployment.Builder

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

public static final class V1beta1Extensions.RollingUpdateDeployment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.RollingUpdateDeployment.Builder> implements V1beta1Extensions.RollingUpdateDeploymentOrBuilder
 Spec to control the desired behavior of rolling update.
 
Protobuf type k8s.io.api.extensions.v1beta1.RollingUpdateDeployment
  • 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<V1beta1Extensions.RollingUpdateDeployment.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<V1beta1Extensions.RollingUpdateDeployment.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<V1beta1Extensions.RollingUpdateDeployment.Builder>
    • getDefaultInstanceForType

      public V1beta1Extensions.RollingUpdateDeployment 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

      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<V1beta1Extensions.RollingUpdateDeployment.Builder>
    • setField

      public V1beta1Extensions.RollingUpdateDeployment.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<V1beta1Extensions.RollingUpdateDeployment.Builder>
    • clearField

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

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

      public V1beta1Extensions.RollingUpdateDeployment.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<V1beta1Extensions.RollingUpdateDeployment.Builder>
    • addRepeatedField

      public V1beta1Extensions.RollingUpdateDeployment.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<V1beta1Extensions.RollingUpdateDeployment.Builder>
    • mergeFrom

      public V1beta1Extensions.RollingUpdateDeployment.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<V1beta1Extensions.RollingUpdateDeployment.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<V1beta1Extensions.RollingUpdateDeployment.Builder>
    • mergeFrom

      public V1beta1Extensions.RollingUpdateDeployment.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<V1beta1Extensions.RollingUpdateDeployment.Builder>
      Throws:
      IOException
    • hasMaxUnavailable

      public boolean hasMaxUnavailable()
       The maximum number of pods that can be unavailable during the update.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       Absolute number is calculated from percentage by rounding down.
       This can not be 0 if MaxSurge is 0.
       By default, a fixed value of 1 is used.
       Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old RC
       can be scaled down further, followed by scaling up the new RC, ensuring
       that the total number of pods available at all times during the update is at
       least 70% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
      Specified by:
      hasMaxUnavailable in interface V1beta1Extensions.RollingUpdateDeploymentOrBuilder
    • getMaxUnavailable

      public IntStr.IntOrString getMaxUnavailable()
       The maximum number of pods that can be unavailable during the update.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       Absolute number is calculated from percentage by rounding down.
       This can not be 0 if MaxSurge is 0.
       By default, a fixed value of 1 is used.
       Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old RC
       can be scaled down further, followed by scaling up the new RC, ensuring
       that the total number of pods available at all times during the update is at
       least 70% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
      Specified by:
      getMaxUnavailable in interface V1beta1Extensions.RollingUpdateDeploymentOrBuilder
    • setMaxUnavailable

       The maximum number of pods that can be unavailable during the update.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       Absolute number is calculated from percentage by rounding down.
       This can not be 0 if MaxSurge is 0.
       By default, a fixed value of 1 is used.
       Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old RC
       can be scaled down further, followed by scaling up the new RC, ensuring
       that the total number of pods available at all times during the update is at
       least 70% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
    • setMaxUnavailable

       The maximum number of pods that can be unavailable during the update.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       Absolute number is calculated from percentage by rounding down.
       This can not be 0 if MaxSurge is 0.
       By default, a fixed value of 1 is used.
       Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old RC
       can be scaled down further, followed by scaling up the new RC, ensuring
       that the total number of pods available at all times during the update is at
       least 70% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
    • mergeMaxUnavailable

       The maximum number of pods that can be unavailable during the update.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       Absolute number is calculated from percentage by rounding down.
       This can not be 0 if MaxSurge is 0.
       By default, a fixed value of 1 is used.
       Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old RC
       can be scaled down further, followed by scaling up the new RC, ensuring
       that the total number of pods available at all times during the update is at
       least 70% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
    • clearMaxUnavailable

       The maximum number of pods that can be unavailable during the update.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       Absolute number is calculated from percentage by rounding down.
       This can not be 0 if MaxSurge is 0.
       By default, a fixed value of 1 is used.
       Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old RC
       can be scaled down further, followed by scaling up the new RC, ensuring
       that the total number of pods available at all times during the update is at
       least 70% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
    • getMaxUnavailableBuilder

      public IntStr.IntOrString.Builder getMaxUnavailableBuilder()
       The maximum number of pods that can be unavailable during the update.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       Absolute number is calculated from percentage by rounding down.
       This can not be 0 if MaxSurge is 0.
       By default, a fixed value of 1 is used.
       Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old RC
       can be scaled down further, followed by scaling up the new RC, ensuring
       that the total number of pods available at all times during the update is at
       least 70% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
    • getMaxUnavailableOrBuilder

      public IntStr.IntOrStringOrBuilder getMaxUnavailableOrBuilder()
       The maximum number of pods that can be unavailable during the update.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       Absolute number is calculated from percentage by rounding down.
       This can not be 0 if MaxSurge is 0.
       By default, a fixed value of 1 is used.
       Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old RC
       can be scaled down further, followed by scaling up the new RC, ensuring
       that the total number of pods available at all times during the update is at
       least 70% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
      Specified by:
      getMaxUnavailableOrBuilder in interface V1beta1Extensions.RollingUpdateDeploymentOrBuilder
    • hasMaxSurge

      public boolean hasMaxSurge()
       The maximum number of pods that can be scheduled above the desired number of
       pods.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       This can not be 0 if MaxUnavailable is 0.
       Absolute number is calculated from percentage by rounding up.
       By default, a value of 1 is used.
       Example: when this is set to 30%, the new RC can be scaled up immediately when
       the rolling update starts, such that the total number of old and new pods do not exceed
       130% of desired pods. Once old pods have been killed,
       new RC can be scaled up further, ensuring that total number of pods running
       at any time during the update is at most 130% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
      Specified by:
      hasMaxSurge in interface V1beta1Extensions.RollingUpdateDeploymentOrBuilder
    • getMaxSurge

      public IntStr.IntOrString getMaxSurge()
       The maximum number of pods that can be scheduled above the desired number of
       pods.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       This can not be 0 if MaxUnavailable is 0.
       Absolute number is calculated from percentage by rounding up.
       By default, a value of 1 is used.
       Example: when this is set to 30%, the new RC can be scaled up immediately when
       the rolling update starts, such that the total number of old and new pods do not exceed
       130% of desired pods. Once old pods have been killed,
       new RC can be scaled up further, ensuring that total number of pods running
       at any time during the update is at most 130% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
      Specified by:
      getMaxSurge in interface V1beta1Extensions.RollingUpdateDeploymentOrBuilder
    • setMaxSurge

       The maximum number of pods that can be scheduled above the desired number of
       pods.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       This can not be 0 if MaxUnavailable is 0.
       Absolute number is calculated from percentage by rounding up.
       By default, a value of 1 is used.
       Example: when this is set to 30%, the new RC can be scaled up immediately when
       the rolling update starts, such that the total number of old and new pods do not exceed
       130% of desired pods. Once old pods have been killed,
       new RC can be scaled up further, ensuring that total number of pods running
       at any time during the update is at most 130% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
    • setMaxSurge

       The maximum number of pods that can be scheduled above the desired number of
       pods.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       This can not be 0 if MaxUnavailable is 0.
       Absolute number is calculated from percentage by rounding up.
       By default, a value of 1 is used.
       Example: when this is set to 30%, the new RC can be scaled up immediately when
       the rolling update starts, such that the total number of old and new pods do not exceed
       130% of desired pods. Once old pods have been killed,
       new RC can be scaled up further, ensuring that total number of pods running
       at any time during the update is at most 130% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
    • mergeMaxSurge

       The maximum number of pods that can be scheduled above the desired number of
       pods.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       This can not be 0 if MaxUnavailable is 0.
       Absolute number is calculated from percentage by rounding up.
       By default, a value of 1 is used.
       Example: when this is set to 30%, the new RC can be scaled up immediately when
       the rolling update starts, such that the total number of old and new pods do not exceed
       130% of desired pods. Once old pods have been killed,
       new RC can be scaled up further, ensuring that total number of pods running
       at any time during the update is at most 130% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
    • clearMaxSurge

       The maximum number of pods that can be scheduled above the desired number of
       pods.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       This can not be 0 if MaxUnavailable is 0.
       Absolute number is calculated from percentage by rounding up.
       By default, a value of 1 is used.
       Example: when this is set to 30%, the new RC can be scaled up immediately when
       the rolling update starts, such that the total number of old and new pods do not exceed
       130% of desired pods. Once old pods have been killed,
       new RC can be scaled up further, ensuring that total number of pods running
       at any time during the update is at most 130% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
    • getMaxSurgeBuilder

      public IntStr.IntOrString.Builder getMaxSurgeBuilder()
       The maximum number of pods that can be scheduled above the desired number of
       pods.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       This can not be 0 if MaxUnavailable is 0.
       Absolute number is calculated from percentage by rounding up.
       By default, a value of 1 is used.
       Example: when this is set to 30%, the new RC can be scaled up immediately when
       the rolling update starts, such that the total number of old and new pods do not exceed
       130% of desired pods. Once old pods have been killed,
       new RC can be scaled up further, ensuring that total number of pods running
       at any time during the update is at most 130% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
    • getMaxSurgeOrBuilder

      public IntStr.IntOrStringOrBuilder getMaxSurgeOrBuilder()
       The maximum number of pods that can be scheduled above the desired number of
       pods.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       This can not be 0 if MaxUnavailable is 0.
       Absolute number is calculated from percentage by rounding up.
       By default, a value of 1 is used.
       Example: when this is set to 30%, the new RC can be scaled up immediately when
       the rolling update starts, such that the total number of old and new pods do not exceed
       130% of desired pods. Once old pods have been killed,
       new RC can be scaled up further, ensuring that total number of pods running
       at any time during the update is at most 130% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
      Specified by:
      getMaxSurgeOrBuilder in interface V1beta1Extensions.RollingUpdateDeploymentOrBuilder
    • setUnknownFields

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

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