Class ConsumerQuotaMetric.Builder

    • Method Detail

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • 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.
      • 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
      • 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;
      • 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;
      • 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.
      • setUnknownFields

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

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