Class V1Autoscaling.ScaleStatus.Builder

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

public static final class V1Autoscaling.ScaleStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ScaleStatus.Builder> implements V1Autoscaling.ScaleStatusOrBuilder
 ScaleStatus represents the current status of a scale subresource.
 
Protobuf type k8s.io.api.autoscaling.v1.ScaleStatus
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

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

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

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

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

      public V1Autoscaling.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<V1Autoscaling.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 V1Autoscaling.ScaleStatusOrBuilder
    • getReplicas

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

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

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

      public boolean hasSelector()
       label query over pods that should match the replicas count. This is same
       as the label selector but in the string format to avoid introspection
       by clients. The string will be in the same format as the query-param syntax.
       More info about label selectors: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      optional string selector = 2;
      Specified by:
      hasSelector in interface V1Autoscaling.ScaleStatusOrBuilder
    • getSelector

      public String getSelector()
       label query over pods that should match the replicas count. This is same
       as the label selector but in the string format to avoid introspection
       by clients. The string will be in the same format as the query-param syntax.
       More info about label selectors: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      optional string selector = 2;
      Specified by:
      getSelector in interface V1Autoscaling.ScaleStatusOrBuilder
    • getSelectorBytes

      public com.google.protobuf.ByteString getSelectorBytes()
       label query over pods that should match the replicas count. This is same
       as the label selector but in the string format to avoid introspection
       by clients. The string will be in the same format as the query-param syntax.
       More info about label selectors: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      optional string selector = 2;
      Specified by:
      getSelectorBytes in interface V1Autoscaling.ScaleStatusOrBuilder
    • setSelector

      public V1Autoscaling.ScaleStatus.Builder setSelector(String value)
       label query over pods that should match the replicas count. This is same
       as the label selector but in the string format to avoid introspection
       by clients. The string will be in the same format as the query-param syntax.
       More info about label selectors: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      optional string selector = 2;
    • clearSelector

      public V1Autoscaling.ScaleStatus.Builder clearSelector()
       label query over pods that should match the replicas count. This is same
       as the label selector but in the string format to avoid introspection
       by clients. The string will be in the same format as the query-param syntax.
       More info about label selectors: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      optional string selector = 2;
    • setSelectorBytes

      public V1Autoscaling.ScaleStatus.Builder setSelectorBytes(com.google.protobuf.ByteString value)
       label query over pods that should match the replicas count. This is same
       as the label selector but in the string format to avoid introspection
       by clients. The string will be in the same format as the query-param syntax.
       More info about label selectors: https://kubernetes.io/docs/user-guide/labels#label-selectors
       +optional
       
      optional string selector = 2;
    • setUnknownFields

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

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