# Interface DimensionsInfoOrBuilder (0.61.0)

0.61.0 (latest) 0.59.0 0.56.0 0.55.0 0.53.0 0.51.0 0.50.0 0.49.0 0.48.0 0.46.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.38.0 0.36.0 0.35.0 0.32.0 0.31.0 0.30.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface DimensionsInfoOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsDimensions(String key)

    public abstract boolean containsDimensions(String key)

The map of dimensions for this dimensions info. The key of a map entry
is "region", "zone" or the name of a service specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimenisonInfo
instance configured for the specific value.
Example: {"provider" : "Foo Inc"} where "provider" is a service specific
dimension of a quota.

`map<string, string> dimensions = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getApplicableLocations(int index)

    public abstract String getApplicableLocations(int index)

The applicable regions or zones of this dimensions info. The field will be
set to \['global'\] for quotas that are not per region or per zone.
Otherwise, it will be set to the list of locations this dimension info is
applicable to.

`repeated string applicable_locations = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The applicableLocations at the given index. |

### getApplicableLocationsBytes(int index)

    public abstract ByteString getApplicableLocationsBytes(int index)

The applicable regions or zones of this dimensions info. The field will be
set to \['global'\] for quotas that are not per region or per zone.
Otherwise, it will be set to the list of locations this dimension info is
applicable to.

`repeated string applicable_locations = 3;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the applicableLocations at the given index. |

### getApplicableLocationsCount()

    public abstract int getApplicableLocationsCount()

The applicable regions or zones of this dimensions info. The field will be
set to \['global'\] for quotas that are not per region or per zone.
Otherwise, it will be set to the list of locations this dimension info is
applicable to.

`repeated string applicable_locations = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of applicableLocations. |

### getApplicableLocationsList()

    public abstract List<String> getApplicableLocationsList()

The applicable regions or zones of this dimensions info. The field will be
set to \['global'\] for quotas that are not per region or per zone.
Otherwise, it will be set to the list of locations this dimension info is
applicable to.

`repeated string applicable_locations = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the applicableLocations. |

### getDetails()

    public abstract QuotaDetails getDetails()

Quota details for the specified dimensions.

`.google.api.cloudquotas.v1.QuotaDetails details = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudquotas/latest/com.google.api.cloudquotas.v1.QuotaDetails` | The details. |

### getDetailsOrBuilder()

    public abstract QuotaDetailsOrBuilder getDetailsOrBuilder()

Quota details for the specified dimensions.

`.google.api.cloudquotas.v1.QuotaDetails details = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudquotas/latest/com.google.api.cloudquotas.v1.QuotaDetailsOrBuilder` |   |

### getDimensions() (deprecated)

    public abstract Map<String,String> getDimensions()

Use [#getDimensionsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudquotas/latest/com.google.api.cloudquotas.v1.DimensionsInfoOrBuilder#com_google_api_cloudquotas_v1_DimensionsInfoOrBuilder_getDimensionsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getDimensionsCount()

    public abstract int getDimensionsCount()

The map of dimensions for this dimensions info. The key of a map entry
is "region", "zone" or the name of a service specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimenisonInfo
instance configured for the specific value.
Example: {"provider" : "Foo Inc"} where "provider" is a service specific
dimension of a quota.

`map<string, string> dimensions = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getDimensionsMap()

    public abstract Map<String,String> getDimensionsMap()

The map of dimensions for this dimensions info. The key of a map entry
is "region", "zone" or the name of a service specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimenisonInfo
instance configured for the specific value.
Example: {"provider" : "Foo Inc"} where "provider" is a service specific
dimension of a quota.

`map<string, string> dimensions = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getDimensionsOrDefault(String key, String defaultValue)

    public abstract String getDimensionsOrDefault(String key, String defaultValue)

The map of dimensions for this dimensions info. The key of a map entry
is "region", "zone" or the name of a service specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimenisonInfo
instance configured for the specific value.
Example: {"provider" : "Foo Inc"} where "provider" is a service specific
dimension of a quota.

`map<string, string> dimensions = 1;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getDimensionsOrThrow(String key)

    public abstract String getDimensionsOrThrow(String key)

The map of dimensions for this dimensions info. The key of a map entry
is "region", "zone" or the name of a service specific dimension, and the
value of a map entry is the value of the dimension. If a dimension does
not appear in the map of dimensions, the dimensions info applies to all
the dimension values except for those that have another DimenisonInfo
instance configured for the specific value.
Example: {"provider" : "Foo Inc"} where "provider" is a service specific
dimension of a quota.

`map<string, string> dimensions = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### hasDetails()

    public abstract boolean hasDetails()

Quota details for the specified dimensions.

`.google.api.cloudquotas.v1.QuotaDetails details = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the details field is set. |