Class FutureResourcesSpecLocationPolicy.Builder (1.93.0)

public static final class FutureResourcesSpecLocationPolicy.Builder extends GeneratedMessage.Builder<FutureResourcesSpecLocationPolicy.Builder> implements FutureResourcesSpecLocationPolicyOrBuilder

Specification of locations to create resources in.

Protobuf type google.cloud.compute.v1.FutureResourcesSpecLocationPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public FutureResourcesSpecLocationPolicy build()
Returns
Type Description
FutureResourcesSpecLocationPolicy

buildPartial()

public FutureResourcesSpecLocationPolicy buildPartial()
Returns
Type Description
FutureResourcesSpecLocationPolicy

clear()

public FutureResourcesSpecLocationPolicy.Builder clear()
Returns
Type Description
FutureResourcesSpecLocationPolicy.Builder
Overrides

clearLocations()

public FutureResourcesSpecLocationPolicy.Builder clearLocations()
Returns
Type Description
FutureResourcesSpecLocationPolicy.Builder

containsLocations(String key)

public boolean containsLocations(String key)

Preferences for specified locations. Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

map<string, .google.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation> locations = 413423454;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public FutureResourcesSpecLocationPolicy getDefaultInstanceForType()
Returns
Type Description
FutureResourcesSpecLocationPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLocations() (deprecated)

public Map<String,FutureResourcesSpecLocationPolicyLocation> getLocations()

Use #getLocationsMap() instead.

Returns
Type Description
Map<String,FutureResourcesSpecLocationPolicyLocation>

getLocationsCount()

public int getLocationsCount()

Preferences for specified locations. Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

map<string, .google.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation> locations = 413423454;

Returns
Type Description
int

getLocationsMap()

public Map<String,FutureResourcesSpecLocationPolicyLocation> getLocationsMap()

Preferences for specified locations. Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

map<string, .google.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation> locations = 413423454;

Returns
Type Description
Map<String,FutureResourcesSpecLocationPolicyLocation>

getLocationsOrDefault(String key, FutureResourcesSpecLocationPolicyLocation defaultValue)

public FutureResourcesSpecLocationPolicyLocation getLocationsOrDefault(String key, FutureResourcesSpecLocationPolicyLocation defaultValue)

Preferences for specified locations. Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

map<string, .google.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation> locations = 413423454;

Parameters
Name Description
key String
defaultValue FutureResourcesSpecLocationPolicyLocation
Returns
Type Description
FutureResourcesSpecLocationPolicyLocation

getLocationsOrThrow(String key)

public FutureResourcesSpecLocationPolicyLocation getLocationsOrThrow(String key)

Preferences for specified locations. Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

map<string, .google.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation> locations = 413423454;

Parameter
Name Description
key String
Returns
Type Description
FutureResourcesSpecLocationPolicyLocation

getMutableLocations() (deprecated)

public Map<String,FutureResourcesSpecLocationPolicyLocation> getMutableLocations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,FutureResourcesSpecLocationPolicyLocation>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FutureResourcesSpecLocationPolicy other)

public FutureResourcesSpecLocationPolicy.Builder mergeFrom(FutureResourcesSpecLocationPolicy other)
Parameter
Name Description
other FutureResourcesSpecLocationPolicy
Returns
Type Description
FutureResourcesSpecLocationPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FutureResourcesSpecLocationPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FutureResourcesSpecLocationPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FutureResourcesSpecLocationPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FutureResourcesSpecLocationPolicy.Builder
Overrides

putAllLocations(Map<String,FutureResourcesSpecLocationPolicyLocation> values)

public FutureResourcesSpecLocationPolicy.Builder putAllLocations(Map<String,FutureResourcesSpecLocationPolicyLocation> values)

Preferences for specified locations. Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

map<string, .google.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation> locations = 413423454;

Parameter
Name Description
values Map<String,FutureResourcesSpecLocationPolicyLocation>
Returns
Type Description
FutureResourcesSpecLocationPolicy.Builder

putLocations(String key, FutureResourcesSpecLocationPolicyLocation value)

public FutureResourcesSpecLocationPolicy.Builder putLocations(String key, FutureResourcesSpecLocationPolicyLocation value)

Preferences for specified locations. Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

map<string, .google.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation> locations = 413423454;

Parameters
Name Description
key String
value FutureResourcesSpecLocationPolicyLocation
Returns
Type Description
FutureResourcesSpecLocationPolicy.Builder

putLocationsBuilderIfAbsent(String key)

public FutureResourcesSpecLocationPolicyLocation.Builder putLocationsBuilderIfAbsent(String key)

Preferences for specified locations. Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

map<string, .google.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation> locations = 413423454;

Parameter
Name Description
key String
Returns
Type Description
FutureResourcesSpecLocationPolicyLocation.Builder

removeLocations(String key)

public FutureResourcesSpecLocationPolicy.Builder removeLocations(String key)

Preferences for specified locations. Keys of the map are locations - zones, in format of 'zones/'. Values are preferences for the zones. If a zone is not specified in this map, it is ALLOWed.

map<string, .google.cloud.compute.v1.FutureResourcesSpecLocationPolicyLocation> locations = 413423454;

Parameter
Name Description
key String
Returns
Type Description
FutureResourcesSpecLocationPolicy.Builder