Reference documentation and code samples for the Google Cloud Memorystore V1 Client class DiscoveryEndpoint.
Represents an endpoint for clients to connect to the instance.
Generated from protobuf messagegoogle.cloud.memorystore.v1.DiscoveryEndpoint
Namespace
Google \ Cloud \ Memorystore \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ address
string
Output only. IP address of the exposed endpoint clients connect to.
↳ port
int
Output only. The port number of the exposed endpoint.
↳ network
string
Output only. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.
getAddress
Output only. IP address of the exposed endpoint clients connect to.
Returns
Type
Description
string
setAddress
Output only. IP address of the exposed endpoint clients connect to.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPort
Output only. The port number of the exposed endpoint.
Returns
Type
Description
int
setPort
Output only. The port number of the exposed endpoint.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getNetwork
Output only. The network where the IP address of the discovery endpoint
will be reserved, in the form of
projects/{network_project}/global/networks/{network_id}.
Returns
Type
Description
string
setNetwork
Output only. The network where the IP address of the discovery endpoint
will be reserved, in the form of
projects/{network_project}/global/networks/{network_id}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Memorystore V1 Client - Class DiscoveryEndpoint (0.4.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.2 (latest)](/php/docs/reference/cloud-memorystore/latest/V1.DiscoveryEndpoint)\n- [0.4.1](/php/docs/reference/cloud-memorystore/0.4.1/V1.DiscoveryEndpoint)\n- [0.3.0](/php/docs/reference/cloud-memorystore/0.3.0/V1.DiscoveryEndpoint)\n- [0.2.0](/php/docs/reference/cloud-memorystore/0.2.0/V1.DiscoveryEndpoint)\n- [0.1.1](/php/docs/reference/cloud-memorystore/0.1.1/V1.DiscoveryEndpoint) \nReference documentation and code samples for the Google Cloud Memorystore V1 Client class DiscoveryEndpoint.\n\nRepresents an endpoint for clients to connect to the instance.\n\nGenerated from protobuf message `google.cloud.memorystore.v1.DiscoveryEndpoint`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Memorystore \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAddress\n\nOutput only. IP address of the exposed endpoint clients connect to.\n\n### setAddress\n\nOutput only. IP address of the exposed endpoint clients connect to.\n\n### getPort\n\nOutput only. The port number of the exposed endpoint.\n\n### setPort\n\nOutput only. The port number of the exposed endpoint.\n\n### getNetwork\n\nOutput only. The network where the IP address of the discovery endpoint\nwill be reserved, in the form of\nprojects/{network_project}/global/networks/{network_id}.\n\n### setNetwork\n\nOutput only. The network where the IP address of the discovery endpoint\nwill be reserved, in the form of\nprojects/{network_project}/global/networks/{network_id}."]]