# Interface LocationIdentifierOrBuilder (0.16.0)

0.16.0 (latest) 0.14.0 0.11.0 0.10.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.1.0

    public interface LocationIdentifierOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getLinkedLocations(int index)

    public abstract LocationIdentifier.LinkedLocation getLinkedLocations(int index)

Optional. Other linked locations.

`
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **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-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation` |   |

### getLinkedLocationsCount()

    public abstract int getLinkedLocationsCount()

Optional. Other linked locations.

`
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getLinkedLocationsList()

    public abstract List<LocationIdentifier.LinkedLocation> getLinkedLocationsList()

Optional. Other linked locations.

`
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **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-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation>` |   |

### getLinkedLocationsOrBuilder(int index)

    public abstract LocationIdentifier.LinkedLocationOrBuilder getLinkedLocationsOrBuilder(int index)

Optional. Other linked locations.

`
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **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-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocationOrBuilder` |   |

### getLinkedLocationsOrBuilderList()

    public abstract List<? extends LocationIdentifier.LinkedLocationOrBuilder> getLinkedLocationsOrBuilderList()

Optional. Other linked locations.

`
repeated .google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocation linked_locations = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.capacityplanner.v1beta.LocationIdentifier.LinkedLocationOrBuilder>` |   |

### getLocationLevel()

    public abstract LocationLevel getLocationLevel()

The location level such as a region.

`.google.cloud.capacityplanner.v1beta.LocationLevel location_level = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.LocationLevel` | The locationLevel. |

### getLocationLevelValue()

    public abstract int getLocationLevelValue()

The location level such as a region.

`.google.cloud.capacityplanner.v1beta.LocationLevel location_level = 1;`

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

### getSource()

    public abstract String getSource()

Required. Location where resource is sourced. For Cloud Storage, the
alphabetically first location is the source.

`string source = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### getSourceBytes()

    public abstract ByteString getSourceBytes()

Required. Location where resource is sourced. For Cloud Storage, the
alphabetically first location is the source.

`string source = 2 [(.google.api.field_behavior) = REQUIRED];`

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