Class VirtualMachinePreferences
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.migrationcenter.v1.VirtualMachinePreferences
-
- All Implemented Interfaces:
VirtualMachinePreferencesOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class VirtualMachinePreferences extends com.google.protobuf.GeneratedMessageV3 implements VirtualMachinePreferencesOrBuilder
VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets.
Protobuf typegoogle.cloud.migrationcenter.v1.VirtualMachinePreferences
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VirtualMachinePreferences.Builder
VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
COMMITMENT_PLAN_FIELD_NUMBER
static int
COMPUTE_ENGINE_PREFERENCES_FIELD_NUMBER
static int
REGION_PREFERENCES_FIELD_NUMBER
static int
SIZING_OPTIMIZATION_STRATEGY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CommitmentPlan
getCommitmentPlan()
Commitment plan to consider when calculating costs for virtual machine insights and recommendations.int
getCommitmentPlanValue()
Commitment plan to consider when calculating costs for virtual machine insights and recommendations.ComputeEnginePreferences
getComputeEnginePreferences()
Compute Engine preferences concern insights and recommendations for Compute Engine target.ComputeEnginePreferencesOrBuilder
getComputeEnginePreferencesOrBuilder()
Compute Engine preferences concern insights and recommendations for Compute Engine target.static VirtualMachinePreferences
getDefaultInstance()
VirtualMachinePreferences
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Parser<VirtualMachinePreferences>
getParserForType()
RegionPreferences
getRegionPreferences()
Region preferences for assets using this preference set.RegionPreferencesOrBuilder
getRegionPreferencesOrBuilder()
Region preferences for assets using this preference set.int
getSerializedSize()
SizingOptimizationStrategy
getSizingOptimizationStrategy()
Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.int
getSizingOptimizationStrategyValue()
Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.boolean
hasComputeEnginePreferences()
Compute Engine preferences concern insights and recommendations for Compute Engine target.int
hashCode()
boolean
hasRegionPreferences()
Region preferences for assets using this preference set.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static VirtualMachinePreferences.Builder
newBuilder()
static VirtualMachinePreferences.Builder
newBuilder(VirtualMachinePreferences prototype)
VirtualMachinePreferences.Builder
newBuilderForType()
protected VirtualMachinePreferences.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static VirtualMachinePreferences
parseDelimitedFrom(InputStream input)
static VirtualMachinePreferences
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VirtualMachinePreferences
parseFrom(byte[] data)
static VirtualMachinePreferences
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VirtualMachinePreferences
parseFrom(com.google.protobuf.ByteString data)
static VirtualMachinePreferences
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VirtualMachinePreferences
parseFrom(com.google.protobuf.CodedInputStream input)
static VirtualMachinePreferences
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VirtualMachinePreferences
parseFrom(InputStream input)
static VirtualMachinePreferences
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VirtualMachinePreferences
parseFrom(ByteBuffer data)
static VirtualMachinePreferences
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<VirtualMachinePreferences>
parser()
VirtualMachinePreferences.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
REGION_PREFERENCES_FIELD_NUMBER
public static final int REGION_PREFERENCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMMITMENT_PLAN_FIELD_NUMBER
public static final int COMMITMENT_PLAN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SIZING_OPTIMIZATION_STRATEGY_FIELD_NUMBER
public static final int SIZING_OPTIMIZATION_STRATEGY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMPUTE_ENGINE_PREFERENCES_FIELD_NUMBER
public static final int COMPUTE_ENGINE_PREFERENCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasRegionPreferences
public boolean hasRegionPreferences()
Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with.
.google.cloud.migrationcenter.v1.RegionPreferences region_preferences = 3;
- Specified by:
hasRegionPreferences
in interfaceVirtualMachinePreferencesOrBuilder
- Returns:
- Whether the regionPreferences field is set.
-
getRegionPreferences
public RegionPreferences getRegionPreferences()
Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with.
.google.cloud.migrationcenter.v1.RegionPreferences region_preferences = 3;
- Specified by:
getRegionPreferences
in interfaceVirtualMachinePreferencesOrBuilder
- Returns:
- The regionPreferences.
-
getRegionPreferencesOrBuilder
public RegionPreferencesOrBuilder getRegionPreferencesOrBuilder()
Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with.
.google.cloud.migrationcenter.v1.RegionPreferences region_preferences = 3;
- Specified by:
getRegionPreferencesOrBuilder
in interfaceVirtualMachinePreferencesOrBuilder
-
getCommitmentPlanValue
public int getCommitmentPlanValue()
Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
.google.cloud.migrationcenter.v1.CommitmentPlan commitment_plan = 4;
- Specified by:
getCommitmentPlanValue
in interfaceVirtualMachinePreferencesOrBuilder
- Returns:
- The enum numeric value on the wire for commitmentPlan.
-
getCommitmentPlan
public CommitmentPlan getCommitmentPlan()
Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.
.google.cloud.migrationcenter.v1.CommitmentPlan commitment_plan = 4;
- Specified by:
getCommitmentPlan
in interfaceVirtualMachinePreferencesOrBuilder
- Returns:
- The commitmentPlan.
-
getSizingOptimizationStrategyValue
public int getSizingOptimizationStrategyValue()
Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with.
.google.cloud.migrationcenter.v1.SizingOptimizationStrategy sizing_optimization_strategy = 5;
- Specified by:
getSizingOptimizationStrategyValue
in interfaceVirtualMachinePreferencesOrBuilder
- Returns:
- The enum numeric value on the wire for sizingOptimizationStrategy.
-
getSizingOptimizationStrategy
public SizingOptimizationStrategy getSizingOptimizationStrategy()
Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine. If you are unsure which value to set, a moderate sizing optimization strategy is often a good value to start with.
.google.cloud.migrationcenter.v1.SizingOptimizationStrategy sizing_optimization_strategy = 5;
- Specified by:
getSizingOptimizationStrategy
in interfaceVirtualMachinePreferencesOrBuilder
- Returns:
- The sizingOptimizationStrategy.
-
hasComputeEnginePreferences
public boolean hasComputeEnginePreferences()
Compute Engine preferences concern insights and recommendations for Compute Engine target.
.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;
- Specified by:
hasComputeEnginePreferences
in interfaceVirtualMachinePreferencesOrBuilder
- Returns:
- Whether the computeEnginePreferences field is set.
-
getComputeEnginePreferences
public ComputeEnginePreferences getComputeEnginePreferences()
Compute Engine preferences concern insights and recommendations for Compute Engine target.
.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;
- Specified by:
getComputeEnginePreferences
in interfaceVirtualMachinePreferencesOrBuilder
- Returns:
- The computeEnginePreferences.
-
getComputeEnginePreferencesOrBuilder
public ComputeEnginePreferencesOrBuilder getComputeEnginePreferencesOrBuilder()
Compute Engine preferences concern insights and recommendations for Compute Engine target.
.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;
- Specified by:
getComputeEnginePreferencesOrBuilder
in interfaceVirtualMachinePreferencesOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static VirtualMachinePreferences parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachinePreferences parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachinePreferences parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachinePreferences parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachinePreferences parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachinePreferences parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachinePreferences parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static VirtualMachinePreferences parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static VirtualMachinePreferences parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static VirtualMachinePreferences parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static VirtualMachinePreferences parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static VirtualMachinePreferences parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public VirtualMachinePreferences.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static VirtualMachinePreferences.Builder newBuilder()
-
newBuilder
public static VirtualMachinePreferences.Builder newBuilder(VirtualMachinePreferences prototype)
-
toBuilder
public VirtualMachinePreferences.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VirtualMachinePreferences.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static VirtualMachinePreferences getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<VirtualMachinePreferences> parser()
-
getParserForType
public com.google.protobuf.Parser<VirtualMachinePreferences> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public VirtualMachinePreferences getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-