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 Details

    • getDescriptor

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

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
    • internalGetFieldAccessorTable

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

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.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<V1.ReplicationControllerSpec.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
    • clearField

      public V1.ReplicationControllerSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
    • clearOneof

      public V1.ReplicationControllerSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
    • mergeFrom

      public V1.ReplicationControllerSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.ReplicationControllerSpec.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface V1.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 interface V1.ReplicationControllerSpecOrBuilder
    • setReplicas

      public V1.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;
    • clearReplicas

      public V1.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;
    • 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 V1.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 interface V1.ReplicationControllerSpecOrBuilder
    • setMinReadySeconds

      public V1.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;
    • clearMinReadySeconds

      public V1.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;
    • 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 interface V1.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 V1.ReplicationControllerSpecOrBuilder
    • getSelector

      @Deprecated public Map<String,String> getSelector()
      Deprecated.
      Use getSelectorMap() instead.
      Specified by:
      getSelector in interface V1.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 V1.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 V1.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 V1.ReplicationControllerSpecOrBuilder
    • clearSelector

      public V1.ReplicationControllerSpec.Builder clearSelector()
    • removeSelector

      public V1.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 V1.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 V1.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.
       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 V1.ReplicationControllerSpecOrBuilder
    • getTemplate

      public V1.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.
       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 V1.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

      public V1.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.
       More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
       +optional
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • getTemplateBuilder

      public V1.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.
       More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
       +optional
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • getTemplateOrBuilder

      public V1.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.
       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 V1.ReplicationControllerSpecOrBuilder
    • setUnknownFields

      public final V1.ReplicationControllerSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>
    • mergeUnknownFields

      public final V1.ReplicationControllerSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ReplicationControllerSpec.Builder>