Package io.kubernetes.client.proto
Class V1.ReplicationControllerSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
io.kubernetes.client.proto.V1.ReplicationControllerSpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1.ReplicationControllerSpecOrBuilder
,Cloneable
- Enclosing class:
- V1.ReplicationControllerSpec
public static final class V1.ReplicationControllerSpec.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
implements V1.ReplicationControllerSpecOrBuilder
ReplicationControllerSpec is the specification of a replication controller.Protobuf type
k8s.io.api.core.v1.ReplicationControllerSpec
-
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) Replicas is the number of desired replicas.Template is the object that describes the pod that will be created if insufficient replicas are detected.clone()
boolean
containsSelector
(String key) Selector is a label query over pods that should match the Replicas count.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.Deprecated.int
Replicas is the number of desired replicas.Deprecated.int
Selector is a label query over pods that should match the Replicas count.Selector is a label query over pods that should match the Replicas count.getSelectorOrDefault
(String key, String defaultValue) Selector is a label query over pods that should match the Replicas count.getSelectorOrThrow
(String key) Selector is a label query over pods that should match the Replicas count.Template is the object that describes the pod that will be created if insufficient replicas are detected.Template is the object that describes the pod that will be created if insufficient replicas are detected.Template is the object that describes the pod that will be created if insufficient replicas are detected.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
Replicas is the number of desired replicas.boolean
Template is the object that describes the pod that will be created if insufficient replicas are detected.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeTemplate
(V1.PodTemplateSpec value) Template is the object that describes the pod that will be created if insufficient replicas are detected.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllSelector
(Map<String, String> values) Selector is a label query over pods that should match the Replicas count.putSelector
(String key, String value) Selector is a label query over pods that should match the Replicas count.removeSelector
(String key) Selector is a label query over pods that should match the Replicas count.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.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setReplicas
(int value) Replicas is the number of desired replicas.setTemplate
(V1.PodTemplateSpec value) Template is the object that describes the pod that will be created if insufficient replicas are detected.setTemplate
(V1.PodTemplateSpec.Builder builderForValue) Template is the object that describes the pod that will be created if insufficient replicas are detected.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, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.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<V1.ReplicationControllerSpec.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<V1.ReplicationControllerSpec.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<V1.ReplicationControllerSpec.Builder>
-
setField
public V1.ReplicationControllerSpec.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<V1.ReplicationControllerSpec.Builder>
-
clearField
public V1.ReplicationControllerSpec.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<V1.ReplicationControllerSpec.Builder>
-
clearOneof
public V1.ReplicationControllerSpec.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<V1.ReplicationControllerSpec.Builder>
-
setRepeatedField
public V1.ReplicationControllerSpec.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<V1.ReplicationControllerSpec.Builder>
-
addRepeatedField
public V1.ReplicationControllerSpec.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<V1.ReplicationControllerSpec.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.ReplicationControllerSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
-
mergeFrom
public V1.ReplicationControllerSpec.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<V1.ReplicationControllerSpec.Builder>
- Throws:
IOException
-
hasReplicas
public boolean hasReplicas()Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller +optional
optional int32 replicas = 1;
- Specified by:
hasReplicas
in interfaceV1.ReplicationControllerSpecOrBuilder
-
getReplicas
public int getReplicas()Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller +optional
optional int32 replicas = 1;
- Specified by:
getReplicas
in interfaceV1.ReplicationControllerSpecOrBuilder
-
setReplicas
Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller +optional
optional int32 replicas = 1;
-
clearReplicas
Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller +optional
optional int32 replicas = 1;
-
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 = 4;
- Specified by:
hasMinReadySeconds
in interfaceV1.ReplicationControllerSpecOrBuilder
-
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 = 4;
- Specified by:
getMinReadySeconds
in interfaceV1.ReplicationControllerSpecOrBuilder
-
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 = 4;
-
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 = 4;
-
getSelectorCount
public int getSelectorCount()Description copied from interface:V1.ReplicationControllerSpecOrBuilder
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
- Specified by:
getSelectorCount
in interfaceV1.ReplicationControllerSpecOrBuilder
-
containsSelector
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
- Specified by:
containsSelector
in interfaceV1.ReplicationControllerSpecOrBuilder
-
getSelector
Deprecated.UsegetSelectorMap()
instead.- Specified by:
getSelector
in interfaceV1.ReplicationControllerSpecOrBuilder
-
getSelectorMap
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
- Specified by:
getSelectorMap
in interfaceV1.ReplicationControllerSpecOrBuilder
-
getSelectorOrDefault
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
- Specified by:
getSelectorOrDefault
in interfaceV1.ReplicationControllerSpecOrBuilder
-
getSelectorOrThrow
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
- Specified by:
getSelectorOrThrow
in interfaceV1.ReplicationControllerSpecOrBuilder
-
clearSelector
-
removeSelector
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
-
getMutableSelector
Deprecated.Use alternate mutation accessors instead. -
putSelector
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
-
putAllSelector
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors +optional +mapType=atomic
map<string, string> selector = 2;
-
hasTemplate
public boolean hasTemplate()Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
- Specified by:
hasTemplate
in interfaceV1.ReplicationControllerSpecOrBuilder
-
getTemplate
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
- Specified by:
getTemplate
in interfaceV1.ReplicationControllerSpecOrBuilder
-
setTemplate
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
-
setTemplate
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
-
mergeTemplate
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
-
clearTemplate
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
-
getTemplateBuilder
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
-
getTemplateOrBuilder
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
- Specified by:
getTemplateOrBuilder
in interfaceV1.ReplicationControllerSpecOrBuilder
-
setUnknownFields
public final V1.ReplicationControllerSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
-
mergeUnknownFields
public final V1.ReplicationControllerSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
-