public final class CloudLocation extends GeneratedMessageV3 implements CloudLocationOrBuilder
Represents resource cloud locations.
Protobuf type google.cloud.locationfinder.v1.CloudLocation
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CARBON_FREE_ENERGY_PERCENTAGE_FIELD_NUMBER
public static final int CARBON_FREE_ENERGY_PERCENTAGE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CLOUD_LOCATION_TYPE_FIELD_NUMBER
public static final int CLOUD_LOCATION_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CLOUD_PROVIDER_FIELD_NUMBER
public static final int CLOUD_PROVIDER_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CONTAINING_CLOUD_LOCATION_FIELD_NUMBER
public static final int CONTAINING_CLOUD_LOCATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TERRITORY_CODE_FIELD_NUMBER
public static final int TERRITORY_CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static CloudLocation getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CloudLocation.Builder newBuilder()
newBuilder(CloudLocation prototype)
public static CloudLocation.Builder newBuilder(CloudLocation prototype)
public static CloudLocation parseDelimitedFrom(InputStream input)
public static CloudLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CloudLocation parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CloudLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CloudLocation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CloudLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CloudLocation parseFrom(CodedInputStream input)
public static CloudLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CloudLocation parseFrom(InputStream input)
public static CloudLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CloudLocation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CloudLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CloudLocation> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCarbonFreeEnergyPercentage()
public 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 |
Type |
Description |
float |
The carbonFreeEnergyPercentage.
|
getCloudLocationType()
public 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];
getCloudLocationTypeValue()
public 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 |
Type |
Description |
int |
The enum numeric value on the wire for cloudLocationType.
|
getCloudProvider()
public 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];
getCloudProviderValue()
public 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 |
Type |
Description |
int |
The enum numeric value on the wire for cloudProvider.
|
getContainingCloudLocation()
public 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 |
Type |
Description |
String |
The containingCloudLocation.
|
getContainingCloudLocationBytes()
public 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 |
Type |
Description |
ByteString |
The bytes for containingCloudLocation.
|
getDefaultInstanceForType()
public CloudLocation getDefaultInstanceForType()
getDisplayName()
public 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 |
Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public 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 |
Type |
Description |
ByteString |
The bytes for displayName.
|
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 |
Type |
Description |
String |
The name.
|
getNameBytes()
public 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 |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<CloudLocation> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getTerritoryCode()
public 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 |
Type |
Description |
String |
The territoryCode.
|
getTerritoryCodeBytes()
public 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 |
Type |
Description |
ByteString |
The bytes for territoryCode.
|
hasCarbonFreeEnergyPercentage()
public 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 |
Type |
Description |
boolean |
Whether the carbonFreeEnergyPercentage field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CloudLocation.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CloudLocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public CloudLocation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides