Class Generated.ReplicationControllerSpec.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ReplicationControllerSpec.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ReplicationControllerSpec.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ReplicationControllerSpec.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ReplicationControllerSpec.Builder>
      • getDefaultInstanceForType

        public Generated.ReplicationControllerSpec getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Generated.ReplicationControllerSpec build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Generated.ReplicationControllerSpec buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ReplicationControllerSpec.Builder>
      • 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 interface Generated.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:
        getReplicas in interface Generated.ReplicationControllerSpecOrBuilder
        Returns:
        The replicas.
      • setReplicas

        public Generated.ReplicationControllerSpec.Builder setReplicas​(int value)
         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;
        Parameters:
        value - The replicas to set.
        Returns:
        This builder for chaining.
      • clearReplicas

        public Generated.ReplicationControllerSpec.Builder 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;
        Returns:
        This builder for chaining.
      • 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 interface Generated.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:
        getMinReadySeconds in interface Generated.ReplicationControllerSpecOrBuilder
        Returns:
        The minReadySeconds.
      • setMinReadySeconds

        public Generated.ReplicationControllerSpec.Builder 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.
         Defaults to 0 (pod will be considered available as soon as it is ready)
         +optional
         
        optional int32 minReadySeconds = 4;
        Parameters:
        value - The minReadySeconds to set.
        Returns:
        This builder for chaining.
      • clearMinReadySeconds

        public Generated.ReplicationControllerSpec.Builder 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;
        Returns:
        This builder for chaining.
      • getSelectorCount

        public int getSelectorCount()
        Description copied from interface: Generated.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 interface Generated.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:
        containsSelector in interface Generated.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:
        getSelectorMap in interface Generated.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:
        getSelectorOrDefault in interface Generated.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:
        getSelectorOrThrow in interface Generated.ReplicationControllerSpecOrBuilder
      • removeSelector

        public Generated.ReplicationControllerSpec.Builder removeSelector​(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;
      • getMutableSelector

        @Deprecated
        public Map<String,​String> getMutableSelector()
        Deprecated.
        Use alternate mutation accessors instead.
      • putSelector

        public Generated.ReplicationControllerSpec.Builder putSelector​(String key,
                                                                       String value)
         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

        public Generated.ReplicationControllerSpec.Builder putAllSelector​(Map<String,​String> values)
         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.
         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:
        hasTemplate in interface Generated.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:
        getTemplate in interface Generated.ReplicationControllerSpecOrBuilder
        Returns:
        The template.
      • setTemplate

        public Generated.ReplicationControllerSpec.Builder setTemplate​(Generated.PodTemplateSpec value)
         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;
      • setTemplate

        public Generated.ReplicationControllerSpec.Builder setTemplate​(Generated.PodTemplateSpec.Builder builderForValue)
         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;
      • mergeTemplate

        public Generated.ReplicationControllerSpec.Builder mergeTemplate​(Generated.PodTemplateSpec value)
         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;
      • clearTemplate

        public Generated.ReplicationControllerSpec.Builder clearTemplate()
         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;
      • getTemplateBuilder

        public Generated.PodTemplateSpec.Builder getTemplateBuilder()
         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;
      • 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:
        getTemplateOrBuilder in interface Generated.ReplicationControllerSpecOrBuilder