Interface SnapshotSettingsStorageLocationSettingsOrBuilder (1.52.0)

public interface SnapshotSettingsStorageLocationSettingsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLocations(String key)

public abstract boolean containsLocations(String key)

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

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

Parameter
Name Description
key String
Returns
Type Description
boolean

getLocations() (deprecated)

public abstract Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocations()

Use #getLocationsMap() instead.

Returns
Type Description
Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference>

getLocationsCount()

public abstract int getLocationsCount()

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

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

Returns
Type Description
int

getLocationsMap()

public abstract Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocationsMap()

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

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

Returns
Type Description
Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference>

getLocationsOrDefault(String key, SnapshotSettingsStorageLocationSettingsStorageLocationPreference defaultValue)

public abstract SnapshotSettingsStorageLocationSettingsStorageLocationPreference getLocationsOrDefault(String key, SnapshotSettingsStorageLocationSettingsStorageLocationPreference defaultValue)

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

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

Parameters
Name Description
key String
defaultValue SnapshotSettingsStorageLocationSettingsStorageLocationPreference
Returns
Type Description
SnapshotSettingsStorageLocationSettingsStorageLocationPreference

getLocationsOrThrow(String key)

public abstract SnapshotSettingsStorageLocationSettingsStorageLocationPreference getLocationsOrThrow(String key)

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.

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

Parameter
Name Description
key String
Returns
Type Description
SnapshotSettingsStorageLocationSettingsStorageLocationPreference

getPolicy()

public abstract String getPolicy()

The chosen location policy. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
Type Description
String

The policy.

getPolicyBytes()

public abstract ByteString getPolicyBytes()

The chosen location policy. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
Type Description
ByteString

The bytes for policy.

hasPolicy()

public abstract boolean hasPolicy()

The chosen location policy. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
Type Description
boolean

Whether the policy field is set.