# Compute V1 Client - Class InterconnectLocation (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.1 1.21.0 1.20.0 1.19.0 1.18.1 1.17.0 1.16.2 1.14.0 1.13.0 1.12.1 1.11.1 1.10.1 1.9.1 1.8.3 1.7.1 1.6.1 1.5.0 Reference documentation and code samples for the Compute V1 Client class InterconnectLocation.

Represents an Interconnect Attachment (VLAN) Location resource.

You can use this resource to find location details about an Interconnect
attachment (VLAN). For more information about interconnect attachments, read
Creating VLAN Attachments.

Generated from protobuf message `google.cloud.compute.v1.InterconnectLocation`

## Namespace

Google \\ Cloud \\ Compute \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ address` | `string` Output only. \[Output Only\] The postal address of the Point of Presence, each line in the address is separated by a newline character. |
| `↳ availability_zone` | `string` \[Output Only\] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: "zone1" or "zone2". |
| `↳ available_features` | `string[]` \[Output only\] List of features available at this InterconnectLocation, which can take one of the following values: - IF_MACSEC - IF_CROSS_SITE_NETWORK Check the AvailableFeatures enum for the list of possible values. |
| `↳ available_link_types` | `string[]` \[Output only\] List of link types available at this InterconnectLocation, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR - LINK_TYPE_ETHERNET_400G_LR4 Check the AvailableLinkTypes enum for the list of possible values. |
| `↳ city` | `string` \[Output Only\] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". |
| `↳ continent` | `string` \[Output Only\] Continent for this location, which can take one of the following values: - AFRICA - ASIA_PAC - EUROPE - NORTH_AMERICA - SOUTH_AMERICA Check the Continent enum for the list of possible values. |
| `↳ creation_timestamp` | `string` Output only. \[Output Only\] Creation timestamp inRFC3339 text format. |
| `↳ cross_site_interconnect_infos` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InterconnectLocationCrossSiteInterconnectInfo>` \[Output Only\] A list of InterconnectLocation.CrossSiteInterconnectInfo objects, that describe where Cross-Site Interconnect wires may connect to from this location and associated connection parameters. Cross-Site Interconnect isn't allowed to locations which are not listed. |
| `↳ description` | `string` Output only. \[Output Only\] An optional description of the resource. |
| `↳ facility_provider` | `string` Output only. \[Output Only\] The name of the provider for this facility (e.g., EQUINIX). |
| `↳ facility_provider_facility_id` | `string` Output only. \[Output Only\] A provider-assigned Identifier for this facility (e.g., Ashburn-DC1). |
| `↳ id` | `int|string` Output only. \[Output Only\] The unique identifier for the resource. This identifier is defined by the server. |
| `↳ kind` | `string` Output only. \[Output Only\] Type of the resource. Alwayscompute#interconnectLocation for interconnect locations. |
| `↳ name` | `string` Output only. \[Output Only\] Name of the resource. |
| `↳ peeringdb_facility_id` | `string` Output only. \[Output Only\] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb). |
| `↳ region_infos` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InterconnectLocationRegionInfo>` Output only. \[Output Only\] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions. |
| `↳ self_link` | `string` Output only. \[Output Only\] Server-defined URL for the resource. |
| `↳ single_region_production_critical_peer_locations` | `string[]` Output only. \[Output Only\] URLs of the other locations that can pair up with this location to support Single-Region 99.99% SLA. E.g. iad-zone1-1 and iad-zone2-5467 are Single-Region 99.99% peer locations of each other. |
| `↳ status` | `string` \[Output Only\] The status of this InterconnectLocation, which can take one of the following values: - CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects. - AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects. Check the Status enum for the list of possible values. |
| `↳ supports_pzs` | `bool` Output only. \[Output Only\] Reserved for future use. |

### getAddress

Output only. \[Output Only\] The postal address of the Point of Presence, each line in
the address is separated by a newline character.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasAddress

### clearAddress

### setAddress

Output only. \[Output Only\] The postal address of the Point of Presence, each line in
the address is separated by a newline character.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAvailabilityZone

\[Output Only\] Availability zone for this InterconnectLocation. Within a
metropolitan area (metro), maintenance will not be simultaneously scheduled
in more than one availability zone. Example: "zone1" or "zone2".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasAvailabilityZone

### clearAvailabilityZone

### setAvailabilityZone

\[Output Only\] Availability zone for this InterconnectLocation. Within a
metropolitan area (metro), maintenance will not be simultaneously scheduled
in more than one availability zone. Example: "zone1" or "zone2".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAvailableFeatures

\[Output only\] List of features available at this InterconnectLocation,
which can take one of the following values:

- IF_MACSEC
- IF_CROSS_SITE_NETWORK Check the AvailableFeatures enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setAvailableFeatures

\[Output only\] List of features available at this InterconnectLocation,
which can take one of the following values:

- IF_MACSEC
- IF_CROSS_SITE_NETWORK Check the AvailableFeatures enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAvailableLinkTypes

\[Output only\] List of link types available at this InterconnectLocation,
which can take one of the following values:

- LINK_TYPE_ETHERNET_10G_LR
- LINK_TYPE_ETHERNET_100G_LR
- LINK_TYPE_ETHERNET_400G_LR4 Check the AvailableLinkTypes enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setAvailableLinkTypes

\[Output only\] List of link types available at this InterconnectLocation,
which can take one of the following values:

- LINK_TYPE_ETHERNET_10G_LR
- LINK_TYPE_ETHERNET_100G_LR
- LINK_TYPE_ETHERNET_400G_LR4 Check the AvailableLinkTypes enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCity

\[Output Only\] Metropolitan area designator that indicates which city an
interconnect is located.

For example: "Chicago, IL", "Amsterdam, Netherlands".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasCity

### clearCity

### setCity

\[Output Only\] Metropolitan area designator that indicates which city an
interconnect is located.

For example: "Chicago, IL", "Amsterdam, Netherlands".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getContinent

\[Output Only\] Continent for this location, which can take one of the
following values:

- AFRICA
- ASIA_PAC
- EUROPE
- NORTH_AMERICA
- SOUTH_AMERICA Check the Continent enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasContinent

### clearContinent

### setContinent

\[Output Only\] Continent for this location, which can take one of the
following values:

- AFRICA
- ASIA_PAC
- EUROPE
- NORTH_AMERICA
- SOUTH_AMERICA Check the Continent enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreationTimestamp

Output only. \[Output Only\] Creation timestamp inRFC3339
text format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasCreationTimestamp

### clearCreationTimestamp

### setCreationTimestamp

Output only. \[Output Only\] Creation timestamp inRFC3339
text format.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCrossSiteInterconnectInfos

\[Output Only\] A list of InterconnectLocation.CrossSiteInterconnectInfo
objects, that describe where Cross-Site Interconnect wires may connect to
from this location and associated connection parameters. Cross-Site
Interconnect isn't allowed to locations which are not listed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InterconnectLocationCrossSiteInterconnectInfo>` |   |

