Interface CloudLocationOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CloudLocation,CloudLocation.Builder
@Generated
public interface CloudLocationOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionfloatOptional.Optional.intOptional.Optional.intOptional.Output only.com.google.protobuf.ByteStringOutput only.Optional.com.google.protobuf.ByteStringOptional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Identifier. 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}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Identifier. 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}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- The bytes for name.
-
getContainingCloudLocation
String getContainingCloudLocation()Output only. The containing cloud location in the strict nesting hierarchy. For example, the containing cloud location of a zone is a region.
string containing_cloud_location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- The containingCloudLocation.
-
getContainingCloudLocationBytes
com.google.protobuf.ByteString getContainingCloudLocationBytes()Output only. The containing cloud location in the strict nesting hierarchy. For example, the containing cloud location of a zone is a region.
string containing_cloud_location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for containingCloudLocation.
-
getDisplayName
String getDisplayName()Optional. The human-readable name of the cloud location. Example: us-east-2, us-east1.
string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.ByteString getDisplayNameBytes()Optional. The human-readable name of the cloud location. Example: us-east-2, us-east1.
string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for displayName.
-
getCloudProviderValue
int getCloudProviderValue()Optional. The provider of the cloud location. Values can be Google Cloud or third-party providers, including AWS, Azure, or Oracle Cloud Infrastructure.
.google.cloud.locationfinder.v1.CloudLocation.CloudProvider cloud_provider = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for cloudProvider.
-
getCloudProvider
CloudLocation.CloudProvider getCloudProvider()Optional. The provider of the cloud location. Values can be Google Cloud or third-party providers, including AWS, Azure, or Oracle Cloud Infrastructure.
.google.cloud.locationfinder.v1.CloudLocation.CloudProvider cloud_provider = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The cloudProvider.
-
getTerritoryCode
String getTerritoryCode()Optional. The two-letter ISO 3166-1 alpha-2 code of the cloud location. Examples: US, JP, KR.
string territory_code = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The territoryCode.
-
getTerritoryCodeBytes
com.google.protobuf.ByteString getTerritoryCodeBytes()Optional. The two-letter ISO 3166-1 alpha-2 code of the cloud location. Examples: US, JP, KR.
string territory_code = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for territoryCode.
-
getCloudLocationTypeValue
int getCloudLocationTypeValue()Optional. The type of the cloud location.
.google.cloud.locationfinder.v1.CloudLocation.CloudLocationType cloud_location_type = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for cloudLocationType.
-
getCloudLocationType
CloudLocation.CloudLocationType getCloudLocationType()Optional. The type of the cloud location.
.google.cloud.locationfinder.v1.CloudLocation.CloudLocationType cloud_location_type = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The cloudLocationType.
-
hasCarbonFreeEnergyPercentage
boolean hasCarbonFreeEnergyPercentage()Optional. 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.
optional float carbon_free_energy_percentage = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the carbonFreeEnergyPercentage field is set.
-
getCarbonFreeEnergyPercentage
float getCarbonFreeEnergyPercentage()Optional. 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.
optional float carbon_free_energy_percentage = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The carbonFreeEnergyPercentage.
-