0.16.0 (latest) 0.15.0 0.14.0 0.13.3 0.12.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Memorystore V1 Client class DiscoveryEndpoint.

Represents an endpoint for clients to connect to the instance.

Generated from protobuf message `google.cloud.memorystore.v1.DiscoveryEndpoint`

## Namespace

Google \\ Cloud \\ Memorystore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ address` | `string` Output only. IP address of the exposed endpoint clients connect to. |
| `↳ port` | `int` Output only. The port number of the exposed endpoint. |
| `↳ network` | `string` Output only. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_name}. |

### getAddress

Output only. IP address of the exposed endpoint clients connect to.

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

### setAddress

Output only. IP address of the exposed endpoint clients connect to.

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

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

### getPort

Output only. The port number of the exposed endpoint.

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

### setPort

Output only. The port number of the exposed endpoint.

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

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

### getNetwork

Output only. The network where the IP address of the discovery endpoint
will be reserved, in the form of
projects/{network_project}/global/networks/{network_name}.

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

### setNetwork

Output only. The network where the IP address of the discovery endpoint
will be reserved, in the form of
projects/{network_project}/global/networks/{network_name}.

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

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