Class CloudLocation (0.1.0)

public final class CloudLocation extends GeneratedMessageV3 implements CloudLocationOrBuilder

Represents resource cloud locations.

Protobuf type google.cloud.locationfinder.v1.CloudLocation

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()
Returns
Type Description
CloudLocation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CloudLocation.Builder newBuilder()
Returns
Type Description
CloudLocation.Builder

newBuilder(CloudLocation prototype)

public static CloudLocation.Builder newBuilder(CloudLocation prototype)
Parameter
Name Description
prototype CloudLocation
Returns
Type Description
CloudLocation.Builder

parseDelimitedFrom(InputStream input)

public static CloudLocation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloudLocation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudLocation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CloudLocation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CloudLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CloudLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CloudLocation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CloudLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CloudLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CloudLocation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CloudLocation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CloudLocation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloudLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudLocation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CloudLocation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CloudLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CloudLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudLocation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CloudLocation> parser()
Returns
Type Description
Parser<CloudLocation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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];

Returns
Type Description
CloudLocation.CloudLocationType

The cloudLocationType.

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];

Returns
Type Description
CloudLocation.CloudProvider

The cloudProvider.

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()
Returns
Type Description
CloudLocation

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()

public 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
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()
Returns
Type Description
Parser<CloudLocation>
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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CloudLocation.Builder newBuilderForType()
Returns
Type Description
CloudLocation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CloudLocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CloudLocation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CloudLocation.Builder toBuilder()
Returns
Type Description
CloudLocation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException