public static enum SnapshotSettingsStorageLocationSettings.Policy extends Enum<SnapshotSettingsStorageLocationSettings.Policy> implements com.google.protobuf.ProtocolMessageEnum
The chosen location policy.Protobuf enum
google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings.Policy| Enum Constant and Description |
|---|
LOCAL_REGION
Store snapshot in the same region as with the originating disk.
|
NEAREST_MULTI_REGION
Store snapshot in the nearest multi region Cloud Storage bucket, relative to the originating disk.
|
SPECIFIC_LOCATIONS
Store snapshot in the specific locations, as specified by the user.
|
STORAGE_LOCATION_POLICY_UNSPECIFIED
STORAGE_LOCATION_POLICY_UNSPECIFIED = 250644592; |
UNDEFINED_POLICY
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
LOCAL_REGION_VALUE
Store snapshot in the same region as with the originating disk.
|
static int |
NEAREST_MULTI_REGION_VALUE
Store snapshot in the nearest multi region Cloud Storage bucket, relative to the originating disk.
|
static int |
SPECIFIC_LOCATIONS_VALUE
Store snapshot in the specific locations, as specified by the user.
|
static int |
STORAGE_LOCATION_POLICY_UNSPECIFIED_VALUE
STORAGE_LOCATION_POLICY_UNSPECIFIED = 250644592; |
static int |
UNDEFINED_POLICY_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static SnapshotSettingsStorageLocationSettings.Policy |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<SnapshotSettingsStorageLocationSettings.Policy> |
internalGetValueMap() |
static SnapshotSettingsStorageLocationSettings.Policy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SnapshotSettingsStorageLocationSettings.Policy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SnapshotSettingsStorageLocationSettings.Policy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SnapshotSettingsStorageLocationSettings.Policy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SnapshotSettingsStorageLocationSettings.Policy UNDEFINED_POLICY
A value indicating that the enum field is not set.
UNDEFINED_POLICY = 0;public static final SnapshotSettingsStorageLocationSettings.Policy LOCAL_REGION
Store snapshot in the same region as with the originating disk. No additional parameters are needed.
LOCAL_REGION = 403535464;public static final SnapshotSettingsStorageLocationSettings.Policy NEAREST_MULTI_REGION
Store snapshot in the nearest multi region Cloud Storage bucket, relative to the originating disk. No additional parameters are needed.
NEAREST_MULTI_REGION = 212467515;public static final SnapshotSettingsStorageLocationSettings.Policy SPECIFIC_LOCATIONS
Store snapshot in the specific locations, as specified by the user. The list of regions to store must be defined under the `locations` field.
SPECIFIC_LOCATIONS = 280093809;public static final SnapshotSettingsStorageLocationSettings.Policy STORAGE_LOCATION_POLICY_UNSPECIFIED
STORAGE_LOCATION_POLICY_UNSPECIFIED = 250644592;public static final SnapshotSettingsStorageLocationSettings.Policy UNRECOGNIZED
public static final int UNDEFINED_POLICY_VALUE
A value indicating that the enum field is not set.
UNDEFINED_POLICY = 0;public static final int LOCAL_REGION_VALUE
Store snapshot in the same region as with the originating disk. No additional parameters are needed.
LOCAL_REGION = 403535464;public static final int NEAREST_MULTI_REGION_VALUE
Store snapshot in the nearest multi region Cloud Storage bucket, relative to the originating disk. No additional parameters are needed.
NEAREST_MULTI_REGION = 212467515;public static final int SPECIFIC_LOCATIONS_VALUE
Store snapshot in the specific locations, as specified by the user. The list of regions to store must be defined under the `locations` field.
SPECIFIC_LOCATIONS = 280093809;public static final int STORAGE_LOCATION_POLICY_UNSPECIFIED_VALUE
STORAGE_LOCATION_POLICY_UNSPECIFIED = 250644592;public static SnapshotSettingsStorageLocationSettings.Policy[] values()
for (SnapshotSettingsStorageLocationSettings.Policy c : SnapshotSettingsStorageLocationSettings.Policy.values()) System.out.println(c);
public static SnapshotSettingsStorageLocationSettings.Policy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static SnapshotSettingsStorageLocationSettings.Policy valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SnapshotSettingsStorageLocationSettings.Policy forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SnapshotSettingsStorageLocationSettings.Policy> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static SnapshotSettingsStorageLocationSettings.Policy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.