Memorystore for Memcached V1 Client - Class Node (1.1.1)

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
NameDescription
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
TypeDescription
string

setNodeId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getZone

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

Returns
TypeDescription
string

setZone

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. Current state of the Memcached node.

Returns
TypeDescription
int

setState

Output only. Current state of the Memcached node.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getPort

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

Returns
TypeDescription
int

setPort

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getParameters

User defined parameters currently applied to the node.

Returns
TypeDescription
Google\Cloud\Memcache\V1\MemcacheParameters|null

hasParameters

clearParameters

setParameters

User defined parameters currently applied to the node.

Parameter
NameDescription
var Google\Cloud\Memcache\V1\MemcacheParameters
Returns
TypeDescription
$this