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

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

getPort

Output only. The port number of the exposed Redis endpoint.

Returns
TypeDescription
int

setPort

Output only. The port number of the exposed Redis endpoint.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPscConfig

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

Returns
TypeDescription
Google\Cloud\Redis\Cluster\V1\PscConfig|null

hasPscConfig

clearPscConfig

setPscConfig

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

Parameter
NameDescription
var Google\Cloud\Redis\Cluster\V1\PscConfig
Returns
TypeDescription
$this