Package com.google.cloud.compute.v1
Class LocationPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LocationPolicy.Builder>
com.google.cloud.compute.v1.LocationPolicy.Builder
- All Implemented Interfaces:
LocationPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LocationPolicy
public static final class LocationPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LocationPolicy.Builder>
implements LocationPolicyOrBuilder
Configuration for location policy among multiple possible locations (e.g. preferences for zone selection among zones in a single region).Protobuf type
google.cloud.compute.v1.LocationPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllZones(Iterable<? extends LocationPolicyZoneConfiguration> values) 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.addZones(int index, LocationPolicyZoneConfiguration value) 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.addZones(int index, LocationPolicyZoneConfiguration.Builder builderForValue) 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.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.addZones(LocationPolicyZoneConfiguration.Builder builderForValue) 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.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.addZonesBuilder(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.build()clear()Strategy for distributing VMs across zones in a region.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.booleancontainsLocations(String key) Location configurations mapped by location name.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intLocation configurations mapped by location name.Location configurations mapped by location name.getLocationsOrDefault(String key, LocationPolicyLocation defaultValue) Location configurations mapped by location name.Location configurations mapped by location name.Deprecated.Strategy for distributing VMs across zones in a region.com.google.protobuf.ByteStringStrategy for distributing VMs across zones in a region.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.getZonesBuilder(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.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.intThe 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.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.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.List<? extends LocationPolicyZoneConfigurationOrBuilder>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.booleanStrategy for distributing VMs across zones in a region.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(LocationPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllLocations(Map<String, LocationPolicyLocation> values) Location configurations mapped by location name.putLocations(String key, LocationPolicyLocation value) Location configurations mapped by location name.Location configurations mapped by location name.removeLocations(String key) Location configurations mapped by location name.removeZones(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.setTargetShape(String value) Strategy for distributing VMs across zones in a region.setTargetShapeBytes(com.google.protobuf.ByteString value) Strategy for distributing VMs across zones in a region.setZones(int index, LocationPolicyZoneConfiguration value) 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.setZones(int index, LocationPolicyZoneConfiguration.Builder builderForValue) 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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<LocationPolicy.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<LocationPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LocationPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LocationPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LocationPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LocationPolicy.Builder>
-
mergeFrom
public LocationPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationPolicy.Builder>- Throws:
IOException
-
getLocationsCount
public int getLocationsCount()Description copied from interface:LocationPolicyOrBuilderLocation 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;- Specified by:
getLocationsCountin interfaceLocationPolicyOrBuilder
-
containsLocations
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;- Specified by:
containsLocationsin interfaceLocationPolicyOrBuilder
-
getLocations
Deprecated.UsegetLocationsMap()instead.- Specified by:
getLocationsin interfaceLocationPolicyOrBuilder
-
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;- Specified by:
getLocationsMapin interfaceLocationPolicyOrBuilder
-
getLocationsOrDefault
public 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;- Specified by:
getLocationsOrDefaultin interfaceLocationPolicyOrBuilder
-
getLocationsOrThrow
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;- Specified by:
getLocationsOrThrowin interfaceLocationPolicyOrBuilder
-
clearLocations
-
removeLocations
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; -
getMutableLocations
Deprecated.Use alternate mutation accessors instead. -
putLocations
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; -
putAllLocations
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; -
putLocationsBuilderIfAbsent
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
public 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;- Specified by:
hasTargetShapein interfaceLocationPolicyOrBuilder- Returns:
- Whether the targetShape field is set.
-
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;- Specified by:
getTargetShapein interfaceLocationPolicyOrBuilder- Returns:
- The targetShape.
-
getTargetShapeBytes
public 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;- Specified by:
getTargetShapeBytesin interfaceLocationPolicyOrBuilder- Returns:
- The bytes for targetShape.
-
setTargetShape
Strategy for distributing VMs across zones in a region. Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;- Parameters:
value- The targetShape to set.- Returns:
- This builder for chaining.
-
clearTargetShape
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:
- This builder for chaining.
-
setTargetShapeBytes
Strategy for distributing VMs across zones in a region. Check the TargetShape enum for the list of possible values.
optional string target_shape = 338621299;- Parameters:
value- The bytes for targetShape to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getZonesListin interfaceLocationPolicyOrBuilder
-
getZonesCount
public 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;- Specified by:
getZonesCountin interfaceLocationPolicyOrBuilder
-
getZones
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;- Specified by:
getZonesin interfaceLocationPolicyOrBuilder
-
setZones
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; -
setZones
public LocationPolicy.Builder setZones(int index, LocationPolicyZoneConfiguration.Builder builderForValue) 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; -
addZones
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; -
addZones
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; -
addZones
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; -
addZones
public LocationPolicy.Builder addZones(int index, LocationPolicyZoneConfiguration.Builder builderForValue) 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; -
addAllZones
public LocationPolicy.Builder addAllZones(Iterable<? extends LocationPolicyZoneConfiguration> values) 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; -
clearZones
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; -
removeZones
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; -
getZonesBuilder
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
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;- Specified by:
getZonesOrBuilderin interfaceLocationPolicyOrBuilder
-
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;- Specified by:
getZonesOrBuilderListin interfaceLocationPolicyOrBuilder
-
addZonesBuilder
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; -
addZonesBuilder
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; -
getZonesBuilderList
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;
-