public static final class ConsumerQuotaMetric.Builder extends GeneratedMessageV3.Builder<ConsumerQuotaMetric.Builder> implements ConsumerQuotaMetricOrBuilder
Consumer quota settings for a quota metric.
Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaMetric
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ConsumerQuotaMetric.BuilderImplements
ConsumerQuotaMetricOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllConsumerQuotaLimits(Iterable<? extends ConsumerQuotaLimit> values)
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;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit> |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
addAllDescendantConsumerQuotaLimits(Iterable<? extends ConsumerQuotaLimit> values)
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;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit> |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
addConsumerQuotaLimits(ConsumerQuotaLimit value)
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;
Parameter | |
---|---|
Name | Description |
value | ConsumerQuotaLimit |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
addConsumerQuotaLimits(ConsumerQuotaLimit.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue | ConsumerQuotaLimit.Builder |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
addConsumerQuotaLimits(int index, ConsumerQuotaLimit value)
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;
Parameters | |
---|---|
Name | Description |
index | int |
value | ConsumerQuotaLimit |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
addConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | ConsumerQuotaLimit.Builder |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
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;
Returns | |
---|---|
Type | Description |
ConsumerQuotaLimit.Builder |
addConsumerQuotaLimitsBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ConsumerQuotaLimit.Builder |
addDescendantConsumerQuotaLimits(ConsumerQuotaLimit value)
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;
Parameter | |
---|---|
Name | Description |
value | ConsumerQuotaLimit |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
addDescendantConsumerQuotaLimits(ConsumerQuotaLimit.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue | ConsumerQuotaLimit.Builder |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
addDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit value)
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;
Parameters | |
---|---|
Name | Description |
index | int |
value | ConsumerQuotaLimit |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
addDescendantConsumerQuotaLimits(int index, ConsumerQuotaLimit.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | ConsumerQuotaLimit.Builder |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
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;
Returns | |
---|---|
Type | Description |
ConsumerQuotaLimit.Builder |
addDescendantConsumerQuotaLimitsBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ConsumerQuotaLimit.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConsumerQuotaMetric.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
build()
public ConsumerQuotaMetric build()
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric |
buildPartial()
public ConsumerQuotaMetric buildPartial()
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric |
clear()
public ConsumerQuotaMetric.Builder clear()
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
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;
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
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;
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
clearDisplayName()
public ConsumerQuotaMetric.Builder clearDisplayName()
The display name of the metric.
An example name would be:
CPUs
string display_name = 2;
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ConsumerQuotaMetric.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
clearMetric()
public ConsumerQuotaMetric.Builder clearMetric()
The name of the metric.
An example name would be:
compute.googleapis.com/cpus
string metric = 4;
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder | 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 | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ConsumerQuotaMetric.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
clearUnit()
public ConsumerQuotaMetric.Builder clearUnit()
The units in which the metric value is reported.
string unit = 5;
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder | This builder for chaining. |
clone()
public ConsumerQuotaMetric.Builder clone()
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric.Builder |
getConsumerQuotaLimits(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ConsumerQuotaLimit |
getConsumerQuotaLimitsBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ConsumerQuotaLimit.Builder |
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;
Returns | |
---|---|
Type | Description |
List<Builder> |
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;
Returns | |
---|---|
Type | Description |
int |
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;
Returns | |
---|---|
Type | Description |
List<ConsumerQuotaLimit> |
getConsumerQuotaLimitsOrBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ConsumerQuotaLimitOrBuilder |
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;
Returns | |
---|---|
Type | Description |
List<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimitOrBuilder> |
getDefaultInstanceForType()
public ConsumerQuotaMetric getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ConsumerQuotaMetric |
getDescendantConsumerQuotaLimits(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ConsumerQuotaLimit |
getDescendantConsumerQuotaLimitsBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ConsumerQuotaLimit.Builder |
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;
Returns | |
---|---|
Type | Description |
List<Builder> |
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;
Returns | |
---|---|
Type | Description |
int |
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