Enum AllocationPolicy.ProvisioningModel

java.lang.Object
java.lang.Enum<AllocationPolicy.ProvisioningModel>
com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<AllocationPolicy.ProvisioningModel>
Enclosing class:
AllocationPolicy

public static enum AllocationPolicy.ProvisioningModel extends Enum<AllocationPolicy.ProvisioningModel> implements com.google.protobuf.ProtocolMessageEnum
 Compute Engine VM instance provisioning model.
 
Protobuf enum google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel
  • Enum Constant Details

  • Field Details

    • PROVISIONING_MODEL_UNSPECIFIED_VALUE

      public static final int PROVISIONING_MODEL_UNSPECIFIED_VALUE
       Unspecified.
       
      PROVISIONING_MODEL_UNSPECIFIED = 0;
      See Also:
    • STANDARD_VALUE

      public static final int STANDARD_VALUE
       Standard VM.
       
      STANDARD = 1;
      See Also:
    • SPOT_VALUE

      public static final int SPOT_VALUE
       SPOT VM.
       
      SPOT = 2;
      See Also:
    • PREEMPTIBLE_VALUE

      @Deprecated public static final int PREEMPTIBLE_VALUE
      Deprecated.
       Preemptible VM (PVM).
      
       Above SPOT VM is the preferable model for preemptible VM instances: the
       old preemptible VM model (indicated by this field) is the older model,
       and has been migrated to use the SPOT model as the underlying technology.
       This old model will still be supported.
       
      PREEMPTIBLE = 3 [deprecated = true];
      See Also:
    • RESERVATION_BOUND_VALUE

      public static final int RESERVATION_BOUND_VALUE
       Bound to the lifecycle of the reservation in which it is provisioned.
       
      RESERVATION_BOUND = 4;
      See Also:
    • FLEX_START_VALUE

      public static final int FLEX_START_VALUE
       Instance is provisioned with DWS Flex Start and has limited max run
       duration.
       
      FLEX_START = 5;
      See Also:
  • Method Details

    • values

      public static AllocationPolicy.ProvisioningModel[] 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 AllocationPolicy.ProvisioningModel 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 AllocationPolicy.ProvisioningModel 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 AllocationPolicy.ProvisioningModel 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<AllocationPolicy.ProvisioningModel> 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 AllocationPolicy.ProvisioningModel 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