Interface LocationPolicyOrBuilder

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

    public interface LocationPolicyOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • 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.
         
        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.
         
        map<string, .google.cloud.compute.v1.LocationPolicyLocation> locations = 413423454;
      • 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.
         
        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.
         
        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.
         
        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.