# Google Cloud Tpu V2 Client - Class NetworkEndpoint (2.3.0)

2.3.0 (latest) 2.2.2 2.1.2 2.0.0 1.4.7 1.3.2 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Tpu V2 Client class NetworkEndpoint.

A network endpoint over which a TPU worker can be reached.

Generated from protobuf message `google.cloud.tpu.v2.NetworkEndpoint`

## Namespace

Google \\ Cloud \\ Tpu \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ip_address` | `string` The internal IP address of this network endpoint. |
| `↳ port` | `int` The port of this network endpoint. |
| `↳ access_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.AccessConfig` The access config for the TPU worker. |

### getIpAddress

The internal IP address of this network endpoint.

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

### setIpAddress

The internal IP address of this network endpoint.

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

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

### getPort

The port of this network endpoint.

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

### setPort

The port of this network endpoint.

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

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

### getAccessConfig

The access config for the TPU worker.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.AccessConfig|null` |   |

### hasAccessConfig

### clearAccessConfig

### setAccessConfig

The access config for the TPU worker.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.AccessConfig` |

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