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 \ InstanceMethods
__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 |
Google\Cloud\Memcache\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. |
setState
Output only. Current state of the Memcached node.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type 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 |
Google\Cloud\Memcache\V1\MemcacheParameters|null |
|
hasParameters
clearParameters
setParameters
User defined parameters currently applied to the node.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\Memcache\V1\MemcacheParameters
|
| Returns | |
|---|---|
| Type | Description |
$this |
|