Package com.google.cloud.compute.v1
Enum Disk.AccessMode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Disk.AccessMode>
- Enclosing class:
- Disk
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 Summary
Enum ConstantsEnum ConstantDescriptionThe AccessMode means the disk can be attached to multiple instances in RO mode.The AccessMode means the disk can be attached to multiple instances in RW mode.The default AccessMode, means the disk can be attached to single instance in RW mode.A value indicating that the enum field is not set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe AccessMode means the disk can be attached to multiple instances in RO mode.static final intThe AccessMode means the disk can be attached to multiple instances in RW mode.static final intThe default AccessMode, means the disk can be attached to single instance in RW mode.static final intA value indicating that the enum field is not set. -
Method Summary
Modifier and TypeMethodDescriptionstatic Disk.AccessModeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Disk.AccessMode>static Disk.AccessModevalueOf(int value) Deprecated.static Disk.AccessModevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Disk.AccessModeReturns 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.
-
Enum Constant Details
-
UNDEFINED_ACCESS_MODE
A value indicating that the enum field is not set.
UNDEFINED_ACCESS_MODE = 0; -
READ_ONLY_MANY
The AccessMode means the disk can be attached to multiple instances in RO mode.
READ_ONLY_MANY = 63460265; -
READ_WRITE_MANY
The AccessMode means the disk can be attached to multiple instances in RW mode.
READ_WRITE_MANY = 488743208; -
READ_WRITE_SINGLE
The default AccessMode, means the disk can be attached to single instance in RW mode.
READ_WRITE_SINGLE = 99323089; -
UNRECOGNIZED
-
-
Field Details
-
UNDEFINED_ACCESS_MODE_VALUE
public static final int UNDEFINED_ACCESS_MODE_VALUEA value indicating that the enum field is not set.
UNDEFINED_ACCESS_MODE = 0;- See Also:
-
READ_ONLY_MANY_VALUE
public static final int READ_ONLY_MANY_VALUEThe AccessMode means the disk can be attached to multiple instances in RO mode.
READ_ONLY_MANY = 63460265;- See Also:
-
READ_WRITE_MANY_VALUE
public static final int READ_WRITE_MANY_VALUEThe AccessMode means the disk can be attached to multiple instances in RW mode.
READ_WRITE_MANY = 488743208;- See Also:
-
READ_WRITE_SINGLE_VALUE
public static final int READ_WRITE_SINGLE_VALUEThe default AccessMode, means the disk can be attached to single instance in RW mode.
READ_WRITE_SINGLE = 99323089;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-