Class V1beta1Apps.ScaleStatus.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.ScaleStatus.Builder>
io.kubernetes.client.proto.V1beta1Apps.ScaleStatus.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1beta1Apps.ScaleStatusOrBuilder, Cloneable
Enclosing class:
V1beta1Apps.ScaleStatus

public static final class V1beta1Apps.ScaleStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.ScaleStatus.Builder> implements V1beta1Apps.ScaleStatusOrBuilder
 ScaleStatus represents the current status of a scale subresource.
 
Protobuf type k8s.io.api.apps.v1beta1.ScaleStatus
  • 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<V1beta1Apps.ScaleStatus.Builder>
    • internalGetMutableMapField

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.Builder>
    • getDefaultInstanceForType

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

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

      public V1beta1Apps.ScaleStatus 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<V1beta1Apps.ScaleStatus.Builder>
    • setField

      public V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.Builder>
    • clearField

      public V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.Builder>
    • clearOneof

      public V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.Builder>
    • setRepeatedField

      public V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.Builder>
    • addRepeatedField

      public V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.Builder>
    • mergeFrom

      public V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.Builder>
    • mergeFrom

      public V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.Builder>
      Throws:
      IOException
    • hasReplicas

      public boolean hasReplicas()
       actual number of observed instances of the scaled object.
       
      optional int32 replicas = 1;
      Specified by:
      hasReplicas in interface V1beta1Apps.ScaleStatusOrBuilder
    • getReplicas

      public int getReplicas()
       actual number of observed instances of the scaled object.
       
      optional int32 replicas = 1;
      Specified by:
      getReplicas in interface V1beta1Apps.ScaleStatusOrBuilder
    • setReplicas

      public V1beta1Apps.ScaleStatus.Builder setReplicas(int value)
       actual number of observed instances of the scaled object.
       
      optional int32 replicas = 1;
    • clearReplicas

      public V1beta1Apps.ScaleStatus.Builder clearReplicas()
       actual number of observed instances of the scaled object.
       
      optional int32 replicas = 1;
    • getSelectorCount

      public int getSelectorCount()
      Description copied from interface: V1beta1Apps.ScaleStatusOrBuilder
       label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      map<string, string> selector = 2;
      Specified by:
      getSelectorCount in interface V1beta1Apps.ScaleStatusOrBuilder
    • containsSelector

      public boolean containsSelector(String key)
       label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      map<string, string> selector = 2;
      Specified by:
      containsSelector in interface V1beta1Apps.ScaleStatusOrBuilder
    • getSelector

      @Deprecated public Map<String,String> getSelector()
      Deprecated.
      Use getSelectorMap() instead.
      Specified by:
      getSelector in interface V1beta1Apps.ScaleStatusOrBuilder
    • getSelectorMap

      public Map<String,String> getSelectorMap()
       label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      map<string, string> selector = 2;
      Specified by:
      getSelectorMap in interface V1beta1Apps.ScaleStatusOrBuilder
    • getSelectorOrDefault

      public String getSelectorOrDefault(String key, String defaultValue)
       label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      map<string, string> selector = 2;
      Specified by:
      getSelectorOrDefault in interface V1beta1Apps.ScaleStatusOrBuilder
    • getSelectorOrThrow

      public String getSelectorOrThrow(String key)
       label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      map<string, string> selector = 2;
      Specified by:
      getSelectorOrThrow in interface V1beta1Apps.ScaleStatusOrBuilder
    • clearSelector

      public V1beta1Apps.ScaleStatus.Builder clearSelector()
    • removeSelector

      public V1beta1Apps.ScaleStatus.Builder removeSelector(String key)
       label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      map<string, string> selector = 2;
    • getMutableSelector

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

      public V1beta1Apps.ScaleStatus.Builder putSelector(String key, String value)
       label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      map<string, string> selector = 2;
    • putAllSelector

      public V1beta1Apps.ScaleStatus.Builder putAllSelector(Map<String,String> values)
       label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      map<string, string> selector = 2;
    • hasTargetSelector

      public boolean hasTargetSelector()
       label selector for pods that should match the replicas count. This is a serializated
       version of both map-based and more expressive set-based selectors. This is done to
       avoid introspection in the clients. The string will be in the same format as the
       query-param syntax. If the target type only supports map-based selectors, both this
       field and map-based selector field are populated.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       +optional
       
      optional string targetSelector = 3;
      Specified by:
      hasTargetSelector in interface V1beta1Apps.ScaleStatusOrBuilder
    • getTargetSelector

      public String getTargetSelector()
       label selector for pods that should match the replicas count. This is a serializated
       version of both map-based and more expressive set-based selectors. This is done to
       avoid introspection in the clients. The string will be in the same format as the
       query-param syntax. If the target type only supports map-based selectors, both this
       field and map-based selector field are populated.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       +optional
       
      optional string targetSelector = 3;
      Specified by:
      getTargetSelector in interface V1beta1Apps.ScaleStatusOrBuilder
    • getTargetSelectorBytes

      public com.google.protobuf.ByteString getTargetSelectorBytes()
       label selector for pods that should match the replicas count. This is a serializated
       version of both map-based and more expressive set-based selectors. This is done to
       avoid introspection in the clients. The string will be in the same format as the
       query-param syntax. If the target type only supports map-based selectors, both this
       field and map-based selector field are populated.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       +optional
       
      optional string targetSelector = 3;
      Specified by:
      getTargetSelectorBytes in interface V1beta1Apps.ScaleStatusOrBuilder
    • setTargetSelector

      public V1beta1Apps.ScaleStatus.Builder setTargetSelector(String value)
       label selector for pods that should match the replicas count. This is a serializated
       version of both map-based and more expressive set-based selectors. This is done to
       avoid introspection in the clients. The string will be in the same format as the
       query-param syntax. If the target type only supports map-based selectors, both this
       field and map-based selector field are populated.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       +optional
       
      optional string targetSelector = 3;
    • clearTargetSelector

      public V1beta1Apps.ScaleStatus.Builder clearTargetSelector()
       label selector for pods that should match the replicas count. This is a serializated
       version of both map-based and more expressive set-based selectors. This is done to
       avoid introspection in the clients. The string will be in the same format as the
       query-param syntax. If the target type only supports map-based selectors, both this
       field and map-based selector field are populated.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       +optional
       
      optional string targetSelector = 3;
    • setTargetSelectorBytes

      public V1beta1Apps.ScaleStatus.Builder setTargetSelectorBytes(com.google.protobuf.ByteString value)
       label selector for pods that should match the replicas count. This is a serializated
       version of both map-based and more expressive set-based selectors. This is done to
       avoid introspection in the clients. The string will be in the same format as the
       query-param syntax. If the target type only supports map-based selectors, both this
       field and map-based selector field are populated.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       +optional
       
      optional string targetSelector = 3;
    • setUnknownFields

      public final V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.Builder>
    • mergeUnknownFields

      public final V1beta1Apps.ScaleStatus.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<V1beta1Apps.ScaleStatus.Builder>