public static enum Disk.AccessMode extends Enum<Disk.AccessMode> implements com.google.protobuf.ProtocolMessageEnum
The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode, means the disk can be attached to single instance in RW mode. - READ_WRITE_MANY: The AccessMode means the disk can be attached to multiple instances in RW mode. - READ_ONLY_MANY: The AccessMode means the disk can be attached to multiple instances in RO mode. The AccessMode is only valid for Hyperdisk disk types.Protobuf enum
google.cloud.compute.v1.Disk.AccessMode| Enum Constant and Description |
|---|
READ_ONLY_MANY
The AccessMode means the disk can be attached to multiple instances in RO mode.
|
READ_WRITE_MANY
The AccessMode means the disk can be attached to multiple instances in RW mode.
|
READ_WRITE_SINGLE
The default AccessMode, means the disk can be attached to single instance in RW mode.
|
UNDEFINED_ACCESS_MODE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
READ_ONLY_MANY_VALUE
The AccessMode means the disk can be attached to multiple instances in RO mode.
|
static int |
READ_WRITE_MANY_VALUE
The AccessMode means the disk can be attached to multiple instances in RW mode.
|
static int |
READ_WRITE_SINGLE_VALUE
The default AccessMode, means the disk can be attached to single instance in RW mode.
|
static int |
UNDEFINED_ACCESS_MODE_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static Disk.AccessMode |
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<Disk.AccessMode> |
internalGetValueMap() |
static Disk.AccessMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Disk.AccessMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Disk.AccessMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Disk.AccessMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Disk.AccessMode UNDEFINED_ACCESS_MODE
A value indicating that the enum field is not set.
UNDEFINED_ACCESS_MODE = 0;public static final Disk.AccessMode READ_ONLY_MANY
The AccessMode means the disk can be attached to multiple instances in RO mode.
READ_ONLY_MANY = 63460265;public static final Disk.AccessMode READ_WRITE_MANY
The AccessMode means the disk can be attached to multiple instances in RW mode.
READ_WRITE_MANY = 488743208;public static final Disk.AccessMode READ_WRITE_SINGLE
The default AccessMode, means the disk can be attached to single instance in RW mode.
READ_WRITE_SINGLE = 99323089;public static final Disk.AccessMode UNRECOGNIZED
public static final int UNDEFINED_ACCESS_MODE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_ACCESS_MODE = 0;public static final int READ_ONLY_MANY_VALUE
The AccessMode means the disk can be attached to multiple instances in RO mode.
READ_ONLY_MANY = 63460265;public static final int READ_WRITE_MANY_VALUE
The AccessMode means the disk can be attached to multiple instances in RW mode.
READ_WRITE_MANY = 488743208;public static final int READ_WRITE_SINGLE_VALUE
The default AccessMode, means the disk can be attached to single instance in RW mode.
READ_WRITE_SINGLE = 99323089;public static Disk.AccessMode[] values()
for (Disk.AccessMode c : Disk.AccessMode.values()) System.out.println(c);
public static Disk.AccessMode 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 Disk.AccessMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Disk.AccessMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Disk.AccessMode> 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 Disk.AccessMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.