Class CloudLocation

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.locationfinder.v1.CloudLocation
All Implemented Interfaces:
CloudLocationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CloudLocation extends com.google.protobuf.GeneratedMessage implements CloudLocationOrBuilder
 Represents resource cloud locations.
 
Protobuf type google.cloud.locationfinder.v1.CloudLocation
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CONTAINING_CLOUD_LOCATION_FIELD_NUMBER

      public static final int CONTAINING_CLOUD_LOCATION_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • CLOUD_PROVIDER_FIELD_NUMBER

      public static final int CLOUD_PROVIDER_FIELD_NUMBER
      See Also:
    • TERRITORY_CODE_FIELD_NUMBER

      public static final int TERRITORY_CODE_FIELD_NUMBER
      See Also:
    • CLOUD_LOCATION_TYPE_FIELD_NUMBER

      public static final int CLOUD_LOCATION_TYPE_FIELD_NUMBER
      See Also:
    • CARBON_FREE_ENERGY_PERCENTAGE_FIELD_NUMBER

      public static final int CARBON_FREE_ENERGY_PERCENTAGE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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];
      Specified by:
      getName in interface CloudLocationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public 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];
      Specified by:
      getNameBytes in interface CloudLocationOrBuilder
      Returns:
      The bytes for name.
    • 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) = { ... }
      Specified by:
      getContainingCloudLocation in interface CloudLocationOrBuilder
      Returns:
      The containingCloudLocation.
    • getContainingCloudLocationBytes

      public 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) = { ... }
      Specified by:
      getContainingCloudLocationBytes in interface CloudLocationOrBuilder
      Returns:
      The bytes for containingCloudLocation.
    • 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];
      Specified by:
      getDisplayName in interface CloudLocationOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public 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];
      Specified by:
      getDisplayNameBytes in interface CloudLocationOrBuilder
      Returns:
      The bytes for displayName.
    • 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];
      Specified by:
      getCloudProviderValue in interface CloudLocationOrBuilder
      Returns:
      The enum numeric value on the wire for cloudProvider.
    • 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];
      Specified by:
      getCloudProvider in interface CloudLocationOrBuilder
      Returns:
      The cloudProvider.
    • 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];
      Specified by:
      getTerritoryCode in interface CloudLocationOrBuilder
      Returns:
      The territoryCode.
    • getTerritoryCodeBytes

      public 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];
      Specified by:
      getTerritoryCodeBytes in interface CloudLocationOrBuilder
      Returns:
      The bytes for territoryCode.
    • 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];
      Specified by:
      getCloudLocationTypeValue in interface CloudLocationOrBuilder
      Returns:
      The enum numeric value on the wire for cloudLocationType.
    • 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];
      Specified by:
      getCloudLocationType in interface CloudLocationOrBuilder
      Returns:
      The cloudLocationType.
    • 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];
      Specified by:
      hasCarbonFreeEnergyPercentage in interface CloudLocationOrBuilder
      Returns:
      Whether the carbonFreeEnergyPercentage field is set.
    • 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];
      Specified by:
      getCarbonFreeEnergyPercentage in interface CloudLocationOrBuilder
      Returns:
      The carbonFreeEnergyPercentage.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CloudLocation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudLocation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudLocation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudLocation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudLocation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CloudLocation parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CloudLocation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CloudLocation parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CloudLocation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CloudLocation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CloudLocation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CloudLocation.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CloudLocation.Builder newBuilder()
    • newBuilder

      public static CloudLocation.Builder newBuilder(CloudLocation prototype)
    • toBuilder

      public CloudLocation.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CloudLocation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CloudLocation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CloudLocation> parser()
    • getParserForType

      public com.google.protobuf.Parser<CloudLocation> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CloudLocation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder