Package io.kubernetes.client.proto
Class V1beta2Apps.DeploymentSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
io.kubernetes.client.proto.V1beta2Apps.DeploymentSpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1beta2Apps.DeploymentSpecOrBuilder,Cloneable
- Enclosing class:
- V1beta2Apps.DeploymentSpec
public static final class V1beta2Apps.DeploymentSpec.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
implements V1beta2Apps.DeploymentSpecOrBuilder
DeploymentSpec is the specification of the desired behavior of the Deployment.Protobuf type
k8s.io.api.apps.v1beta2.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.Descriptorcom.google.protobuf.Descriptors.DescriptorintMinimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available.booleanIndicates that the deployment is paused.intThe maximum time in seconds for a deployment to make progress before it is considered to be failed.intNumber of desired pods.intThe 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.booleanMinimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available.booleanIndicates that the deployment is paused.booleanThe maximum time in seconds for a deployment to make progress before it is considered to be failed.booleanNumber of desired pods.booleanThe number of old ReplicaSets to retain to allow rollback.booleanLabel selector for pods.booleanThe deployment strategy to use to replace existing pods with new ones.booleanTemplate describes the pods that will be created.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message 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(V1beta2Apps.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
setField
public V1beta2Apps.DeploymentSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
clearField
public V1beta2Apps.DeploymentSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
clearOneof
public V1beta2Apps.DeploymentSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
setRepeatedField
public V1beta2Apps.DeploymentSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
addRepeatedField
public V1beta2Apps.DeploymentSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
mergeFrom
public V1beta2Apps.DeploymentSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1beta2Apps.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:
hasReplicasin interfaceV1beta2Apps.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:
getReplicasin interfaceV1beta2Apps.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:
hasSelectorin interfaceV1beta2Apps.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:
getSelectorin interfaceV1beta2Apps.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:
getSelectorOrBuilderin interfaceV1beta2Apps.DeploymentSpecOrBuilder
-
hasTemplate
public boolean hasTemplate()Template describes the pods that will be created.
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;- Specified by:
hasTemplatein interfaceV1beta2Apps.DeploymentSpecOrBuilder
-
getTemplate
Template describes the pods that will be created.
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;- Specified by:
getTemplatein interfaceV1beta2Apps.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:
getTemplateOrBuilderin interfaceV1beta2Apps.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.v1beta2.DeploymentStrategy strategy = 4;- Specified by:
hasStrategyin interfaceV1beta2Apps.DeploymentSpecOrBuilder
-
getStrategy
The deployment strategy to use to replace existing pods with new ones. +optional +patchStrategy=retainKeys
optional .k8s.io.api.apps.v1beta2.DeploymentStrategy strategy = 4;- Specified by:
getStrategyin interfaceV1beta2Apps.DeploymentSpecOrBuilder
-
setStrategy
The deployment strategy to use to replace existing pods with new ones. +optional +patchStrategy=retainKeys
optional .k8s.io.api.apps.v1beta2.DeploymentStrategy strategy = 4; -
setStrategy
public V1beta2Apps.DeploymentSpec.Builder setStrategy(V1beta2Apps.DeploymentStrategy.Builder builderForValue) The deployment strategy to use to replace existing pods with new ones. +optional +patchStrategy=retainKeys
optional .k8s.io.api.apps.v1beta2.DeploymentStrategy strategy = 4; -
mergeStrategy
The deployment strategy to use to replace existing pods with new ones. +optional +patchStrategy=retainKeys
optional .k8s.io.api.apps.v1beta2.DeploymentStrategy strategy = 4; -
clearStrategy
The deployment strategy to use to replace existing pods with new ones. +optional +patchStrategy=retainKeys
optional .k8s.io.api.apps.v1beta2.DeploymentStrategy strategy = 4; -
getStrategyBuilder
The deployment strategy to use to replace existing pods with new ones. +optional +patchStrategy=retainKeys
optional .k8s.io.api.apps.v1beta2.DeploymentStrategy strategy = 4; -
getStrategyOrBuilder
The deployment strategy to use to replace existing pods with new ones. +optional +patchStrategy=retainKeys
optional .k8s.io.api.apps.v1beta2.DeploymentStrategy strategy = 4;- Specified by:
getStrategyOrBuilderin interfaceV1beta2Apps.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:
hasMinReadySecondsin interfaceV1beta2Apps.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:
getMinReadySecondsin interfaceV1beta2Apps.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:
hasRevisionHistoryLimitin interfaceV1beta2Apps.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:
getRevisionHistoryLimitin interfaceV1beta2Apps.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:
hasPausedin interfaceV1beta2Apps.DeploymentSpecOrBuilder
-
getPaused
public boolean getPaused()Indicates that the deployment is paused. +optional
optional bool paused = 7;- Specified by:
getPausedin interfaceV1beta2Apps.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:
hasProgressDeadlineSecondsin interfaceV1beta2Apps.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:
getProgressDeadlineSecondsin interfaceV1beta2Apps.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 V1beta2Apps.DeploymentSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-
mergeUnknownFields
public final V1beta2Apps.DeploymentSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta2Apps.DeploymentSpec.Builder>
-