2.93.0 (latest) 2.91.0 2.88.0 2.87.0 2.85.0 2.83.0 2.82.0 2.80.0 2.78.0 2.76.0 2.75.0 2.74.0 2.73.0 2.72.0 2.70.0 2.68.0 2.67.0 2.64.0 2.63.0 2.62.0 2.60.0 2.59.0 2.58.0 2.57.0 2.56.0 2.55.0 2.54.0 2.53.0 2.52.0 2.51.0 2.49.0 2.48.0 2.47.0 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.39.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.7 2.2.8

    public interface ConsumerQuotaMetricOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getConsumerQuotaLimits(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-service-usage/latest/com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit` |   |

### getConsumerQuotaLimitsCount()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getConsumerQuotaLimitsList()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-service-usage/latest/com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit>` |   |

### getConsumerQuotaLimitsOrBuilder(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-service-usage/latest/com.google.api.serviceusage.v1beta1.ConsumerQuotaLimitOrBuilder` |   |

### getConsumerQuotaLimitsOrBuilderList()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimitOrBuilder>` |   |

### getDescendantConsumerQuotaLimits(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-service-usage/latest/com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit` |   |

### getDescendantConsumerQuotaLimitsCount()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getDescendantConsumerQuotaLimitsList()

    public abstract 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;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-service-usage/latest/com.google.api.serviceusage.v1beta1.ConsumerQuotaLimit>` |   |

### getDescendantConsumerQuotaLimitsOrBuilder(int index)

    public abstract 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;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-service-usage/latest/com.google.api.serviceusage.v1beta1.ConsumerQuotaLimitOrBuilder` |   |

### getDescendantConsumerQuotaLimitsOrBuilderList()

    public abstract 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;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.api.serviceusage.v1beta1.ConsumerQuotaLimitOrBuilder>` |   |

### getDisplayName()

    public abstract String getDisplayName()

The display name of the metric.

An example name would be:
`CPUs`

`string display_name = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The displayName. |

### getDisplayNameBytes()

    public abstract ByteString getDisplayNameBytes()

The display name of the metric.

An example name would be:
`CPUs`

`string display_name = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for displayName. |

### getMetric()

    public abstract String getMetric()

The name of the metric.

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

`string metric = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The metric. |

### getMetricBytes()

    public abstract ByteString getMetricBytes()

The name of the metric.

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

`string metric = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for metric. |

### getName()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getUnit()

    public abstract String getUnit()

The units in which the metric value is reported.

`string unit = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The unit. |

### getUnitBytes()

    public abstract ByteString getUnitBytes()

The units in which the metric value is reported.

`string unit = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for unit. |