# Google Cloud Edge Network V1 Client - Class InterconnectAttachment (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 InterconnectAttachment.

Message describing InterconnectAttachment object

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

## 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 attachment. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the interconnect attachment was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the interconnect attachment 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` | `string` Required. The canonical name of underlying Interconnect object that this attachment's traffic will traverse through. The name is in the form of `projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}`. |
| `↳ network` | `string` Optional. The canonical Network name in the form of `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`. |
| `↳ vlan_id` | `int` Required. VLAN id provided by user. Must be site-wise unique. |
| `↳ mtu` | `int` IP (L3) MTU value of the virtual edge cloud. Valid values are: 1500 and 9000. Default to 1500 if not set. |
| `↳ state` | `int` Output only. Current stage of the resource to the device by config push. |
| `↳ peering_type` | `int` Optional. The remote peering network type of the underlying interconnect. It is required when peering separation is enabled. |

### getName

Required. The canonical resource name of the interconnect attachment.

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

### setName

Required. The canonical resource name of the interconnect attachment.

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

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

### getCreateTime

Output only. The time when the interconnect attachment 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 interconnect attachment 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 interconnect attachment 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 interconnect attachment 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` |   |

### getInterconnect

Required. The canonical name of underlying Interconnect object that this
attachment's traffic will traverse through. The name is in the form of
`projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}`.

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

### setInterconnect

Required. The canonical name of underlying Interconnect object that this
attachment's traffic will traverse through. The name is in the form of
`projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}`.

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

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

### getNetwork

Optional. The canonical Network name in the form of
`projects/{project}/locations/{location}/zones/{zone}/networks/{network}`.

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

### setNetwork

Optional. The canonical Network name in the form of
`projects/{project}/locations/{location}/zones/{zone}/networks/{network}`.

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

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

### getVlanId

Required. VLAN id provided by user. Must be site-wise unique.

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

### setVlanId

Required. VLAN id provided by user. Must be site-wise unique.

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

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

### getMtu

IP (L3) MTU value of the virtual edge cloud.

Valid values are: 1500 and 9000.
Default to 1500 if not set.

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

### setMtu

IP (L3) MTU value of the virtual edge cloud.

Valid values are: 1500 and 9000.
Default to 1500 if not set.

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

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

### getState

Output only. Current stage of the resource to the device by config push.

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

### setState

Output only. Current stage of the resource to the device by config push.

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

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

### getPeeringType

Optional. The remote peering network type of the underlying 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). |

### setPeeringType

Optional. The remote peering network type of the underlying 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` |   |