Memorystore for Memcached V1beta2 Client - Class Node (1.2.2)

Reference documentation and code samples for the Memorystore for Memcached V1beta2 Client class Node.

Generated from protobuf message google.cloud.memcache.v1beta2.Instance.Node

Namespace

Google \ Cloud \ Memcache \ V1beta2 \ 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\V1beta2\MemcacheParameters

User defined parameters currently applied to the node.

↳ update_available bool

Output only. Returns true if there is an update waiting to be applied

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\V1beta2\MemcacheParameters|null

hasParameters

clearParameters

setParameters

User defined parameters currently applied to the node.

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

getUpdateAvailable

Output only. Returns true if there is an update waiting to be applied

Returns
TypeDescription
bool

setUpdateAvailable

Output only. Returns true if there is an update waiting to be applied

Parameter
NameDescription
var bool
Returns
TypeDescription
$this