Class CloudLocation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CloudLocation.Builder>
com.google.cloud.locationfinder.v1.CloudLocation.Builder
All Implemented Interfaces:
CloudLocationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CloudLocation

public static final class CloudLocation.Builder extends com.google.protobuf.GeneratedMessage.Builder<CloudLocation.Builder> implements CloudLocationOrBuilder
 Represents resource cloud locations.
 
Protobuf type google.cloud.locationfinder.v1.CloudLocation
  • 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.Builder<CloudLocation.Builder>
    • clear

      public CloudLocation.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CloudLocation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CloudLocation.Builder>
    • getDefaultInstanceForType

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

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

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

      public CloudLocation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudLocation.Builder>
    • mergeFrom

      public CloudLocation.Builder mergeFrom(CloudLocation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CloudLocation.Builder>
    • mergeFrom

      public CloudLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CloudLocation.Builder>
      Throws:
      IOException
    • 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.
    • setName

      public CloudLocation.Builder setName(String value)
       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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public CloudLocation.Builder clearName()
       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:
      This builder for chaining.
    • setNameBytes

      public CloudLocation.Builder setNameBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setContainingCloudLocation

      public CloudLocation.Builder setContainingCloudLocation(String value)
       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) = { ... }
      Parameters:
      value - The containingCloudLocation to set.
      Returns:
      This builder for chaining.
    • clearContainingCloudLocation

      public CloudLocation.Builder clearContainingCloudLocation()
       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:
      This builder for chaining.
    • setContainingCloudLocationBytes

      public CloudLocation.Builder setContainingCloudLocationBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for containingCloudLocation to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDisplayName

      public CloudLocation.Builder setDisplayName(String value)
       Optional. The human-readable name of the cloud location. Example:
       us-east-2, us-east1.
       
      string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public CloudLocation.Builder clearDisplayName()
       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:
      This builder for chaining.
    • setDisplayNameBytes

      public CloudLocation.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. The human-readable name of the cloud location. Example:
       us-east-2, us-east1.
       
      string display_name = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCloudProviderValue

      public CloudLocation.Builder setCloudProviderValue(int value)
       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];
      Parameters:
      value - The enum numeric value on the wire for cloudProvider to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCloudProvider

      public CloudLocation.Builder setCloudProvider(CloudLocation.CloudProvider value)
       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];
      Parameters:
      value - The cloudProvider to set.
      Returns:
      This builder for chaining.
    • clearCloudProvider

      public CloudLocation.Builder clearCloudProvider()
       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:
      This builder for chaining.
    • 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.
    • setTerritoryCode

      public CloudLocation.Builder setTerritoryCode(String value)
       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];
      Parameters:
      value - The territoryCode to set.
      Returns:
      This builder for chaining.
    • clearTerritoryCode

      public CloudLocation.Builder clearTerritoryCode()
       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:
      This builder for chaining.
    • setTerritoryCodeBytes

      public CloudLocation.Builder setTerritoryCodeBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for territoryCode to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCloudLocationTypeValue

      public CloudLocation.Builder setCloudLocationTypeValue(int value)
       Optional. The type of the cloud location.
       
      .google.cloud.locationfinder.v1.CloudLocation.CloudLocationType cloud_location_type = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for cloudLocationType to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCloudLocationType

      public CloudLocation.Builder setCloudLocationType(CloudLocation.CloudLocationType value)
       Optional. The type of the cloud location.
       
      .google.cloud.locationfinder.v1.CloudLocation.CloudLocationType cloud_location_type = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The cloudLocationType to set.
      Returns:
      This builder for chaining.
    • clearCloudLocationType

      public CloudLocation.Builder clearCloudLocationType()
       Optional. The type of the cloud location.
       
      .google.cloud.locationfinder.v1.CloudLocation.CloudLocationType cloud_location_type = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • 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.
    • setCarbonFreeEnergyPercentage

      public CloudLocation.Builder setCarbonFreeEnergyPercentage(float value)
       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];
      Parameters:
      value - The carbonFreeEnergyPercentage to set.
      Returns:
      This builder for chaining.
    • clearCarbonFreeEnergyPercentage

      public CloudLocation.Builder clearCarbonFreeEnergyPercentage()
       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:
      This builder for chaining.