Enum Commitment.Type

java.lang.Object
java.lang.Enum<Commitment.Type>
com.google.cloud.compute.v1.Commitment.Type
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Commitment.Type>
Enclosing class:
Commitment

public static enum Commitment.Type extends Enum<Commitment.Type> implements com.google.protobuf.ProtocolMessageEnum
 The type of commitment; specifies the
 machine series for which you want to commit to purchasing resources.
 The choice of machine series affects the discount rate and the eligible
 resource types.

 The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D,
 COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For
 example, type MEMORY_OPTIMIZED specifies a commitment that
 applies only to eligible resources of memory optimized M1 and M2 machine
 series. Type GENERAL_PURPOSE specifies a commitment that
 applies only to eligible resources of general purpose N1 machine series.
 
Protobuf enum google.cloud.compute.v1.Commitment.Type
  • Enum Constant Details

    • UNDEFINED_TYPE

      public static final Commitment.Type UNDEFINED_TYPE
       A value indicating that the enum field is not set.
       
      UNDEFINED_TYPE = 0;
    • ACCELERATOR_OPTIMIZED

      public static final Commitment.Type ACCELERATOR_OPTIMIZED
      ACCELERATOR_OPTIMIZED = 280848403;
    • ACCELERATOR_OPTIMIZED_A3

      public static final Commitment.Type ACCELERATOR_OPTIMIZED_A3
      ACCELERATOR_OPTIMIZED_A3 = 158574526;
    • ACCELERATOR_OPTIMIZED_A3_MEGA

      public static final Commitment.Type ACCELERATOR_OPTIMIZED_A3_MEGA
      ACCELERATOR_OPTIMIZED_A3_MEGA = 156517459;
    • ACCELERATOR_OPTIMIZED_A3_ULTRA

      public static final Commitment.Type ACCELERATOR_OPTIMIZED_A3_ULTRA
      ACCELERATOR_OPTIMIZED_A3_ULTRA = 27812811;
    • ACCELERATOR_OPTIMIZED_A4

      public static final Commitment.Type ACCELERATOR_OPTIMIZED_A4
      ACCELERATOR_OPTIMIZED_A4 = 158574527;
    • COMPUTE_OPTIMIZED

      public static final Commitment.Type COMPUTE_OPTIMIZED
      COMPUTE_OPTIMIZED = 158349023;
    • COMPUTE_OPTIMIZED_C2D

      public static final Commitment.Type COMPUTE_OPTIMIZED_C2D
      COMPUTE_OPTIMIZED_C2D = 383246453;
    • COMPUTE_OPTIMIZED_C3

      public static final Commitment.Type COMPUTE_OPTIMIZED_C3
      COMPUTE_OPTIMIZED_C3 = 428004784;
    • COMPUTE_OPTIMIZED_C3D

      public static final Commitment.Type COMPUTE_OPTIMIZED_C3D
      COMPUTE_OPTIMIZED_C3D = 383246484;
    • COMPUTE_OPTIMIZED_H3

      public static final Commitment.Type COMPUTE_OPTIMIZED_H3
      COMPUTE_OPTIMIZED_H3 = 428004939;
    • COMPUTE_OPTIMIZED_H4D

      public static final Commitment.Type COMPUTE_OPTIMIZED_H4D
      COMPUTE_OPTIMIZED_H4D = 383251320;
    • GENERAL_PURPOSE

      public static final Commitment.Type GENERAL_PURPOSE
      GENERAL_PURPOSE = 299793543;
    • GENERAL_PURPOSE_C4

      public static final Commitment.Type GENERAL_PURPOSE_C4
      GENERAL_PURPOSE_C4 = 301911817;
    • GENERAL_PURPOSE_C4A

      public static final Commitment.Type GENERAL_PURPOSE_C4A
      GENERAL_PURPOSE_C4A = 232460888;
    • GENERAL_PURPOSE_C4D

      public static final Commitment.Type GENERAL_PURPOSE_C4D
      GENERAL_PURPOSE_C4D = 232460891;
    • GENERAL_PURPOSE_E2

      public static final Commitment.Type GENERAL_PURPOSE_E2
      GENERAL_PURPOSE_E2 = 301911877;
    • GENERAL_PURPOSE_N2

      public static final Commitment.Type GENERAL_PURPOSE_N2
      GENERAL_PURPOSE_N2 = 301912156;
    • GENERAL_PURPOSE_N2D

      public static final Commitment.Type GENERAL_PURPOSE_N2D
      GENERAL_PURPOSE_N2D = 232471400;
    • GENERAL_PURPOSE_N4

      public static final Commitment.Type GENERAL_PURPOSE_N4
      GENERAL_PURPOSE_N4 = 301912158;
    • GENERAL_PURPOSE_N4A

      public static final Commitment.Type GENERAL_PURPOSE_N4A
      GENERAL_PURPOSE_N4A = 232471459;
    • GENERAL_PURPOSE_N4D

      public static final Commitment.Type GENERAL_PURPOSE_N4D
      GENERAL_PURPOSE_N4D = 232471462;
    • GENERAL_PURPOSE_T2D

      public static final Commitment.Type GENERAL_PURPOSE_T2D
      GENERAL_PURPOSE_T2D = 232477166;
    • GRAPHICS_OPTIMIZED

      public static final Commitment.Type GRAPHICS_OPTIMIZED
      GRAPHICS_OPTIMIZED = 68500563;
    • GRAPHICS_OPTIMIZED_G4

      public static final Commitment.Type GRAPHICS_OPTIMIZED_G4
      GRAPHICS_OPTIMIZED_G4 = 54029369;
    • MEMORY_OPTIMIZED

      public static final Commitment.Type MEMORY_OPTIMIZED
      MEMORY_OPTIMIZED = 281753417;
    • MEMORY_OPTIMIZED_M3

      public static final Commitment.Type MEMORY_OPTIMIZED_M3
      MEMORY_OPTIMIZED_M3 = 276301372;
    • MEMORY_OPTIMIZED_M4

      public static final Commitment.Type MEMORY_OPTIMIZED_M4
      MEMORY_OPTIMIZED_M4 = 276301373;
    • MEMORY_OPTIMIZED_M4_6TB

      public static final Commitment.Type MEMORY_OPTIMIZED_M4_6TB
      MEMORY_OPTIMIZED_M4_6TB = 210543650;
    • MEMORY_OPTIMIZED_X4_1440_24T

      public static final Commitment.Type MEMORY_OPTIMIZED_X4_1440_24T
       CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
       
      MEMORY_OPTIMIZED_X4_1440_24T = 206669823;
    • MEMORY_OPTIMIZED_X4_16TB

      public static final Commitment.Type MEMORY_OPTIMIZED_X4_16TB
      MEMORY_OPTIMIZED_X4_16TB = 183089120;
    • MEMORY_OPTIMIZED_X4_1920_32T

      public static final Commitment.Type MEMORY_OPTIMIZED_X4_1920_32T
       CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
       
      MEMORY_OPTIMIZED_X4_1920_32T = 291963529;
    • MEMORY_OPTIMIZED_X4_24TB

      public static final Commitment.Type MEMORY_OPTIMIZED_X4_24TB
      MEMORY_OPTIMIZED_X4_24TB = 183116989;
    • MEMORY_OPTIMIZED_X4_32TB

      public static final Commitment.Type MEMORY_OPTIMIZED_X4_32TB
      MEMORY_OPTIMIZED_X4_32TB = 183144858;
    • MEMORY_OPTIMIZED_X4_480_6T

      public static final Commitment.Type MEMORY_OPTIMIZED_X4_480_6T
       CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
       
      MEMORY_OPTIMIZED_X4_480_6T = 478547742;
    • MEMORY_OPTIMIZED_X4_480_8T

      public static final Commitment.Type MEMORY_OPTIMIZED_X4_480_8T
       CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
       
      MEMORY_OPTIMIZED_X4_480_8T = 478547804;
    • MEMORY_OPTIMIZED_X4_960_12T

      public static final Commitment.Type MEMORY_OPTIMIZED_X4_960_12T
       CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
       
      MEMORY_OPTIMIZED_X4_960_12T = 424752410;
    • MEMORY_OPTIMIZED_X4_960_16T

      public static final Commitment.Type MEMORY_OPTIMIZED_X4_960_16T
       CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
       
      MEMORY_OPTIMIZED_X4_960_16T = 424752534;
    • STORAGE_OPTIMIZED_Z3

      public static final Commitment.Type STORAGE_OPTIMIZED_Z3
      STORAGE_OPTIMIZED_Z3 = 316796085;
    • TYPE_UNSPECIFIED

      public static final Commitment.Type TYPE_UNSPECIFIED
       Note for internal users: When adding a new enum Type for v1, make sure
       to also add it in the comment for the `optional Type type` definition.
       This ensures that the public documentation displays the new enum Type.
       
      TYPE_UNSPECIFIED = 437714322;
    • UNRECOGNIZED

      public static final Commitment.Type UNRECOGNIZED
  • Field Details

    • UNDEFINED_TYPE_VALUE

      public static final int UNDEFINED_TYPE_VALUE
       A value indicating that the enum field is not set.
       
      UNDEFINED_TYPE = 0;
      See Also:
    • ACCELERATOR_OPTIMIZED_VALUE

      public static final int ACCELERATOR_OPTIMIZED_VALUE
      ACCELERATOR_OPTIMIZED = 280848403;
      See Also:
    • ACCELERATOR_OPTIMIZED_A3_VALUE

      public static final int ACCELERATOR_OPTIMIZED_A3_VALUE
      ACCELERATOR_OPTIMIZED_A3 = 158574526;
      See Also:
    • ACCELERATOR_OPTIMIZED_A3_MEGA_VALUE

      public static final int ACCELERATOR_OPTIMIZED_A3_MEGA_VALUE
      ACCELERATOR_OPTIMIZED_A3_MEGA = 156517459;
      See Also:
    • ACCELERATOR_OPTIMIZED_A3_ULTRA_VALUE

      public static final int ACCELERATOR_OPTIMIZED_A3_ULTRA_VALUE
      ACCELERATOR_OPTIMIZED_A3_ULTRA = 27812811;
      See Also:
    • ACCELERATOR_OPTIMIZED_A4_VALUE

      public static final int ACCELERATOR_OPTIMIZED_A4_VALUE
      ACCELERATOR_OPTIMIZED_A4 = 158574527;
      See Also:
    • COMPUTE_OPTIMIZED_VALUE

      public static final int COMPUTE_OPTIMIZED_VALUE
      COMPUTE_OPTIMIZED = 158349023;
      See Also:
    • COMPUTE_OPTIMIZED_C2D_VALUE

      public static final int COMPUTE_OPTIMIZED_C2D_VALUE
      COMPUTE_OPTIMIZED_C2D = 383246453;
      See Also:
    • COMPUTE_OPTIMIZED_C3_VALUE

      public static final int COMPUTE_OPTIMIZED_C3_VALUE
      COMPUTE_OPTIMIZED_C3 = 428004784;
      See Also:
    • COMPUTE_OPTIMIZED_C3D_VALUE

      public static final int COMPUTE_OPTIMIZED_C3D_VALUE
      COMPUTE_OPTIMIZED_C3D = 383246484;
      See Also:
    • COMPUTE_OPTIMIZED_H3_VALUE

      public static final int COMPUTE_OPTIMIZED_H3_VALUE
      COMPUTE_OPTIMIZED_H3 = 428004939;
      See Also:
    • COMPUTE_OPTIMIZED_H4D_VALUE

      public static final int COMPUTE_OPTIMIZED_H4D_VALUE
      COMPUTE_OPTIMIZED_H4D = 383251320;
      See Also:
    • GENERAL_PURPOSE_VALUE

      public static final int GENERAL_PURPOSE_VALUE
      GENERAL_PURPOSE = 299793543;
      See Also:
    • GENERAL_PURPOSE_C4_VALUE

      public static final int GENERAL_PURPOSE_C4_VALUE
      GENERAL_PURPOSE_C4 = 301911817;
      See Also:
    • GENERAL_PURPOSE_C4A_VALUE

      public static final int GENERAL_PURPOSE_C4A_VALUE
      GENERAL_PURPOSE_C4A = 232460888;
      See Also:
    • GENERAL_PURPOSE_C4D_VALUE

      public static final int GENERAL_PURPOSE_C4D_VALUE
      GENERAL_PURPOSE_C4D = 232460891;
      See Also:
    • GENERAL_PURPOSE_E2_VALUE

      public static final int GENERAL_PURPOSE_E2_VALUE
      GENERAL_PURPOSE_E2 = 301911877;
      See Also:
    • GENERAL_PURPOSE_N2_VALUE

      public static final int GENERAL_PURPOSE_N2_VALUE
      GENERAL_PURPOSE_N2 = 301912156;
      See Also:
    • GENERAL_PURPOSE_N2D_VALUE

      public static final int GENERAL_PURPOSE_N2D_VALUE
      GENERAL_PURPOSE_N2D = 232471400;
      See Also:
    • GENERAL_PURPOSE_N4_VALUE

      public static final int GENERAL_PURPOSE_N4_VALUE
      GENERAL_PURPOSE_N4 = 301912158;
      See Also:
    • GENERAL_PURPOSE_N4A_VALUE

      public static final int GENERAL_PURPOSE_N4A_VALUE
      GENERAL_PURPOSE_N4A = 232471459;
      See Also:
    • GENERAL_PURPOSE_N4D_VALUE

      public static final int GENERAL_PURPOSE_N4D_VALUE
      GENERAL_PURPOSE_N4D = 232471462;
      See Also:
    • GENERAL_PURPOSE_T2D_VALUE

      public static final int GENERAL_PURPOSE_T2D_VALUE
      GENERAL_PURPOSE_T2D = 232477166;
      See Also:
    • GRAPHICS_OPTIMIZED_VALUE

      public static final int GRAPHICS_OPTIMIZED_VALUE
      GRAPHICS_OPTIMIZED = 68500563;
      See Also:
    • GRAPHICS_OPTIMIZED_G4_VALUE

      public static final int GRAPHICS_OPTIMIZED_G4_VALUE
      GRAPHICS_OPTIMIZED_G4 = 54029369;
      See Also:
    • MEMORY_OPTIMIZED_VALUE

      public static final int MEMORY_OPTIMIZED_VALUE
      MEMORY_OPTIMIZED = 281753417;
      See Also:
    • MEMORY_OPTIMIZED_M3_VALUE

      public static final int MEMORY_OPTIMIZED_M3_VALUE
      MEMORY_OPTIMIZED_M3 = 276301372;
      See Also:
    • MEMORY_OPTIMIZED_M4_VALUE

      public static final int MEMORY_OPTIMIZED_M4_VALUE
      MEMORY_OPTIMIZED_M4 = 276301373;
      See Also:
    • MEMORY_OPTIMIZED_M4_6TB_VALUE

      public static final int MEMORY_OPTIMIZED_M4_6TB_VALUE
      MEMORY_OPTIMIZED_M4_6TB = 210543650;
      See Also:
    • MEMORY_OPTIMIZED_X4_1440_24T_VALUE

      public static final int MEMORY_OPTIMIZED_X4_1440_24T_VALUE
       CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
       
      MEMORY_OPTIMIZED_X4_1440_24T = 206669823;
      See Also:
    • MEMORY_OPTIMIZED_X4_16TB_VALUE

      public static final int MEMORY_OPTIMIZED_X4_16TB_VALUE
      MEMORY_OPTIMIZED_X4_16TB = 183089120;
      See Also:
    • MEMORY_OPTIMIZED_X4_1920_32T_VALUE

      public static final int MEMORY_OPTIMIZED_X4_1920_32T_VALUE
       CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
       
      MEMORY_OPTIMIZED_X4_1920_32T = 291963529;
      See Also:
    • MEMORY_OPTIMIZED_X4_24TB_VALUE

      public static final int MEMORY_OPTIMIZED_X4_24TB_VALUE
      MEMORY_OPTIMIZED_X4_24TB = 183116989;
      See Also:
    • MEMORY_OPTIMIZED_X4_32TB_VALUE

      public static final int MEMORY_OPTIMIZED_X4_32TB_VALUE
      MEMORY_OPTIMIZED_X4_32TB = 183144858;
      See Also:
    • MEMORY_OPTIMIZED_X4_480_6T_VALUE

      public static final int MEMORY_OPTIMIZED_X4_480_6T_VALUE
       CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
       
      MEMORY_OPTIMIZED_X4_480_6T = 478547742;
      See Also:
    • MEMORY_OPTIMIZED_X4_480_8T_VALUE

      public static final int MEMORY_OPTIMIZED_X4_480_8T_VALUE
       CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
       
      MEMORY_OPTIMIZED_X4_480_8T = 478547804;
      See Also:
    • MEMORY_OPTIMIZED_X4_960_12T_VALUE

      public static final int MEMORY_OPTIMIZED_X4_960_12T_VALUE
       CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
       
      MEMORY_OPTIMIZED_X4_960_12T = 424752410;
      See Also:
    • MEMORY_OPTIMIZED_X4_960_16T_VALUE

      public static final int MEMORY_OPTIMIZED_X4_960_16T_VALUE
       CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
       
      MEMORY_OPTIMIZED_X4_960_16T = 424752534;
      See Also:
    • STORAGE_OPTIMIZED_Z3_VALUE

      public static final int STORAGE_OPTIMIZED_Z3_VALUE
      STORAGE_OPTIMIZED_Z3 = 316796085;
      See Also:
    • TYPE_UNSPECIFIED_VALUE

      public static final int TYPE_UNSPECIFIED_VALUE
       Note for internal users: When adding a new enum Type for v1, make sure
       to also add it in the comment for the `optional Type type` definition.
       This ensures that the public documentation displays the new enum Type.
       
      TYPE_UNSPECIFIED = 437714322;
      See Also:
  • Method Details

    • values

      public static Commitment.Type[] 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 Commitment.Type 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 Commitment.Type 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 Commitment.Type 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<Commitment.Type> 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 Commitment.Type 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