Class V1beta1Extensions.DeploymentSpec.Builder

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

public static final class V1beta1Extensions.DeploymentSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.DeploymentSpec.Builder> implements V1beta1Extensions.DeploymentSpecOrBuilder
 DeploymentSpec is the specification of the desired behavior of the Deployment.
 
Protobuf type k8s.io.api.extensions.v1beta1.DeploymentSpec
  • 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.DeploymentSpec.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.DeploymentSpec.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.DeploymentSpec.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public boolean hasReplicas()
       Number of desired pods. This is a pointer to distinguish between explicit
       zero and not specified. Defaults to 1.
       +optional
       
      optional int32 replicas = 1;
      Specified by:
      hasReplicas in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • getReplicas

      public int getReplicas()
       Number of desired pods. This is a pointer to distinguish between explicit
       zero and not specified. Defaults to 1.
       +optional
       
      optional int32 replicas = 1;
      Specified by:
      getReplicas in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • setReplicas

      public V1beta1Extensions.DeploymentSpec.Builder setReplicas(int value)
       Number of desired pods. This is a pointer to distinguish between explicit
       zero and not specified. Defaults to 1.
       +optional
       
      optional int32 replicas = 1;
    • clearReplicas

       Number of desired pods. This is a pointer to distinguish between explicit
       zero and not specified. Defaults to 1.
       +optional
       
      optional int32 replicas = 1;
    • hasSelector

      public boolean hasSelector()
       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      hasSelector in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • getSelector

      public Meta.LabelSelector getSelector()
       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      getSelector in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • setSelector

       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • setSelector

       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • mergeSelector

       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • clearSelector

       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • getSelectorBuilder

      public Meta.LabelSelector.Builder getSelectorBuilder()
       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • getSelectorOrBuilder

      public Meta.LabelSelectorOrBuilder getSelectorOrBuilder()
       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      getSelectorOrBuilder in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • hasTemplate

      public boolean hasTemplate()
       Template describes the pods that will be created.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
      Specified by:
      hasTemplate in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • getTemplate

      public V1.PodTemplateSpec getTemplate()
       Template describes the pods that will be created.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
      Specified by:
      getTemplate in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • setTemplate

       Template describes the pods that will be created.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • setTemplate

       Template describes the pods that will be created.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • mergeTemplate

       Template describes the pods that will be created.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • clearTemplate

       Template describes the pods that will be created.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • getTemplateBuilder

      public V1.PodTemplateSpec.Builder getTemplateBuilder()
       Template describes the pods that will be created.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • getTemplateOrBuilder

      public V1.PodTemplateSpecOrBuilder getTemplateOrBuilder()
       Template describes the pods that will be created.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
      Specified by:
      getTemplateOrBuilder in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • hasStrategy

      public boolean hasStrategy()
       The deployment strategy to use to replace existing pods with new ones.
       +optional
       +patchStrategy=retainKeys
       
      optional .k8s.io.api.extensions.v1beta1.DeploymentStrategy strategy = 4;
      Specified by:
      hasStrategy in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • getStrategy

       The deployment strategy to use to replace existing pods with new ones.
       +optional
       +patchStrategy=retainKeys
       
      optional .k8s.io.api.extensions.v1beta1.DeploymentStrategy strategy = 4;
      Specified by:
      getStrategy in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • setStrategy

       The deployment strategy to use to replace existing pods with new ones.
       +optional
       +patchStrategy=retainKeys
       
      optional .k8s.io.api.extensions.v1beta1.DeploymentStrategy strategy = 4;
    • setStrategy

       The deployment strategy to use to replace existing pods with new ones.
       +optional
       +patchStrategy=retainKeys
       
      optional .k8s.io.api.extensions.v1beta1.DeploymentStrategy strategy = 4;
    • mergeStrategy

       The deployment strategy to use to replace existing pods with new ones.
       +optional
       +patchStrategy=retainKeys
       
      optional .k8s.io.api.extensions.v1beta1.DeploymentStrategy strategy = 4;
    • clearStrategy

       The deployment strategy to use to replace existing pods with new ones.
       +optional
       +patchStrategy=retainKeys
       
      optional .k8s.io.api.extensions.v1beta1.DeploymentStrategy strategy = 4;
    • getStrategyBuilder

      public V1beta1Extensions.DeploymentStrategy.Builder getStrategyBuilder()
       The deployment strategy to use to replace existing pods with new ones.
       +optional
       +patchStrategy=retainKeys
       
      optional .k8s.io.api.extensions.v1beta1.DeploymentStrategy strategy = 4;
    • getStrategyOrBuilder

      public V1beta1Extensions.DeploymentStrategyOrBuilder getStrategyOrBuilder()
       The deployment strategy to use to replace existing pods with new ones.
       +optional
       +patchStrategy=retainKeys
       
      optional .k8s.io.api.extensions.v1beta1.DeploymentStrategy strategy = 4;
      Specified by:
      getStrategyOrBuilder in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • hasMinReadySeconds

      public boolean hasMinReadySeconds()
       Minimum number of seconds for which a newly created pod should be ready
       without any of its container crashing, for it to be considered available.
       Defaults to 0 (pod will be considered available as soon as it is ready)
       +optional
       
      optional int32 minReadySeconds = 5;
      Specified by:
      hasMinReadySeconds in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • getMinReadySeconds

      public int getMinReadySeconds()
       Minimum number of seconds for which a newly created pod should be ready
       without any of its container crashing, for it to be considered available.
       Defaults to 0 (pod will be considered available as soon as it is ready)
       +optional
       
      optional int32 minReadySeconds = 5;
      Specified by:
      getMinReadySeconds in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • setMinReadySeconds

      public V1beta1Extensions.DeploymentSpec.Builder setMinReadySeconds(int value)
       Minimum number of seconds for which a newly created pod should be ready
       without any of its container crashing, for it to be considered available.
       Defaults to 0 (pod will be considered available as soon as it is ready)
       +optional
       
      optional int32 minReadySeconds = 5;
    • clearMinReadySeconds

      public V1beta1Extensions.DeploymentSpec.Builder clearMinReadySeconds()
       Minimum number of seconds for which a newly created pod should be ready
       without any of its container crashing, for it to be considered available.
       Defaults to 0 (pod will be considered available as soon as it is ready)
       +optional
       
      optional int32 minReadySeconds = 5;
    • hasRevisionHistoryLimit

      public boolean hasRevisionHistoryLimit()
       The number of old ReplicaSets to retain to allow rollback.
       This is a pointer to distinguish between explicit zero and not specified.
       This is set to the max value of int32 (i.e. 2147483647) by default, which
       means "retaining all old ReplicaSets".
       +optional
       
      optional int32 revisionHistoryLimit = 6;
      Specified by:
      hasRevisionHistoryLimit in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • getRevisionHistoryLimit

      public int getRevisionHistoryLimit()
       The number of old ReplicaSets to retain to allow rollback.
       This is a pointer to distinguish between explicit zero and not specified.
       This is set to the max value of int32 (i.e. 2147483647) by default, which
       means "retaining all old ReplicaSets".
       +optional
       
      optional int32 revisionHistoryLimit = 6;
      Specified by:
      getRevisionHistoryLimit in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • setRevisionHistoryLimit

      public V1beta1Extensions.DeploymentSpec.Builder setRevisionHistoryLimit(int value)
       The number of old ReplicaSets to retain to allow rollback.
       This is a pointer to distinguish between explicit zero and not specified.
       This is set to the max value of int32 (i.e. 2147483647) by default, which
       means "retaining all old ReplicaSets".
       +optional
       
      optional int32 revisionHistoryLimit = 6;
    • clearRevisionHistoryLimit

      public V1beta1Extensions.DeploymentSpec.Builder clearRevisionHistoryLimit()
       The number of old ReplicaSets to retain to allow rollback.
       This is a pointer to distinguish between explicit zero and not specified.
       This is set to the max value of int32 (i.e. 2147483647) by default, which
       means "retaining all old ReplicaSets".
       +optional
       
      optional int32 revisionHistoryLimit = 6;
    • hasPaused

      public boolean hasPaused()
       Indicates that the deployment is paused and will not be processed by the
       deployment controller.
       +optional
       
      optional bool paused = 7;
      Specified by:
      hasPaused in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • getPaused

      public boolean getPaused()
       Indicates that the deployment is paused and will not be processed by the
       deployment controller.
       +optional
       
      optional bool paused = 7;
      Specified by:
      getPaused in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • setPaused

      public V1beta1Extensions.DeploymentSpec.Builder setPaused(boolean value)
       Indicates that the deployment is paused and will not be processed by the
       deployment controller.
       +optional
       
      optional bool paused = 7;
    • clearPaused

       Indicates that the deployment is paused and will not be processed by the
       deployment controller.
       +optional
       
      optional bool paused = 7;
    • hasRollbackTo

      public boolean hasRollbackTo()
       DEPRECATED.
       The config this deployment is rolling back to. Will be cleared after rollback is done.
       +optional
       
      optional .k8s.io.api.extensions.v1beta1.RollbackConfig rollbackTo = 8;
      Specified by:
      hasRollbackTo in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • getRollbackTo

      public V1beta1Extensions.RollbackConfig getRollbackTo()
       DEPRECATED.
       The config this deployment is rolling back to. Will be cleared after rollback is done.
       +optional
       
      optional .k8s.io.api.extensions.v1beta1.RollbackConfig rollbackTo = 8;
      Specified by:
      getRollbackTo in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • setRollbackTo

       DEPRECATED.
       The config this deployment is rolling back to. Will be cleared after rollback is done.
       +optional
       
      optional .k8s.io.api.extensions.v1beta1.RollbackConfig rollbackTo = 8;
    • setRollbackTo

       DEPRECATED.
       The config this deployment is rolling back to. Will be cleared after rollback is done.
       +optional
       
      optional .k8s.io.api.extensions.v1beta1.RollbackConfig rollbackTo = 8;
    • mergeRollbackTo

       DEPRECATED.
       The config this deployment is rolling back to. Will be cleared after rollback is done.
       +optional
       
      optional .k8s.io.api.extensions.v1beta1.RollbackConfig rollbackTo = 8;
    • clearRollbackTo

      public V1beta1Extensions.DeploymentSpec.Builder clearRollbackTo()
       DEPRECATED.
       The config this deployment is rolling back to. Will be cleared after rollback is done.
       +optional
       
      optional .k8s.io.api.extensions.v1beta1.RollbackConfig rollbackTo = 8;
    • getRollbackToBuilder

      public V1beta1Extensions.RollbackConfig.Builder getRollbackToBuilder()
       DEPRECATED.
       The config this deployment is rolling back to. Will be cleared after rollback is done.
       +optional
       
      optional .k8s.io.api.extensions.v1beta1.RollbackConfig rollbackTo = 8;
    • getRollbackToOrBuilder

      public V1beta1Extensions.RollbackConfigOrBuilder getRollbackToOrBuilder()
       DEPRECATED.
       The config this deployment is rolling back to. Will be cleared after rollback is done.
       +optional
       
      optional .k8s.io.api.extensions.v1beta1.RollbackConfig rollbackTo = 8;
      Specified by:
      getRollbackToOrBuilder in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • hasProgressDeadlineSeconds

      public boolean hasProgressDeadlineSeconds()
       The maximum time in seconds for a deployment to make progress before it
       is considered to be failed. The deployment controller will continue to
       process failed deployments and a condition with a ProgressDeadlineExceeded
       reason will be surfaced in the deployment status. Note that progress will
       not be estimated during the time a deployment is paused. This is set to
       the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
       +optional
       
      optional int32 progressDeadlineSeconds = 9;
      Specified by:
      hasProgressDeadlineSeconds in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • getProgressDeadlineSeconds

      public int getProgressDeadlineSeconds()
       The maximum time in seconds for a deployment to make progress before it
       is considered to be failed. The deployment controller will continue to
       process failed deployments and a condition with a ProgressDeadlineExceeded
       reason will be surfaced in the deployment status. Note that progress will
       not be estimated during the time a deployment is paused. This is set to
       the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
       +optional
       
      optional int32 progressDeadlineSeconds = 9;
      Specified by:
      getProgressDeadlineSeconds in interface V1beta1Extensions.DeploymentSpecOrBuilder
    • setProgressDeadlineSeconds

      public V1beta1Extensions.DeploymentSpec.Builder setProgressDeadlineSeconds(int value)
       The maximum time in seconds for a deployment to make progress before it
       is considered to be failed. The deployment controller will continue to
       process failed deployments and a condition with a ProgressDeadlineExceeded
       reason will be surfaced in the deployment status. Note that progress will
       not be estimated during the time a deployment is paused. This is set to
       the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
       +optional
       
      optional int32 progressDeadlineSeconds = 9;
    • clearProgressDeadlineSeconds

      public V1beta1Extensions.DeploymentSpec.Builder clearProgressDeadlineSeconds()
       The maximum time in seconds for a deployment to make progress before it
       is considered to be failed. The deployment controller will continue to
       process failed deployments and a condition with a ProgressDeadlineExceeded
       reason will be surfaced in the deployment status. Note that progress will
       not be estimated during the time a deployment is paused. This is set to
       the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
       +optional
       
      optional int32 progressDeadlineSeconds = 9;
    • setUnknownFields

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

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