# Interface CloudLocationOrBuilder (0.18.0)

0.18.0 (latest) 0.16.0 0.13.0 0.12.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.3.0 0.1.0

    public interface CloudLocationOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCarbonFreeEnergyPercentage()

    public abstract float getCarbonFreeEnergyPercentage()

Optional. The carbon free energy percentage of the cloud location. This
represents the average percentage of time customers' application will be
running on carbon-free energy. See
<https://cloud.google.com/sustainability/region-carbon> for more details.
There is a difference between default value 0 and unset value. 0 means the
carbon free energy percentage is 0%, while unset value means the carbon
footprint data is not available.

`
optional float carbon_free_energy_percentage = 7 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getCloudLocationType()

    public abstract CloudLocation.CloudLocationType getCloudLocationType()

Optional. The type of the cloud location.

`
.google.cloud.locationfinder.v1.CloudLocation.CloudLocationType cloud_location_type = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/com.google.cloud.locationfinder.v1.CloudLocation.CloudLocationType` | The cloudLocationType. |

### getCloudLocationTypeValue()

    public abstract int getCloudLocationTypeValue()

Optional. The type of the cloud location.

`
.google.cloud.locationfinder.v1.CloudLocation.CloudLocationType cloud_location_type = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for cloudLocationType. |

### getCloudProvider()

    public abstract CloudLocation.CloudProvider getCloudProvider()

Optional. The provider of the cloud location. Values can be Google Cloud or
third-party providers, including AWS, Azure, or Oracle Cloud
Infrastructure.

`
.google.cloud.locationfinder.v1.CloudLocation.CloudProvider cloud_provider = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/com.google.cloud.locationfinder.v1.CloudLocation.CloudProvider` | The cloudProvider. |

### getCloudProviderValue()

    public abstract int getCloudProviderValue()

Optional. The provider of the cloud location. Values can be Google Cloud or
third-party providers, including AWS, Azure, or Oracle Cloud
Infrastructure.

`
.google.cloud.locationfinder.v1.CloudLocation.CloudProvider cloud_provider = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for cloudProvider. |

### getContainingCloudLocation()

    public abstract String getContainingCloudLocation()

Output only. The containing cloud location in the strict nesting hierarchy.
For example, the containing cloud location of a zone is a region.

`
string containing_cloud_location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getContainingCloudLocationBytes()

    public abstract ByteString getContainingCloudLocationBytes()

Output only. The containing cloud location in the strict nesting hierarchy.
For example, the containing cloud location of a zone is a region.

`
string containing_cloud_location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
`

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

### getDisplayName()

    public abstract String getDisplayName()

Optional. The human-readable name of the cloud location. Example:
us-east-2, us-east1.

`string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getDisplayNameBytes()

    public abstract ByteString getDisplayNameBytes()

Optional. The human-readable name of the cloud location. Example:
us-east-2, us-east1.

`string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getName()

    public abstract String getName()

Identifier. Name of the cloud location. Unique name of the cloud location
including project and location using the form:
`projects/{project_id}/locations/{location}/cloudLocations/{cloud_location}`

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Identifier. Name of the cloud location. Unique name of the cloud location
including project and location using the form:
`projects/{project_id}/locations/{location}/cloudLocations/{cloud_location}`

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

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

### getTerritoryCode()

    public abstract String getTerritoryCode()

Optional. The two-letter ISO 3166-1 alpha-2 code of the cloud location.
Examples: US, JP, KR.

`string territory_code = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getTerritoryCodeBytes()

    public abstract ByteString getTerritoryCodeBytes()

Optional. The two-letter ISO 3166-1 alpha-2 code of the cloud location.
Examples: US, JP, KR.

`string territory_code = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasCarbonFreeEnergyPercentage()

    public abstract boolean hasCarbonFreeEnergyPercentage()

Optional. The carbon free energy percentage of the cloud location. This
represents the average percentage of time customers' application will be
running on carbon-free energy. See
<https://cloud.google.com/sustainability/region-carbon> for more details.
There is a difference between default value 0 and unset value. 0 means the
carbon free energy percentage is 0%, while unset value means the carbon
footprint data is not available.

`
optional float carbon_free_energy_percentage = 7 [(.google.api.field_behavior) = OPTIONAL];
`

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