Interface ConsumerQuotaMetricOrBuilder (2.32.0)

publicinterface ConsumerQuotaMetricOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getConsumerQuotaLimits(int index)

publicabstractConsumerQuotaLimitgetConsumerQuotaLimits(intindex)

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

getConsumerQuotaLimitsCount()

publicabstractintgetConsumerQuotaLimitsCount()

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()

publicabstractList<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)

publicabstractConsumerQuotaLimitOrBuildergetConsumerQuotaLimitsOrBuilder(intindex)

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()

publicabstractList<?extendsConsumerQuotaLimitOrBuilder>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>

getDescendantConsumerQuotaLimits(int index)

publicabstractConsumerQuotaLimitgetDescendantConsumerQuotaLimits(intindex)

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

getDescendantConsumerQuotaLimitsCount()

publicabstractintgetDescendantConsumerQuotaLimitsCount()

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()

publicabstractList<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;

Returns
Type Description
List<ConsumerQuotaLimit>

getDescendantConsumerQuotaLimitsOrBuilder(int index)

publicabstractConsumerQuotaLimitOrBuildergetDescendantConsumerQuotaLimitsOrBuilder(intindex)

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
ConsumerQuotaLimitOrBuilder

getDescendantConsumerQuotaLimitsOrBuilderList()

publicabstractList<?extendsConsumerQuotaLimitOrBuilder>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;

Returns
Type Description
List<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimitOrBuilder>

getDisplayName()

publicabstractStringgetDisplayName()

The display name of the metric.

An example name would be: CPUs

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

publicabstractByteStringgetDisplayNameBytes()

The display name of the metric.

An example name would be: CPUs

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getMetric()

publicabstractStringgetMetric()

The name of the metric.

An example name would be: compute.googleapis.com/cpus

string metric = 4;

Returns
Type Description
String

The metric.

getMetricBytes()

publicabstractByteStringgetMetricBytes()

The name of the metric.

An example name would be: compute.googleapis.com/cpus

string metric = 4;

Returns
Type Description
ByteString

The bytes for metric.

getName()

publicabstractStringgetName()

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
String

The name.

getNameBytes()

publicabstractByteStringgetNameBytes()

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
ByteString

The bytes for name.

getUnit()

publicabstractStringgetUnit()

The units in which the metric value is reported.

string unit = 5;

Returns
Type Description
String

The unit.

getUnitBytes()

publicabstractByteStringgetUnitBytes()

The units in which the metric value is reported.

string unit = 5;

Returns
Type Description
ByteString

The bytes for unit.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.