0.13.0 (latest) 0.12.0 0.11.0 0.10.3 0.9.0 0.8.0 0.7.0 0.6.4 0.5.1 0.4.1 0.3.2 0.2.5 0.1.0 Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class DiscoveryEndpoint.

Endpoints on each network, for Redis clients to connect to the cluster.

Generated from protobuf message `google.cloud.redis.cluster.v1.DiscoveryEndpoint`

## Namespace

Google \\ Cloud \\ Redis \\ Cluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ address` | `string` Output only. Address of the exposed Redis endpoint used by clients to connect to the service. The address could be either IP or hostname. |
| `↳ port` | `int` Output only. The port number of the exposed Redis endpoint. |
| `↳ psc_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-redis-cluster/latest/V1.PscConfig` Output only. Customer configuration for where the endpoint is created and accessed from. |

### getAddress

Output only. Address of the exposed Redis endpoint used by clients to
connect to the service. The address could be either IP or hostname.

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

### setAddress

Output only. Address of the exposed Redis endpoint used by clients to
connect to the service. The address could be either IP or hostname.

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

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

### getPort

Output only. The port number of the exposed Redis endpoint.

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

### setPort

Output only. The port number of the exposed Redis endpoint.

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

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

### getPscConfig

Output only. Customer configuration for where the endpoint is created and
accessed from.

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

### hasPscConfig

### clearPscConfig

### setPscConfig

Output only. Customer configuration for where the endpoint is created and
accessed from.

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

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