# Google Cloud Migration Center V1 Client - Class MachineNetworkDetails (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class MachineNetworkDetails.

Details of network adapters and settings.

Generated from protobuf message `google.cloud.migrationcenter.v1.MachineNetworkDetails`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ primary_ip_address` | `string` The primary IP address of the machine. |
| `↳ public_ip_address` | `string` The public IP address of the machine. |
| `↳ primary_mac_address` | `string` MAC address of the machine. This property is used to uniqly identify the machine. |
| `↳ adapters` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.NetworkAdapterList` List of network adapters. |

### getPrimaryIpAddress

The primary IP address of the machine.

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

### setPrimaryIpAddress

The primary IP address of the machine.

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

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

### getPublicIpAddress

The public IP address of the machine.

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

### setPublicIpAddress

The public IP address of the machine.

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

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

### getPrimaryMacAddress

MAC address of the machine.

This property is used to uniqly identify the machine.

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

### setPrimaryMacAddress

MAC address of the machine.

This property is used to uniqly identify the machine.

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

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

### getAdapters

List of network adapters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.NetworkAdapterList|null` |   |

### hasAdapters

### clearAdapters

### setAdapters

List of network adapters.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-migrationcenter/latest/V1.NetworkAdapterList` |

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