[[["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 API Common Protos Client - Class Location (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Cloud.Location.Location)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Cloud.Location.Location)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Cloud.Location.Location)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Cloud.Location.Location)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Cloud.Location.Location)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Cloud.Location.Location) \nReference documentation and code samples for the Google API Common Protos Client class Location.\n\nA resource that represents Google Cloud Platform location.\n\nGenerated from protobuf message `google.cloud.location.Location`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Location\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nResource name for the location, which may vary between implementations.\n\nFor example: `\"projects/example-project/locations/us-east1\"`\n\n### setName\n\nResource name for the location, which may vary between implementations.\n\nFor example: `\"projects/example-project/locations/us-east1\"`\n\n### getLocationId\n\nThe canonical id for this location. For example: `\"us-east1\"`.\n\n### setLocationId\n\nThe canonical id for this location. For example: `\"us-east1\"`.\n\n### getDisplayName\n\nThe friendly name for this location, typically a nearby city name.\n\nFor example, \"Tokyo\".\n\n### setDisplayName\n\nThe friendly name for this location, typically a nearby city name.\n\nFor example, \"Tokyo\".\n\n### getLabels\n\nCross-service attributes for the location. For example\n{\"cloud.googleapis.com/region\": \"us-east1\"}\n\n### setLabels\n\nCross-service attributes for the location. For example\n{\"cloud.googleapis.com/region\": \"us-east1\"}\n\n### getMetadata\n\nService-specific metadata. For example the available capacity at the given\nlocation.\n\n### hasMetadata\n\n### clearMetadata\n\n### setMetadata\n\nService-specific metadata. For example the available capacity at the given\nlocation."]]