Package k8s.io.api.core.v1
Class Generated.ReplicationControllerSpec
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.ReplicationControllerSpec
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.ReplicationControllerSpecOrBuilder
- Enclosing class:
- Generated
public static final class Generated.ReplicationControllerSpec extends com.google.protobuf.GeneratedMessageV3 implements Generated.ReplicationControllerSpecOrBuilder
ReplicationControllerSpec is the specification of a replication controller.
Protobuf typek8s.io.api.core.v1.ReplicationControllerSpec- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.ReplicationControllerSpec.BuilderReplicationControllerSpec is the specification of a replication controller.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intMINREADYSECONDS_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.ReplicationControllerSpec>PARSERDeprecated.static intREPLICAS_FIELD_NUMBERstatic intSELECTOR_FIELD_NUMBERstatic intTEMPLATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsSelector(String key)Selector is a label query over pods that should match the Replicas count.booleanequals(Object obj)static Generated.ReplicationControllerSpecgetDefaultInstance()Generated.ReplicationControllerSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetMinReadySeconds()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.com.google.protobuf.Parser<Generated.ReplicationControllerSpec>getParserForType()intgetReplicas()Replicas is the number of desired replicas.Map<String,String>getSelector()Deprecated.intgetSelectorCount()Selector is a label query over pods that should match the Replicas count.Map<String,String>getSelectorMap()Selector is a label query over pods that should match the Replicas count.StringgetSelectorOrDefault(String key, String defaultValue)Selector is a label query over pods that should match the Replicas count.StringgetSelectorOrThrow(String key)Selector is a label query over pods that should match the Replicas count.intgetSerializedSize()Generated.PodTemplateSpecgetTemplate()Template is the object that describes the pod that will be created if insufficient replicas are detected.Generated.PodTemplateSpecOrBuildergetTemplateOrBuilder()Template is the object that describes the pod that will be created if insufficient replicas are detected.inthashCode()booleanhasMinReadySeconds()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.booleanhasReplicas()Replicas is the number of desired replicas.booleanhasTemplate()Template is the object that describes the pod that will be created if insufficient replicas are detected.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static Generated.ReplicationControllerSpec.BuildernewBuilder()static Generated.ReplicationControllerSpec.BuildernewBuilder(Generated.ReplicationControllerSpec prototype)Generated.ReplicationControllerSpec.BuildernewBuilderForType()protected Generated.ReplicationControllerSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.ReplicationControllerSpecparseDelimitedFrom(InputStream input)static Generated.ReplicationControllerSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ReplicationControllerSpecparseFrom(byte[] data)static Generated.ReplicationControllerSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ReplicationControllerSpecparseFrom(com.google.protobuf.ByteString data)static Generated.ReplicationControllerSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ReplicationControllerSpecparseFrom(com.google.protobuf.CodedInputStream input)static Generated.ReplicationControllerSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ReplicationControllerSpecparseFrom(InputStream input)static Generated.ReplicationControllerSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ReplicationControllerSpecparseFrom(ByteBuffer data)static Generated.ReplicationControllerSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.ReplicationControllerSpec>parser()Generated.ReplicationControllerSpec.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
REPLICAS_FIELD_NUMBER
public static final int REPLICAS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MINREADYSECONDS_FIELD_NUMBER
public static final int MINREADYSECONDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SELECTOR_FIELD_NUMBER
public static final int SELECTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEMPLATE_FIELD_NUMBER
public static final int TEMPLATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.ReplicationControllerSpec> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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:
hasReplicasin interfaceGenerated.ReplicationControllerSpecOrBuilder- Returns:
- Whether the replicas field is set.
-
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:
getReplicasin interfaceGenerated.ReplicationControllerSpecOrBuilder- Returns:
- The replicas.
-
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:
hasMinReadySecondsin interfaceGenerated.ReplicationControllerSpecOrBuilder- Returns:
- Whether the minReadySeconds field is set.
-
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:
getMinReadySecondsin interfaceGenerated.ReplicationControllerSpecOrBuilder- Returns:
- The minReadySeconds.
-
getSelectorCount
public int getSelectorCount()
Description copied from interface:Generated.ReplicationControllerSpecOrBuilderSelector 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:
getSelectorCountin interfaceGenerated.ReplicationControllerSpecOrBuilder
-
containsSelector
public boolean containsSelector(String key)
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:
containsSelectorin interfaceGenerated.ReplicationControllerSpecOrBuilder
-
getSelector
@Deprecated public Map<String,String> getSelector()
Deprecated.UsegetSelectorMap()instead.- Specified by:
getSelectorin interfaceGenerated.ReplicationControllerSpecOrBuilder
-
getSelectorMap
public Map<String,String> 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:
getSelectorMapin interfaceGenerated.ReplicationControllerSpecOrBuilder
-
getSelectorOrDefault
public String getSelectorOrDefault(String key, String defaultValue)
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:
getSelectorOrDefaultin interfaceGenerated.ReplicationControllerSpecOrBuilder
-
getSelectorOrThrow
public String getSelectorOrThrow(String key)
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:
getSelectorOrThrowin interfaceGenerated.ReplicationControllerSpecOrBuilder
-
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. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;- Specified by:
hasTemplatein interfaceGenerated.ReplicationControllerSpecOrBuilder- Returns:
- Whether the template field is set.
-
getTemplate
public Generated.PodTemplateSpec getTemplate()
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;- Specified by:
getTemplatein interfaceGenerated.ReplicationControllerSpecOrBuilder- Returns:
- The template.
-
getTemplateOrBuilder
public Generated.PodTemplateSpecOrBuilder getTemplateOrBuilder()
Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template +optional
optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;- Specified by:
getTemplateOrBuilderin interfaceGenerated.ReplicationControllerSpecOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Generated.ReplicationControllerSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ReplicationControllerSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ReplicationControllerSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ReplicationControllerSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ReplicationControllerSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ReplicationControllerSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ReplicationControllerSpec parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ReplicationControllerSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.ReplicationControllerSpec parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.ReplicationControllerSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ReplicationControllerSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ReplicationControllerSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.ReplicationControllerSpec.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.ReplicationControllerSpec.Builder newBuilder()
-
newBuilder
public static Generated.ReplicationControllerSpec.Builder newBuilder(Generated.ReplicationControllerSpec prototype)
-
toBuilder
public Generated.ReplicationControllerSpec.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.ReplicationControllerSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.ReplicationControllerSpec getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.ReplicationControllerSpec> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.ReplicationControllerSpec> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.ReplicationControllerSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-