Class V1Apps.DeploymentSpec.Builder

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

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

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

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

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

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

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

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

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

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

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

      public V1Apps.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<V1Apps.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 V1Apps.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 V1Apps.DeploymentSpecOrBuilder
    • setReplicas

      public V1Apps.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

      public V1Apps.DeploymentSpec.Builder 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.
       It must match the pod template's labels.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      hasSelector in interface V1Apps.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.
       It must match the pod template's labels.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      getSelector in interface V1Apps.DeploymentSpecOrBuilder
    • setSelector

       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       It must match the pod template's labels.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • setSelector

      public V1Apps.DeploymentSpec.Builder setSelector(Meta.LabelSelector.Builder builderForValue)
       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       It must match the pod template's labels.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • mergeSelector

      public V1Apps.DeploymentSpec.Builder mergeSelector(Meta.LabelSelector value)
       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       It must match the pod template's labels.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • clearSelector

      public V1Apps.DeploymentSpec.Builder clearSelector()
       Label selector for pods. Existing ReplicaSets whose pods are
       selected by this will be the ones affected by this deployment.
       It must match the pod template's labels.
       
      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.
       It must match the pod template's labels.
       
      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.
       It must match the pod template's labels.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      getSelectorOrBuilder in interface V1Apps.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 V1Apps.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 V1Apps.DeploymentSpecOrBuilder
    • setTemplate

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

      public V1Apps.DeploymentSpec.Builder setTemplate(V1.PodTemplateSpec.Builder builderForValue)
       Template describes the pods that will be created.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • mergeTemplate

      public V1Apps.DeploymentSpec.Builder mergeTemplate(V1.PodTemplateSpec value)
       Template describes the pods that will be created.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • clearTemplate

      public V1Apps.DeploymentSpec.Builder 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 V1Apps.DeploymentSpecOrBuilder
    • hasStrategy

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

      public V1Apps.DeploymentStrategy getStrategy()
       The deployment strategy to use to replace existing pods with new ones.
       +optional
       +patchStrategy=retainKeys
       
      optional .k8s.io.api.apps.v1.DeploymentStrategy strategy = 4;
      Specified by:
      getStrategy in interface V1Apps.DeploymentSpecOrBuilder
    • setStrategy

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

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

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

      public V1Apps.DeploymentSpec.Builder clearStrategy()
       The deployment strategy to use to replace existing pods with new ones.
       +optional
       +patchStrategy=retainKeys
       
      optional .k8s.io.api.apps.v1.DeploymentStrategy strategy = 4;
    • getStrategyBuilder

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

      public V1Apps.DeploymentStrategyOrBuilder getStrategyOrBuilder()
       The deployment strategy to use to replace existing pods with new ones.
       +optional
       +patchStrategy=retainKeys
       
      optional .k8s.io.api.apps.v1.DeploymentStrategy strategy = 4;
      Specified by:
      getStrategyOrBuilder in interface V1Apps.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 V1Apps.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 V1Apps.DeploymentSpecOrBuilder
    • setMinReadySeconds

      public V1Apps.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 V1Apps.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.
       Defaults to 10.
       +optional
       
      optional int32 revisionHistoryLimit = 6;
      Specified by:
      hasRevisionHistoryLimit in interface V1Apps.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.
       Defaults to 10.
       +optional
       
      optional int32 revisionHistoryLimit = 6;
      Specified by:
      getRevisionHistoryLimit in interface V1Apps.DeploymentSpecOrBuilder
    • setRevisionHistoryLimit

      public V1Apps.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.
       Defaults to 10.
       +optional
       
      optional int32 revisionHistoryLimit = 6;
    • clearRevisionHistoryLimit

      public V1Apps.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.
       Defaults to 10.
       +optional
       
      optional int32 revisionHistoryLimit = 6;
    • hasPaused

      public boolean hasPaused()
       Indicates that the deployment is paused.
       +optional
       
      optional bool paused = 7;
      Specified by:
      hasPaused in interface V1Apps.DeploymentSpecOrBuilder
    • getPaused

      public boolean getPaused()
       Indicates that the deployment is paused.
       +optional
       
      optional bool paused = 7;
      Specified by:
      getPaused in interface V1Apps.DeploymentSpecOrBuilder
    • setPaused

      public V1Apps.DeploymentSpec.Builder setPaused(boolean value)
       Indicates that the deployment is paused.
       +optional
       
      optional bool paused = 7;
    • clearPaused

      public V1Apps.DeploymentSpec.Builder clearPaused()
       Indicates that the deployment is paused.
       +optional
       
      optional bool paused = 7;
    • 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. Defaults to 600s.
       
      optional int32 progressDeadlineSeconds = 9;
      Specified by:
      hasProgressDeadlineSeconds in interface V1Apps.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. Defaults to 600s.
       
      optional int32 progressDeadlineSeconds = 9;
      Specified by:
      getProgressDeadlineSeconds in interface V1Apps.DeploymentSpecOrBuilder
    • setProgressDeadlineSeconds

      public V1Apps.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. Defaults to 600s.
       
      optional int32 progressDeadlineSeconds = 9;
    • clearProgressDeadlineSeconds

      public V1Apps.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. Defaults to 600s.
       
      optional int32 progressDeadlineSeconds = 9;
    • setUnknownFields

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

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