Interface SnapshotSettingsAccessLocationOrBuilder (1.105.0)

public interface SnapshotSettingsAccessLocationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLocations(String key)

public abstract boolean containsLocations(String key)

List of regions that can restore a regional snapshot from the current region

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

Parameter
Name Description
key String
Returns
Type Description
boolean

getLocations() (deprecated)

public abstract Map<String,SnapshotSettingsAccessLocationAccessLocationPreference> getLocations()

Use #getLocationsMap() instead.

Returns
Type Description
Map<String,SnapshotSettingsAccessLocationAccessLocationPreference>

getLocationsCount()

public abstract int getLocationsCount()

List of regions that can restore a regional snapshot from the current region

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

Returns
Type Description
int

getLocationsMap()

public abstract Map<String,SnapshotSettingsAccessLocationAccessLocationPreference> getLocationsMap()

List of regions that can restore a regional snapshot from the current region

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

Returns
Type Description
Map<String,SnapshotSettingsAccessLocationAccessLocationPreference>

getLocationsOrDefault(String key, SnapshotSettingsAccessLocationAccessLocationPreference defaultValue)

public abstract SnapshotSettingsAccessLocationAccessLocationPreference getLocationsOrDefault(String key, SnapshotSettingsAccessLocationAccessLocationPreference defaultValue)

List of regions that can restore a regional snapshot from the current region

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

Parameters
Name Description
key String
defaultValue SnapshotSettingsAccessLocationAccessLocationPreference
Returns
Type Description
SnapshotSettingsAccessLocationAccessLocationPreference

getLocationsOrThrow(String key)

public abstract SnapshotSettingsAccessLocationAccessLocationPreference getLocationsOrThrow(String key)

List of regions that can restore a regional snapshot from the current region

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

Parameter
Name Description
key String
Returns
Type Description
SnapshotSettingsAccessLocationAccessLocationPreference

getPolicy()

public abstract String getPolicy()

Policy of which location is allowed to access snapshot. 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()

Policy of which location is allowed to access snapshot. 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()

Policy of which location is allowed to access snapshot. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
Type Description
boolean

Whether the policy field is set.