Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class GetClusterRequest.
Message for getting a Cluster
Generated from protobuf message google.cloud.alloydb.v1.GetClusterRequest
Namespace
Google \ Cloud \ AlloyDb \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The name of the resource. For the required format, see the comment on the Cluster.name field.
↳ view
int
Optional. The view of the cluster to return. Returns all default fields if not set.
getName
Required. The name of the resource. For the required format, see the
comment on the Cluster.name field.
Returns
Type
Description
string
setName
Required. The name of the resource. For the required format, see the
comment on the Cluster.name field.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getView
Optional. The view of the cluster to return. Returns all default fields if
not set.
Returns
Type
Description
int
setView
Optional. The view of the cluster to return. Returns all default fields if
not set.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. The name of the resource. For the required format, see the
comment on the Cluster.name field. Please see
AlloyDBAdminClient::clusterName() for help formatting this field.
[[["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 AlloyDB for PostgreSQL V1 Client - Class GetClusterRequest (1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/php/docs/reference/cloud-alloydb/latest/V1.GetClusterRequest)\n- [1.4.0](/php/docs/reference/cloud-alloydb/1.4.0/V1.GetClusterRequest)\n- [1.3.0](/php/docs/reference/cloud-alloydb/1.3.0/V1.GetClusterRequest)\n- [1.2.0](/php/docs/reference/cloud-alloydb/1.2.0/V1.GetClusterRequest)\n- [1.1.3](/php/docs/reference/cloud-alloydb/1.1.3/V1.GetClusterRequest)\n- [1.0.0](/php/docs/reference/cloud-alloydb/1.0.0/V1.GetClusterRequest)\n- [0.10.3](/php/docs/reference/cloud-alloydb/0.10.3/V1.GetClusterRequest)\n- [0.9.0](/php/docs/reference/cloud-alloydb/0.9.0/V1.GetClusterRequest)\n- [0.8.0](/php/docs/reference/cloud-alloydb/0.8.0/V1.GetClusterRequest)\n- [0.7.1](/php/docs/reference/cloud-alloydb/0.7.1/V1.GetClusterRequest)\n- [0.6.0](/php/docs/reference/cloud-alloydb/0.6.0/V1.GetClusterRequest)\n- [0.5.0](/php/docs/reference/cloud-alloydb/0.5.0/V1.GetClusterRequest)\n- [0.4.0](/php/docs/reference/cloud-alloydb/0.4.0/V1.GetClusterRequest)\n- [0.3.0](/php/docs/reference/cloud-alloydb/0.3.0/V1.GetClusterRequest)\n- [0.2.1](/php/docs/reference/cloud-alloydb/0.2.1/V1.GetClusterRequest)\n- [0.1.3](/php/docs/reference/cloud-alloydb/0.1.3/V1.GetClusterRequest) \nReference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class GetClusterRequest.\n\nMessage for getting a Cluster\n\nGenerated from protobuf message `google.cloud.alloydb.v1.GetClusterRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AlloyDb \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The name of the resource. For the required format, see the\ncomment on the Cluster.name field.\n\n### setName\n\nRequired. The name of the resource. For the required format, see the\ncomment on the Cluster.name field.\n\n### getView\n\nOptional. The view of the cluster to return. Returns all default fields if\nnot set.\n\n### setView\n\nOptional. The view of the cluster to return. Returns all default fields if\nnot set.\n\n### static::build"]]