Enum SizingOptimizationStrategy

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<SizingOptimizationStrategy>

    public enum SizingOptimizationStrategy
    extends Enum<SizingOptimizationStrategy>
    implements com.google.protobuf.ProtocolMessageEnum
     The sizing optimization strategy preferences of a virtual machine. This
     strategy, in addition to actual usage data of the virtual machine, can help
     determine the recommended shape on the target platform.
     
    Protobuf enum google.cloud.migrationcenter.v1.SizingOptimizationStrategy
    • Enum Constant Detail

      • SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED

        public static final SizingOptimizationStrategy SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED
         Unspecified (default value).
         
        SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED = 0;
      • SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE

        public static final SizingOptimizationStrategy SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE
         No optimization applied. Virtual machine sizing matches as closely as
         possible the machine shape on the source site, not considering any actual
         performance data.
         
        SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE = 1;
      • SIZING_OPTIMIZATION_STRATEGY_MODERATE

        public static final SizingOptimizationStrategy SIZING_OPTIMIZATION_STRATEGY_MODERATE
         Virtual machine sizing will match the reported usage and shape, with some
         slack. This a good value to start with.
         
        SIZING_OPTIMIZATION_STRATEGY_MODERATE = 2;
      • SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE

        public static final SizingOptimizationStrategy SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE
         Virtual machine sizing will match the reported usage, with little slack.
         Using this option can help reduce costs.
         
        SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE = 3;
    • Field Detail

      • SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED_VALUE

        public static final int SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED_VALUE
         Unspecified (default value).
         
        SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE_VALUE

        public static final int SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE_VALUE
         No optimization applied. Virtual machine sizing matches as closely as
         possible the machine shape on the source site, not considering any actual
         performance data.
         
        SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE = 1;
        See Also:
        Constant Field Values
      • SIZING_OPTIMIZATION_STRATEGY_MODERATE_VALUE

        public static final int SIZING_OPTIMIZATION_STRATEGY_MODERATE_VALUE
         Virtual machine sizing will match the reported usage and shape, with some
         slack. This a good value to start with.
         
        SIZING_OPTIMIZATION_STRATEGY_MODERATE = 2;
        See Also:
        Constant Field Values
      • SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE_VALUE

        public static final int SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE_VALUE
         Virtual machine sizing will match the reported usage, with little slack.
         Using this option can help reduce costs.
         
        SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE = 3;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static SizingOptimizationStrategy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SizingOptimizationStrategy c : SizingOptimizationStrategy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SizingOptimizationStrategy 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 SizingOptimizationStrategy 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 SizingOptimizationStrategy forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static SizingOptimizationStrategy 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