Class V2beta2Autoscaling.MetricIdentifier.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricIdentifier.Builder>
io.kubernetes.client.proto.V2beta2Autoscaling.MetricIdentifier.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V2beta2Autoscaling.MetricIdentifierOrBuilder, Cloneable
Enclosing class:
V2beta2Autoscaling.MetricIdentifier

public static final class V2beta2Autoscaling.MetricIdentifier.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricIdentifier.Builder> implements V2beta2Autoscaling.MetricIdentifierOrBuilder
 MetricIdentifier defines the name and optionally selector for a metric
 
Protobuf type k8s.io.api.autoscaling.v2beta2.MetricIdentifier
  • 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<V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.Builder>
    • getDefaultInstanceForType

      public V2beta2Autoscaling.MetricIdentifier 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 V2beta2Autoscaling.MetricIdentifier 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<V2beta2Autoscaling.MetricIdentifier.Builder>
    • setField

      public V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.Builder>
    • clearField

      public V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.Builder>
    • clearOneof

      public V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.Builder>
    • setRepeatedField

      public V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.Builder>
    • addRepeatedField

      public V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.Builder>
    • mergeFrom

      public V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.Builder>
    • mergeFrom

      public V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       name is the name of the given metric
       
      optional string name = 1;
      Specified by:
      hasName in interface V2beta2Autoscaling.MetricIdentifierOrBuilder
    • getName

      public String getName()
       name is the name of the given metric
       
      optional string name = 1;
      Specified by:
      getName in interface V2beta2Autoscaling.MetricIdentifierOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       name is the name of the given metric
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface V2beta2Autoscaling.MetricIdentifierOrBuilder
    • setName

       name is the name of the given metric
       
      optional string name = 1;
    • clearName

       name is the name of the given metric
       
      optional string name = 1;
    • setNameBytes

      public V2beta2Autoscaling.MetricIdentifier.Builder setNameBytes(com.google.protobuf.ByteString value)
       name is the name of the given metric
       
      optional string name = 1;
    • hasSelector

      public boolean hasSelector()
       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      hasSelector in interface V2beta2Autoscaling.MetricIdentifierOrBuilder
    • getSelector

      public Meta.LabelSelector getSelector()
       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      getSelector in interface V2beta2Autoscaling.MetricIdentifierOrBuilder
    • setSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • setSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • mergeSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • clearSelector

       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • getSelectorBuilder

      public Meta.LabelSelector.Builder getSelectorBuilder()
       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
    • getSelectorOrBuilder

      public Meta.LabelSelectorOrBuilder getSelectorOrBuilder()
       selector is the string-encoded form of a standard kubernetes label selector for the given metric
       When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.
       When unset, just the metricName will be used to gather metrics.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
      Specified by:
      getSelectorOrBuilder in interface V2beta2Autoscaling.MetricIdentifierOrBuilder
    • setUnknownFields

      public final V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.Builder>
    • mergeUnknownFields

      public final V2beta2Autoscaling.MetricIdentifier.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<V2beta2Autoscaling.MetricIdentifier.Builder>