NAME
Google::Cloud::Locationfinder::V1::CloudLocation - Compiled Protocol Buffers messages for google/cloud/locationfinder/v1/cloud_location.proto
SYNOPSIS
use Google::Cloud::Locationfinder::V1::CloudLocation;
my $msg = Google::Cloud::Locationfinder::V1::CloudLocation::CloudLocation->new({
name => $name,
containing_cloud_location => $containing_cloud_location,
display_name => $display_name,
cloud_provider => $cloud_provider,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Locationfinder::V1::CloudLocation::CloudLocation->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/locationfinder/v1/cloud_location.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Locationfinder::V1::CloudLocation::CloudLocation
Represents resource cloud locations.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. Name of the cloud location. Unique name of the cloud location including project and location using the form: `projects/{project_id}/locations/{location}/cloudLocations/{cloud_location}`
$msg->containing_cloud_location()/$msg->containing_cloud_location($value)Type:
StringOutput only. The containing cloud location in the strict nesting hierarchy. For example, the containing cloud location of a zone is a region.
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. The human-readable name of the cloud location. Example: us-east-2, us-east1.
$msg->cloud_provider()/$msg->cloud_provider($value)Type:
Enum(Google::Cloud::Locationfinder::V1::CloudLocation::CloudProvider)Optional. The provider of the cloud location. Values can be Google Cloud or third-party providers, including AWS, Azure, or Oracle Cloud Infrastructure.
$msg->territory_code()/$msg->territory_code($value)Type:
StringOptional. The two-letter ISO 3166-1 alpha-2 code of the cloud location. Examples: US, JP, KR.
$msg->cloud_location_type()/$msg->cloud_location_type($value)Type:
Enum(Google::Cloud::Locationfinder::V1::CloudLocation::CloudLocationType)Optional. The type of the cloud location.
$msg->carbon_free_energy_percentage()/$msg->carbon_free_energy_percentage($value)Type:
FloatOptional. The carbon free energy percentage of the cloud location. This represents the average percentage of time customers' application will be running on carbon-free energy. See https://cloud.google.com/sustainability/region-carbon for more details. There is a difference between default value 0 and unset value. 0 means the carbon free energy percentage is 0%, while unset value means the carbon footprint data is not available.
Enum: CloudLocation::CloudProvider
CLOUD_PROVIDER_UNSPECIFIED=>0CLOUD_PROVIDER_GCP=>1CLOUD_PROVIDER_AWS=>2CLOUD_PROVIDER_AZURE=>3CLOUD_PROVIDER_OCI=>4
Enum: CloudLocation::CloudLocationType
CLOUD_LOCATION_TYPE_UNSPECIFIED=>0CLOUD_LOCATION_TYPE_REGION=>1CLOUD_LOCATION_TYPE_ZONE=>2CLOUD_LOCATION_TYPE_REGION_EXTENSION=>3CLOUD_LOCATION_TYPE_GDCC_ZONE=>4
Google::Cloud::Locationfinder::V1::CloudLocation::ListCloudLocationsRequest
Message for requesting list of cloud locations..
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent, which owns this collection of cloud locations. Format: projects/{project}/locations/{location}
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of cloud locations to return per page. The service might return fewer cloud locations than this value. If unspecified, server will pick an appropriate default.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A token identifying a page of results the server should return. Provide page token returned by a previous 'ListCloudLocations' call to retrieve the next page of results. When paginating, all other parameters provided to 'ListCloudLocations' must match the call that provided the page token.
$msg->filter()/$msg->filter($value)Type:
StringOptional. A filter expression that filters resources listed in the response. The expression is in the form of field=value. For example, 'cloud_location_type=CLOUD_LOCATION_TYPE_REGION'. Multiple filter queries are space-separated. For example, 'cloud_location_type=CLOUD_LOCATION_TYPE_REGION territory_code="US"' By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
Google::Cloud::Locationfinder::V1::CloudLocation::ListCloudLocationsResponse
Message for response to listing cloud locations.
Inherits from Protobuf::Message.
Accessors
$msg->cloud_locations()/$msg->cloud_locations($value)Type:
Message(Google::Cloud::Locationfinder::V1::CloudLocation::CloudLocation)Output only. List of cloud locations.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringOutput only. The continuation token, used to page through large result sets. Provide this value in a subsequent request as page_token in subsequent requests to retrieve the next page. If this field is not present, there are no subsequent results.
Google::Cloud::Locationfinder::V1::CloudLocation::GetCloudLocationRequest
Message for getting a cloud location.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the resource.
Google::Cloud::Locationfinder::V1::CloudLocation::SearchCloudLocationsRequest
Message for searching cloud locations from a given source location.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent, which owns this collection of cloud locations. Format: projects/{project}/locations/{location}
$msg->source_cloud_location()/$msg->source_cloud_location($value)Type:
StringRequired. The source cloud location to search from. Example search can be searching nearby cloud locations from the source cloud location by latency.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of cloud locations to return. The service might return fewer cloud locations than this value. If unspecified, server will pick an appropriate default.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A token identifying a page of results the server should return. Provide Page token returned by a previous 'ListCloudLocations' call to retrieve the next page of results. When paginating, all other parameters provided to 'ListCloudLocations' must match the call that provided the page token.
$msg->query()/$msg->query($value)Type:
StringOptional. The query string in search query syntax. While filter is used to filter the search results by attributes, query is used to specify the search requirements.
Google::Cloud::Locationfinder::V1::CloudLocation::SearchCloudLocationsResponse
Message for response to searching cloud locations.
Inherits from Protobuf::Message.
Accessors
$msg->cloud_locations()/$msg->cloud_locations($value)Type:
Message(Google::Cloud::Locationfinder::V1::CloudLocation::CloudLocation)Output only. List of cloud locations.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringOutput only. The continuation token, used to page through large result sets. Provide this value in a subsequent request as page_token in subsequent requests to retrieve the next page. If this field is not present, there are no subsequent results.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Locationfinder::V1::CloudLocation::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.