Stay organized with collections Save and categorize content based on your preferences.
A representation of a Cloud Location.
A Cloud location is identified by its project_id
and location_id
.
For more info about locations, see
https://cloud.google.com/about/locations Constructors Location(Location const &)Copy and move
Parameter Name Description
Location const &
Copy and move
Parameter Name Description
Location &&
Constructs a Location object identified by the given project
and location_id
.
project
Project
location_id
std::string
Constructs a Location_id object identified by the given IDs.
This is equivalent to first constructing a Project
from the given project_id
and then calling the Location(Project, std::string)
constructor.
project_id
std::string
location_id
std::string
Copy and move
Parameter Name Description
Location const &
Location &
operator=(Location &&)
Copy and move
Parameter Name Description
Location &&
Location &
Functions project() const
Returns the Project
containing this location.
Project const &
project_id() const Returns Type Description std::string const &
location_id() const
Returns the Location ID.
Returns Type Descriptionstd::string const &
FullName() const
Returns the fully qualified location name as a string of the form: "projects/
Returns Type Descriptionstd::string
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["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-08-14 UTC."],[[["The latest version available is 2.37.0-rc, and there are multiple past versions available, ranging from 2.36.0 down to 2.10.1."],["This documentation describes the `Location` class, which represents a Google Cloud location identified by a `project_id` and `location_id`."],["The `Location` class offers various constructors, including ones that take `Project` and `std::string` objects or two `std::string` objects for the `project_id` and `location_id`."],["The `Location` class provides methods to retrieve the `Project`, `project_id`, and `location_id` as well as `FullName()` to give the full qualified location name, and also contains copy/move constructors and operators."],["The class will not validate the values provided to it, and relies on the user to enter valid project and location ids."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4