Class ConsumerQuotaMetric.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConsumerQuotaMetric.Builder>
com.google.api.serviceusage.v1beta1.ConsumerQuotaMetric.Builder
All Implemented Interfaces:
ConsumerQuotaMetricOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConsumerQuotaMetric

public static final class ConsumerQuotaMetric.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConsumerQuotaMetric.Builder> implements ConsumerQuotaMetricOrBuilder
 Consumer quota settings for a quota metric.
 
Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaMetric
  • Method Details

    • getDescriptor

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

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

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

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

      public ConsumerQuotaMetric buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ConsumerQuotaMetric.Builder>
    • mergeFrom

      public ConsumerQuotaMetric.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<ConsumerQuotaMetric.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The resource name of the quota settings on this metric for this consumer.
      
       An example name would be:
       `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus`
      
       The resource name is intended to be opaque and should not be parsed for
       its component strings, since its representation could change in the future.
       
      string name = 1;
      Specified by:
      getName in interface ConsumerQuotaMetricOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name of the quota settings on this metric for this consumer.
      
       An example name would be:
       `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus`
      
       The resource name is intended to be opaque and should not be parsed for
       its component strings, since its representation could change in the future.
       
      string name = 1;
      Specified by:
      getNameBytes in interface ConsumerQuotaMetricOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ConsumerQuotaMetric.Builder setName(String value)
       The resource name of the quota settings on this metric for this consumer.
      
       An example name would be:
       `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus`
      
       The resource name is intended to be opaque and should not be parsed for
       its component strings, since its representation could change in the future.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ConsumerQuotaMetric.Builder clearName()
       The resource name of the quota settings on this metric for this consumer.
      
       An example name would be:
       `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus`
      
       The resource name is intended to be opaque and should not be parsed for
       its component strings, since its representation could change in the future.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ConsumerQuotaMetric.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name of the quota settings on this metric for this consumer.
      
       An example name would be:
       `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus`
      
       The resource name is intended to be opaque and should not be parsed for
       its component strings, since its representation could change in the future.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getMetric

      public String getMetric()
       The name of the metric.
      
       An example name would be:
       `compute.googleapis.com/cpus`
       
      string metric = 4;
      Specified by:
      getMetric in interface ConsumerQuotaMetricOrBuilder
      Returns:
      The metric.
    • getMetricBytes

      public com.google.protobuf.ByteString getMetricBytes()
       The name of the metric.
      
       An example name would be:
       `compute.googleapis.com/cpus`
       
      string metric = 4;
      Specified by:
      getMetricBytes in interface ConsumerQuotaMetricOrBuilder
      Returns:
      The bytes for metric.
    • setMetric

      public ConsumerQuotaMetric.Builder setMetric(String value)
       The name of the metric.
      
       An example name would be:
       `compute.googleapis.com/cpus`
       
      string metric = 4;
      Parameters:
      value - The metric to set.
      Returns:
      This builder for chaining.
    • clearMetric

      public ConsumerQuotaMetric.Builder clearMetric()
       The name of the metric.
      
       An example name would be:
       `compute.googleapis.com/cpus`
       
      string metric = 4;
      Returns:
      This builder for chaining.
    • setMetricBytes

      public ConsumerQuotaMetric.Builder setMetricBytes(com.google.protobuf.ByteString value)
       The name of the metric.
      
       An example name would be:
       `compute.googleapis.com/cpus`
       
      string metric = 4;
      Parameters:
      value - The bytes for metric to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       The display name of the metric.
      
       An example name would be:
       `CPUs`
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface ConsumerQuotaMetricOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The display name of the metric.
      
       An example name would be:
       `CPUs`
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface ConsumerQuotaMetricOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public ConsumerQuotaMetric.Builder setDisplayName(String value)
       The display name of the metric.
      
       An example name would be:
       `CPUs`
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public ConsumerQuotaMetric.Builder clearDisplayName()
       The display name of the metric.
      
       An example name would be:
       `CPUs`
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public ConsumerQuotaMetric.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The display name of the metric.
      
       An example name would be:
       `CPUs`
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getConsumerQuotaLimitsList

      public List<ConsumerQuotaLimit> getConsumerQuotaLimitsList()
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
      Specified by:
      getConsumerQuotaLimitsList in interface ConsumerQuotaMetricOrBuilder
    • getConsumerQuotaLimitsCount

      public int getConsumerQuotaLimitsCount()
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
      Specified by:
      getConsumerQuotaLimitsCount in interface ConsumerQuotaMetricOrBuilder
    • getConsumerQuotaLimits

      public ConsumerQuotaLimit getConsumerQuotaLimits(int index)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
      Specified by:
      getConsumerQuotaLimits in interface ConsumerQuotaMetricOrBuilder
    • setConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder setConsumerQuotaLimits(int index, ConsumerQuotaLimit value)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • setConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder setConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • addConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder addConsumerQuotaLimits(ConsumerQuotaLimit value)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • addConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder addConsumerQuotaLimits(int index, ConsumerQuotaLimit value)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • addConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder addConsumerQuotaLimits(ConsumerQuotaLimit.Builder builderForValue)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • addConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder addConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • addAllConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder addAllConsumerQuotaLimits(Iterable<? extends ConsumerQuotaLimit> values)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • clearConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder clearConsumerQuotaLimits()
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • removeConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder removeConsumerQuotaLimits(int index)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • getConsumerQuotaLimitsBuilder

      public ConsumerQuotaLimit.Builder getConsumerQuotaLimitsBuilder(int index)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • getConsumerQuotaLimitsOrBuilder

      public ConsumerQuotaLimitOrBuilder getConsumerQuotaLimitsOrBuilder(int index)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
      Specified by:
      getConsumerQuotaLimitsOrBuilder in interface ConsumerQuotaMetricOrBuilder
    • getConsumerQuotaLimitsOrBuilderList

      public List<? extends ConsumerQuotaLimitOrBuilder> getConsumerQuotaLimitsOrBuilderList()
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
      Specified by:
      getConsumerQuotaLimitsOrBuilderList in interface ConsumerQuotaMetricOrBuilder
    • addConsumerQuotaLimitsBuilder

      public ConsumerQuotaLimit.Builder addConsumerQuotaLimitsBuilder()
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • addConsumerQuotaLimitsBuilder

      public ConsumerQuotaLimit.Builder addConsumerQuotaLimitsBuilder(int index)
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • getConsumerQuotaLimitsBuilderList

      public List<ConsumerQuotaLimit.Builder> getConsumerQuotaLimitsBuilderList()
       The consumer quota for each quota limit defined on the metric.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit consumer_quota_limits = 3;
    • getDescendantConsumerQuotaLimitsList

      public List<ConsumerQuotaLimit> getDescendantConsumerQuotaLimitsList()
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
      Specified by:
      getDescendantConsumerQuotaLimitsList in interface ConsumerQuotaMetricOrBuilder
    • getDescendantConsumerQuotaLimitsCount

      public int getDescendantConsumerQuotaLimitsCount()
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
      Specified by:
      getDescendantConsumerQuotaLimitsCount in interface ConsumerQuotaMetricOrBuilder
    • getDescendantConsumerQuotaLimits

      public ConsumerQuotaLimit getDescendantConsumerQuotaLimits(int index)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
      Specified by:
      getDescendantConsumerQuotaLimits in interface ConsumerQuotaMetricOrBuilder
    • setDescendantConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder setDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit value)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • setDescendantConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder setDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • addDescendantConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder addDescendantConsumerQuotaLimits(ConsumerQuotaLimit value)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • addDescendantConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder addDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit value)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • addDescendantConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder addDescendantConsumerQuotaLimits(ConsumerQuotaLimit.Builder builderForValue)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • addDescendantConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder addDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • addAllDescendantConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder addAllDescendantConsumerQuotaLimits(Iterable<? extends ConsumerQuotaLimit> values)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • clearDescendantConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder clearDescendantConsumerQuotaLimits()
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • removeDescendantConsumerQuotaLimits

      public ConsumerQuotaMetric.Builder removeDescendantConsumerQuotaLimits(int index)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • getDescendantConsumerQuotaLimitsBuilder

      public ConsumerQuotaLimit.Builder getDescendantConsumerQuotaLimitsBuilder(int index)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • getDescendantConsumerQuotaLimitsOrBuilder

      public ConsumerQuotaLimitOrBuilder getDescendantConsumerQuotaLimitsOrBuilder(int index)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
      Specified by:
      getDescendantConsumerQuotaLimitsOrBuilder in interface ConsumerQuotaMetricOrBuilder
    • getDescendantConsumerQuotaLimitsOrBuilderList

      public List<? extends ConsumerQuotaLimitOrBuilder> getDescendantConsumerQuotaLimitsOrBuilderList()
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
      Specified by:
      getDescendantConsumerQuotaLimitsOrBuilderList in interface ConsumerQuotaMetricOrBuilder
    • addDescendantConsumerQuotaLimitsBuilder

      public ConsumerQuotaLimit.Builder addDescendantConsumerQuotaLimitsBuilder()
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • addDescendantConsumerQuotaLimitsBuilder

      public ConsumerQuotaLimit.Builder addDescendantConsumerQuotaLimitsBuilder(int index)
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • getDescendantConsumerQuotaLimitsBuilderList

      public List<ConsumerQuotaLimit.Builder> getDescendantConsumerQuotaLimitsBuilderList()
       The quota limits targeting the descendant containers of the
       consumer in request.
      
       If the consumer in request is of type `organizations`
       or `folders`, the field will list per-project limits in the metric; if the
       consumer in request is of type `project`, the field will be empty.
      
       The `quota_buckets` field of each descendant consumer quota limit will not
       be populated.
       
      repeated .google.api.serviceusage.v1beta1.ConsumerQuotaLimit descendant_consumer_quota_limits = 6;
    • getUnit

      public String getUnit()
       The units in which the metric value is reported.
       
      string unit = 5;
      Specified by:
      getUnit in interface ConsumerQuotaMetricOrBuilder
      Returns:
      The unit.
    • getUnitBytes

      public com.google.protobuf.ByteString getUnitBytes()
       The units in which the metric value is reported.
       
      string unit = 5;
      Specified by:
      getUnitBytes in interface ConsumerQuotaMetricOrBuilder
      Returns:
      The bytes for unit.
    • setUnit

      public ConsumerQuotaMetric.Builder setUnit(String value)
       The units in which the metric value is reported.
       
      string unit = 5;
      Parameters:
      value - The unit to set.
      Returns:
      This builder for chaining.
    • clearUnit

      public ConsumerQuotaMetric.Builder clearUnit()
       The units in which the metric value is reported.
       
      string unit = 5;
      Returns:
      This builder for chaining.
    • setUnitBytes

      public ConsumerQuotaMetric.Builder setUnitBytes(com.google.protobuf.ByteString value)
       The units in which the metric value is reported.
       
      string unit = 5;
      Parameters:
      value - The bytes for unit to set.
      Returns:
      This builder for chaining.