Enum SizingOptimizationStrategy
- java.lang.Object
-
- java.lang.Enum<SizingOptimizationStrategy>
-
- com.google.cloud.migrationcenter.v1.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 enumgoogle.cloud.migrationcenter.v1.SizingOptimizationStrategy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE
Virtual machine sizing will match the reported usage, with little slack.SIZING_OPTIMIZATION_STRATEGY_MODERATE
Virtual machine sizing will match the reported usage and shape, with some slack.SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE
No optimization applied.SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED
Unspecified (default value).UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE_VALUE
Virtual machine sizing will match the reported usage, with little slack.static int
SIZING_OPTIMIZATION_STRATEGY_MODERATE_VALUE
Virtual machine sizing will match the reported usage and shape, with some slack.static int
SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE_VALUE
No optimization applied.static int
SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED_VALUE
Unspecified (default value).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SizingOptimizationStrategy
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<SizingOptimizationStrategy>
internalGetValueMap()
static SizingOptimizationStrategy
valueOf(int value)
Deprecated.static SizingOptimizationStrategy
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static SizingOptimizationStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static SizingOptimizationStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
UNRECOGNIZED
public static final SizingOptimizationStrategy UNRECOGNIZED
-
-
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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.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 nameNullPointerException
- 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.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<SizingOptimizationStrategy> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.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 nameNullPointerException
- if the argument is null
-
-