Google Cloud Redis Cluster V1 Client - Class DiscoveryEndpoint (0.2.4)

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 Google\Cloud\Redis\Cluster\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
Google\Cloud\Redis\Cluster\V1\PscConfig|null

hasPscConfig

clearPscConfig

setPscConfig

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

Parameter
Name Description
var Google\Cloud\Redis\Cluster\V1\PscConfig
Returns
Type Description
$this