### setCrossSiteInterconnectInfos

\[Output Only\] A list of InterconnectLocation.CrossSiteInterconnectInfo
objects, that describe where Cross-Site Interconnect wires may connect to
from this location and associated connection parameters. Cross-Site
Interconnect isn't allowed to locations which are not listed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InterconnectLocationCrossSiteInterconnectInfo>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

Output only. \[Output Only\] An optional description of the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasDescription

### clearDescription

### setDescription

Output only. \[Output Only\] An optional description of the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFacilityProvider

Output only. \[Output Only\] The name of the provider for this facility (e.g., EQUINIX).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasFacilityProvider

### clearFacilityProvider

### setFacilityProvider

Output only. \[Output Only\] The name of the provider for this facility (e.g., EQUINIX).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFacilityProviderFacilityId

Output only. \[Output Only\] A provider-assigned Identifier for this facility (e.g.,
Ashburn-DC1).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasFacilityProviderFacilityId

### clearFacilityProviderFacilityId

### setFacilityProviderFacilityId

Output only. \[Output Only\] A provider-assigned Identifier for this facility (e.g.,
Ashburn-DC1).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getId

Output only. \[Output Only\] The unique identifier for the resource. This identifier is
defined by the server.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasId

### clearId

### setId

Output only. \[Output Only\] The unique identifier for the resource. This identifier is
defined by the server.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKind

Output only. \[Output Only\] Type of the resource. Alwayscompute#interconnectLocation for interconnect locations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasKind

### clearKind

### setKind

Output only. \[Output Only\] Type of the resource. Alwayscompute#interconnectLocation for interconnect locations.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getName

Output only. \[Output Only\] Name of the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasName

### clearName

### setName

Output only. \[Output Only\] Name of the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPeeringdbFacilityId

Output only. \[Output Only\] The peeringdb identifier for this facility (corresponding
with a netfac type in peeringdb).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasPeeringdbFacilityId

### clearPeeringdbFacilityId

### setPeeringdbFacilityId

Output only. \[Output Only\] The peeringdb identifier for this facility (corresponding
with a netfac type in peeringdb).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRegionInfos

Output only. \[Output Only\] A list of InterconnectLocation.RegionInfo objects, that
describe parameters pertaining to the relation between this
InterconnectLocation and various Google Cloud regions.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InterconnectLocationRegionInfo>` |   |

### setRegionInfos

Output only. \[Output Only\] A list of InterconnectLocation.RegionInfo objects, that
describe parameters pertaining to the relation between this
InterconnectLocation and various Google Cloud regions.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.InterconnectLocationRegionInfo>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSelfLink

Output only. \[Output Only\] Server-defined URL for the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasSelfLink

### clearSelfLink

### setSelfLink

Output only. \[Output Only\] Server-defined URL for the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSingleRegionProductionCriticalPeerLocations

Output only. \[Output Only\] URLs of the other locations that can pair up with this
location to support Single-Region 99.99% SLA. E.g. iad-zone1-1 and
iad-zone2-5467 are Single-Region 99.99% peer locations of each other.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setSingleRegionProductionCriticalPeerLocations

Output only. \[Output Only\] URLs of the other locations that can pair up with this
location to support Single-Region 99.99% SLA. E.g. iad-zone1-1 and
iad-zone2-5467 are Single-Region 99.99% peer locations of each other.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStatus

\[Output Only\] The status of this InterconnectLocation, which can take one
of the following values:

- CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects.

<!-- -->

- AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects. Check the Status enum for the list of possible values.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasStatus

### clearStatus

### setStatus

\[Output Only\] The status of this InterconnectLocation, which can take one
of the following values:

- CLOSED: The InterconnectLocation is closed and is unavailable for provisioning new Interconnects.

<!-- -->

- AVAILABLE: The InterconnectLocation is available for provisioning new Interconnects. Check the Status enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSupportsPzs

Output only. \[Output Only\] Reserved for future use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasSupportsPzs

### clearSupportsPzs

### setSupportsPzs

Output only. \[Output Only\] Reserved for future use.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |