Class V1beta1Extensions.DeploymentSpec

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

public static final class V1beta1Extensions.DeploymentSpec extends com.google.protobuf.GeneratedMessageV3 implements V1beta1Extensions.DeploymentSpecOrBuilder
 DeploymentSpec is the specification of the desired behavior of the Deployment.
 
Protobuf type k8s.io.api.extensions.v1beta1.DeploymentSpec
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1beta1Extensions.DeploymentSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Extensions.DeploymentSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Extensions.DeploymentSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Extensions.DeploymentSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Extensions.DeploymentSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Extensions.DeploymentSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Extensions.DeploymentSpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1beta1Extensions.DeploymentSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1beta1Extensions.DeploymentSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1beta1Extensions.DeploymentSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1beta1Extensions.DeploymentSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1beta1Extensions.DeploymentSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1beta1Extensions.DeploymentSpec.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1beta1Extensions.DeploymentSpec.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1beta1Extensions.DeploymentSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1beta1Extensions.DeploymentSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1beta1Extensions.DeploymentSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1beta1Extensions.DeploymentSpec> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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