Package com.google.cloud.compute.v1
Interface SnapshotSettingsStorageLocationSettingsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SnapshotSettingsStorageLocationSettings,SnapshotSettingsStorageLocationSettings.Builder
@Generated
public interface SnapshotSettingsStorageLocationSettingsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLocations(String key) When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field.Deprecated.intWhen the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field.When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field.getLocationsOrDefault(String key, SnapshotSettingsStorageLocationSettingsStorageLocationPreference defaultValue) When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field.When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field.The chosen location policy.com.google.protobuf.ByteStringThe chosen location policy.booleanThe chosen location policy.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getLocationsCount
int getLocationsCount()When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are Cloud Storage bucket locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454; -
containsLocations
When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are Cloud Storage bucket locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454; -
getLocations
@Deprecated Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocations()Deprecated.UsegetLocationsMap()instead. -
getLocationsMap
Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocationsMap()When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are Cloud Storage bucket locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454; -
getLocationsOrDefault
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 Cloud Storage bucket locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454; -
getLocationsOrThrow
When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are Cloud Storage bucket locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454; -
hasPolicy
boolean hasPolicy()The chosen location policy. Check the Policy enum for the list of possible values.
optional string policy = 91071794;- Returns:
- Whether the policy field is set.
-
getPolicy
String getPolicy()The chosen location policy. Check the Policy enum for the list of possible values.
optional string policy = 91071794;- Returns:
- The policy.
-
getPolicyBytes
com.google.protobuf.ByteString getPolicyBytes()The chosen location policy. Check the Policy enum for the list of possible values.
optional string policy = 91071794;- Returns:
- The bytes for policy.
-