Package io.kubernetes.client.proto
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) 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.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Indicates that the deployment is paused.The maximum time in seconds for a deployment to make progress before it is considered to be failed.Number of desired pods.The number of old ReplicaSets to retain to allow rollback.Label selector for pods.The deployment strategy to use to replace existing pods with new ones.Template describes the pods that will be created.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
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.boolean
Indicates that the deployment is paused.int
The maximum time in seconds for a deployment to make progress before it is considered to be failed.int
Number of desired pods.int
The number of old ReplicaSets to retain to allow rollback.Label selector for pods.Label selector for pods.Label selector for pods.The deployment strategy to use to replace existing pods with new ones.The deployment strategy to use to replace existing pods with new ones.The deployment strategy to use to replace existing pods with new ones.Template describes the pods that will be created.Template describes the pods that will be created.Template describes the pods that will be created.boolean
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.boolean
Indicates that the deployment is paused.boolean
The maximum time in seconds for a deployment to make progress before it is considered to be failed.boolean
Number of desired pods.boolean
The number of old ReplicaSets to retain to allow rollback.boolean
Label selector for pods.boolean
The deployment strategy to use to replace existing pods with new ones.boolean
Template describes the pods that will be created.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(V1Apps.DeploymentSpec other) mergeSelector
(Meta.LabelSelector value) Label selector for pods.The deployment strategy to use to replace existing pods with new ones.mergeTemplate
(V1.PodTemplateSpec value) Template describes the pods that will be created.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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.setPaused
(boolean value) Indicates that the deployment is paused.setProgressDeadlineSeconds
(int value) The maximum time in seconds for a deployment to make progress before it is considered to be failed.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setReplicas
(int value) Number of desired pods.setRevisionHistoryLimit
(int value) The number of old ReplicaSets to retain to allow rollback.setSelector
(Meta.LabelSelector value) Label selector for pods.setSelector
(Meta.LabelSelector.Builder builderForValue) Label selector for pods.The deployment strategy to use to replace existing pods with new ones.setStrategy
(V1Apps.DeploymentStrategy.Builder builderForValue) The deployment strategy to use to replace existing pods with new ones.setTemplate
(V1.PodTemplateSpec value) Template describes the pods that will be created.setTemplate
(V1.PodTemplateSpec.Builder builderForValue) Template describes the pods that will be created.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Apps.DeploymentSpec.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Apps.DeploymentSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Apps.DeploymentSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Apps.DeploymentSpec.Builder>
-
clearField
public V1Apps.DeploymentSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Apps.DeploymentSpec.Builder>
-
clearOneof
public V1Apps.DeploymentSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Apps.DeploymentSpec.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1Apps.DeploymentSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceV1Apps.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 interfaceV1Apps.DeploymentSpecOrBuilder
-
setReplicas
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. It must match the pod template's labels.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
- Specified by:
hasSelector
in interfaceV1Apps.DeploymentSpecOrBuilder
-
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 interfaceV1Apps.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
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
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
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
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
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 interfaceV1Apps.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 interfaceV1Apps.DeploymentSpecOrBuilder
-
getTemplate
Template describes the pods that will be created.
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
- Specified by:
getTemplate
in interfaceV1Apps.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
Template describes the pods that will be created.
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
-
getTemplateOrBuilder
Template describes the pods that will be created.
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
- Specified by:
getTemplateOrBuilder
in interfaceV1Apps.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 interfaceV1Apps.DeploymentSpecOrBuilder
-
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 interfaceV1Apps.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
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
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
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 interfaceV1Apps.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 interfaceV1Apps.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 interfaceV1Apps.DeploymentSpecOrBuilder
-
setMinReadySeconds
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
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 interfaceV1Apps.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 interfaceV1Apps.DeploymentSpecOrBuilder
-
setRevisionHistoryLimit
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
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 interfaceV1Apps.DeploymentSpecOrBuilder
-
getPaused
public boolean getPaused()Indicates that the deployment is paused. +optional
optional bool paused = 7;
- Specified by:
getPaused
in interfaceV1Apps.DeploymentSpecOrBuilder
-
setPaused
Indicates that the deployment is paused. +optional
optional bool paused = 7;
-
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 interfaceV1Apps.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 interfaceV1Apps.DeploymentSpecOrBuilder
-
setProgressDeadlineSeconds
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
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Apps.DeploymentSpec.Builder>
-
mergeUnknownFields
public final V1Apps.DeploymentSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Apps.DeploymentSpec.Builder>
-