# Google Cloud Bare Metal Solution V2 Client - Class NetworkAddress (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.6.5 0.5.2 0.4.0 0.3.2 0.2.8 Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class NetworkAddress.

A network.

Generated from protobuf message `google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress`

## Namespace

Google \\ Cloud \\ BareMetalSolution \\ V2 \\ InstanceConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ network_id` | `string` Id of the network to use, within the same ProvisioningConfig request. |
| `↳ address` | `string` IPv4 address to be assigned to the server. |
| `↳ existing_network_id` | `string` Name of the existing network to use. |

### getNetworkId

Id of the network to use, within the same ProvisioningConfig request.

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

### setNetworkId

Id of the network to use, within the same ProvisioningConfig request.

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

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

### getAddress

IPv4 address to be assigned to the server.

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

### setAddress

IPv4 address to be assigned to the server.

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

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

### getExistingNetworkId

Name of the existing network to use.

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

### setExistingNetworkId

Name of the existing network to use.

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

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