Interface LocationPolicyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
LocationPolicy, LocationPolicy.Builder

@Generated public interface LocationPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getLocationsCount

      int getLocationsCount()
       Location configurations mapped by location name.
       Currently only zone names are supported and must be represented as valid
       internal URLs, such as zones/us-central1-a.
       The bulkInsert operation doesn't create instances in an AI zone, even if
       an AI zone is available in the specified region. For example, if you set a
       DENY preference for us-central1-a, Compute Engine will consider
       us-central1-b and us-central1-c for instance creation, but not
       us-central1-ai1a. Also, you can't use the locations[] configuration to
       allow instance creation in an AI zone. To include an AI zone in bulkInsert
       operations, use the locationPolicy.zones[] field.
       
      map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
    • containsLocations

      boolean containsLocations(String key)
       Location configurations mapped by location name.
       Currently only zone names are supported and must be represented as valid
       internal URLs, such as zones/us-central1-a.
       The bulkInsert operation doesn't create instances in an AI zone, even if
       an AI zone is available in the specified region. For example, if you set a
       DENY preference for us-central1-a, Compute Engine will consider
       us-central1-b and us-central1-c for instance creation, but not
       us-central1-ai1a. Also, you can't use the locations[] configuration to
       allow instance creation in an AI zone. To include an AI zone in bulkInsert
       operations, use the locationPolicy.zones[] field.
       
      map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
    • getLocations

      Deprecated.
      Use getLocationsMap() instead.
    • getLocationsMap

      Map<String,LocationPolicyLocation> getLocationsMap()
       Location configurations mapped by location name.
       Currently only zone names are supported and must be represented as valid
       internal URLs, such as zones/us-central1-a.
       The bulkInsert operation doesn't create instances in an AI zone, even if
       an AI zone is available in the specified region. For example, if you set a
       DENY preference for us-central1-a, Compute Engine will consider
       us-central1-b and us-central1-c for instance creation, but not
       us-central1-ai1a. Also, you can't use the locations[] configuration to
       allow instance creation in an AI zone. To include an AI zone in bulkInsert
       operations, use the locationPolicy.zones[] field.
       
      map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
    • getLocationsOrDefault

      LocationPolicyLocation getLocationsOrDefault(String key, LocationPolicyLocation defaultValue)
       Location configurations mapped by location name.
       Currently only zone names are supported and must be represented as valid
       internal URLs, such as zones/us-central1-a.
       The bulkInsert operation doesn't create instances in an AI zone, even if
       an AI zone is available in the specified region. For example, if you set a
       DENY preference for us-central1-a, Compute Engine will consider
       us-central1-b and us-central1-c for instance creation, but not
       us-central1-ai1a. Also, you can't use the locations[] configuration to
       allow instance creation in an AI zone. To include an AI zone in bulkInsert
       operations, use the locationPolicy.zones[] field.
       
      map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
    • getLocationsOrThrow

      LocationPolicyLocation getLocationsOrThrow(String key)
       Location configurations mapped by location name.
       Currently only zone names are supported and must be represented as valid
       internal URLs, such as zones/us-central1-a.
       The bulkInsert operation doesn't create instances in an AI zone, even if
       an AI zone is available in the specified region. For example, if you set a
       DENY preference for us-central1-a, Compute Engine will consider
       us-central1-b and us-central1-c for instance creation, but not
       us-central1-ai1a. Also, you can't use the locations[] configuration to
       allow instance creation in an AI zone. To include an AI zone in bulkInsert
       operations, use the locationPolicy.zones[] field.
       
      map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
    • hasTargetShape

      boolean hasTargetShape()
       Strategy for distributing VMs across zones in a region.
       Check the TargetShape enum for the list of possible values.
       
      optional string target_shape = 338621299;
      Returns:
      Whether the targetShape field is set.
    • getTargetShape

      String getTargetShape()
       Strategy for distributing VMs across zones in a region.
       Check the TargetShape enum for the list of possible values.
       
      optional string target_shape = 338621299;
      Returns:
      The targetShape.
    • getTargetShapeBytes

      com.google.protobuf.ByteString getTargetShapeBytes()
       Strategy for distributing VMs across zones in a region.
       Check the TargetShape enum for the list of possible values.
       
      optional string target_shape = 338621299;
      Returns:
      The bytes for targetShape.
    • getZonesList

       The bulkInsert operation applies any preferences set in the locations
       field to the specific zones listed in the zones field if the same zones
       are specified in both fields.
       
      repeated .google.cloud.compute.v1.LocationPolicyZoneConfiguration zones = 116085319;
    • getZones

      LocationPolicyZoneConfiguration getZones(int index)
       The bulkInsert operation applies any preferences set in the locations
       field to the specific zones listed in the zones field if the same zones
       are specified in both fields.
       
      repeated .google.cloud.compute.v1.LocationPolicyZoneConfiguration zones = 116085319;
    • getZonesCount

      int getZonesCount()
       The bulkInsert operation applies any preferences set in the locations
       field to the specific zones listed in the zones field if the same zones
       are specified in both fields.
       
      repeated .google.cloud.compute.v1.LocationPolicyZoneConfiguration zones = 116085319;
    • getZonesOrBuilderList

      List<? extends LocationPolicyZoneConfigurationOrBuilder> getZonesOrBuilderList()
       The bulkInsert operation applies any preferences set in the locations
       field to the specific zones listed in the zones field if the same zones
       are specified in both fields.
       
      repeated .google.cloud.compute.v1.LocationPolicyZoneConfiguration zones = 116085319;
    • getZonesOrBuilder

      LocationPolicyZoneConfigurationOrBuilder getZonesOrBuilder(int index)
       The bulkInsert operation applies any preferences set in the locations
       field to the specific zones listed in the zones field if the same zones
       are specified in both fields.
       
      repeated .google.cloud.compute.v1.LocationPolicyZoneConfiguration zones = 116085319;