Generated from protobuf message google.cloud.memcache.v1.GetInstanceRequest
Namespace
Google \ Cloud \ Memcache \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Memcached instance resource name in the format: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region
getName
Required. Memcached instance resource name in the format:
projects/{project_id}/locations/{location_id}/instances/{instance_id}
where location_id refers to a GCP region
Returns
Type
Description
string
setName
Required. Memcached instance resource name in the format:
projects/{project_id}/locations/{location_id}/instances/{instance_id}
where location_id refers to a GCP region
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. Memcached instance resource name in the format:
projects/{project_id}/locations/{location_id}/instances/{instance_id}
where location_id refers to a GCP region
Please see CloudMemcacheClient::instanceName() 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,["# Memorystore for Memcached V1 Client - Class GetInstanceRequest (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-memcache/latest/V1.GetInstanceRequest)\n- [2.0.3](/php/docs/reference/cloud-memcache/2.0.3/V1.GetInstanceRequest)\n- [1.3.5](/php/docs/reference/cloud-memcache/1.3.5/V1.GetInstanceRequest)\n- [1.2.2](/php/docs/reference/cloud-memcache/1.2.2/V1.GetInstanceRequest)\n- [1.1.1](/php/docs/reference/cloud-memcache/1.1.1/V1.GetInstanceRequest)\n- [1.0.5](/php/docs/reference/cloud-memcache/1.0.5/V1.GetInstanceRequest) \nReference documentation and code samples for the Memorystore for Memcached V1 Client class GetInstanceRequest.\n\nRequest for [GetInstance](/php/docs/reference/cloud-memcache/latest/V1.Client.CloudMemcacheClient#_Google_Cloud_Memcache_V1_Client_CloudMemcacheClient__getInstance__).\n\nGenerated from protobuf message `google.cloud.memcache.v1.GetInstanceRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Memcache \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. Memcached instance resource name in the format:\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}`\nwhere `location_id` refers to a GCP region\n\n### setName\n\nRequired. Memcached instance resource name in the format:\n`projects/{project_id}/locations/{location_id}/instances/{instance_id}`\nwhere `location_id` refers to a GCP region\n\n### static::build"]]