# Google Cloud Edge Network V1 Client - Class Interconnect (1.4.2)

1.4.2 (latest) 1.4.1 1.3.1 1.2.3 1.1.4 1.0.0 0.3.6 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Edge Network V1 Client class Interconnect.

Message describing Interconnect object

Generated from protobuf message `google.cloud.edgenetwork.v1.Interconnect`

## Namespace

Google \\ Cloud \\ EdgeNetwork \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The canonical resource name of the interconnect. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the subnet was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the subnet was last updated. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Labels associated with this resource. |
| `↳ description` | `string` Optional. A free-text description of the resource. Max length 1024 characters. |
| `↳ interconnect_type` | `int` Optional. Type of interconnect, which takes only the value 'DEDICATED' for now. |
| `↳ uuid` | `string` Output only. Unique identifier for the link. |
| `↳ device_cloud_resource_name` | `string` Output only. Cloud resource name of the switch device. |
| `↳ physical_ports` | `string[]` Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the interconnect. |
| `↳ remote_peering_network_type` | `int` Optional. The remote peering network type of the interconnect. It is required when peering separation is enabled. |

### getName

Required. The canonical resource name of the interconnect.

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

### setName

Required. The canonical resource name of the interconnect.

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

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

### getCreateTime

Output only. The time when the subnet was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the subnet was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. The time when the subnet was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the subnet was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

Labels associated with this resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Labels associated with this resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getDescription

Optional. A free-text description of the resource. Max length 1024
characters.

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

### setDescription

Optional. A free-text description of the resource. Max length 1024
characters.

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

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

### getInterconnectType

Optional. Type of interconnect, which takes only the value 'DEDICATED' for
now.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [InterconnectType](https://docs.cloud.google.com/php/docs/reference/cloud-edgenetwork/latest/V1.Interconnect.InterconnectType). |

### setInterconnectType

Optional. Type of interconnect, which takes only the value 'DEDICATED' for
now.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [InterconnectType](https://docs.cloud.google.com/php/docs/reference/cloud-edgenetwork/latest/V1.Interconnect.InterconnectType). |

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

### getUuid

Output only. Unique identifier for the link.

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

### setUuid

Output only. Unique identifier for the link.

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

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

### getDeviceCloudResourceName

Output only. Cloud resource name of the switch device.

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

### setDeviceCloudResourceName

Output only. Cloud resource name of the switch device.

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

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

### getPhysicalPorts

Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the
interconnect.

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

### setPhysicalPorts

Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the
interconnect.

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

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

### getRemotePeeringNetworkType

Optional. The remote peering network type of the interconnect. It is
required when peering separation is enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RemotePeeringNetworkType](https://docs.cloud.google.com/php/docs/reference/cloud-edgenetwork/latest/V1.RemotePeeringNetworkType). |

### setRemotePeeringNetworkType

Optional. The remote peering network type of the interconnect. It is
required when peering separation is enabled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RemotePeeringNetworkType](https://docs.cloud.google.com/php/docs/reference/cloud-edgenetwork/latest/V1.RemotePeeringNetworkType). |

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