Enum Disk.AccessMode

java.lang.Object
java.lang.Enum<Disk.AccessMode>
com.google.cloud.compute.v1.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 Details

    • UNDEFINED_ACCESS_MODE

      public static final Disk.AccessMode UNDEFINED_ACCESS_MODE
       A value indicating that the enum field is not set.
       
      UNDEFINED_ACCESS_MODE = 0;
    • READ_ONLY_MANY

      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;
    • READ_WRITE_MANY

      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;
    • READ_WRITE_SINGLE

      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;
    • UNRECOGNIZED

      public static final Disk.AccessMode UNRECOGNIZED
  • Field Details

    • UNDEFINED_ACCESS_MODE_VALUE

      public static final int UNDEFINED_ACCESS_MODE_VALUE
       A 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_VALUE
       The 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_VALUE
       The 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_VALUE
       The default AccessMode, means the disk can be attached to single instance
       in RW mode.
       
      READ_WRITE_SINGLE = 99323089;
      See Also:
  • Method Details

    • values

      public static Disk.AccessMode[] 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

      public static Disk.AccessMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Disk.AccessMode valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static Disk.AccessMode forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Disk.AccessMode> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Disk.AccessMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null