Package com.google.cloud.compute.v1
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 Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsLocations(String key)
Location configurations mapped by location name.Map<String,LocationPolicyLocation>
getLocations()
Deprecated.int
getLocationsCount()
Location configurations mapped by location name.Map<String,LocationPolicyLocation>
getLocationsMap()
Location configurations mapped by location name.LocationPolicyLocation
getLocationsOrDefault(String key, LocationPolicyLocation defaultValue)
Location configurations mapped by location name.LocationPolicyLocation
getLocationsOrThrow(String key)
Location configurations mapped by location name.String
getTargetShape()
Strategy for distributing VMs across zones in a region.com.google.protobuf.ByteString
getTargetShapeBytes()
Strategy for distributing VMs across zones in a region.boolean
hasTargetShape()
Strategy for distributing VMs across zones in a region.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
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;
-
getLocations
@Deprecated Map<String,LocationPolicyLocation> getLocations()
Deprecated.UsegetLocationsMap()
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.
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.
-
-