# Memorystore for Memcached V1 Client - Class Node (2.1.2)

2.1.2 (latest) 2.1.1 2.0.4 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Memorystore for Memcached V1 Client class Node.

Generated from protobuf message `google.cloud.memcache.v1.Instance.Node`

## Namespace

Google \\ Cloud \\ Memcache \\ V1 \\ Instance

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ node_id` | `string` Output only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name. |
| `↳ zone` | `string` Output only. Location (GCP Zone) for the Memcached node. |
| `↳ state` | `int` Output only. Current state of the Memcached node. |
| `↳ host` | `string` Output only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node. |
| `↳ port` | `int` Output only. The port number of the Memcached server on this node. |
| `↳ parameters` | `https://docs.cloud.google.com/php/docs/reference/cloud-memcache/latest/V1.MemcacheParameters` User defined parameters currently applied to the node. |

### getNodeId

Output only. Identifier of the Memcached node. The node id does not
include project or location like the Memcached instance name.

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

### setNodeId

Output only. Identifier of the Memcached node. The node id does not
include project or location like the Memcached instance name.

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

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

### getZone

Output only. Location (GCP Zone) for the Memcached node.

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

### setZone

Output only. Location (GCP Zone) for the Memcached node.

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

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

### getState

Output only. Current state of the Memcached node.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-memcache/latest/V1.Instance.Node.State). |

### setState

Output only. Current state of the Memcached node.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-memcache/latest/V1.Instance.Node.State). |

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

### getHost

Output only. Hostname or IP address of the Memcached node used by the
clients to connect to the Memcached server on this node.

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

### setHost

Output only. Hostname or IP address of the Memcached node used by the
clients to connect to the Memcached server on this node.

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

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

### getPort

Output only. The port number of the Memcached server on this node.

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

### setPort

Output only. The port number of the Memcached server on this node.

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

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

### getParameters

User defined parameters currently applied to the node.

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

### hasParameters

### clearParameters

### setParameters

User defined parameters currently applied to the node.

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

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