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 classVirtualMachinePreferences.BuilderVirtualMachinePreferences 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 intCOMMITMENT_PLAN_FIELD_NUMBERstatic intCOMPUTE_ENGINE_PREFERENCES_FIELD_NUMBERstatic intREGION_PREFERENCES_FIELD_NUMBERstatic intSIZING_OPTIMIZATION_STRATEGY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CommitmentPlangetCommitmentPlan()Commitment plan to consider when calculating costs for virtual machine insights and recommendations.intgetCommitmentPlanValue()Commitment plan to consider when calculating costs for virtual machine insights and recommendations.ComputeEnginePreferencesgetComputeEnginePreferences()Compute Engine preferences concern insights and recommendations for Compute Engine target.ComputeEnginePreferencesOrBuildergetComputeEnginePreferencesOrBuilder()Compute Engine preferences concern insights and recommendations for Compute Engine target.static VirtualMachinePreferencesgetDefaultInstance()VirtualMachinePreferencesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<VirtualMachinePreferences>getParserForType()RegionPreferencesgetRegionPreferences()Region preferences for assets using this preference set.RegionPreferencesOrBuildergetRegionPreferencesOrBuilder()Region preferences for assets using this preference set.intgetSerializedSize()SizingOptimizationStrategygetSizingOptimizationStrategy()Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.intgetSizingOptimizationStrategyValue()Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.booleanhasComputeEnginePreferences()Compute Engine preferences concern insights and recommendations for Compute Engine target.inthashCode()booleanhasRegionPreferences()Region preferences for assets using this preference set.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static VirtualMachinePreferences.BuildernewBuilder()static VirtualMachinePreferences.BuildernewBuilder(VirtualMachinePreferences prototype)VirtualMachinePreferences.BuildernewBuilderForType()protected VirtualMachinePreferences.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static VirtualMachinePreferencesparseDelimitedFrom(InputStream input)static VirtualMachinePreferencesparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachinePreferencesparseFrom(byte[] data)static VirtualMachinePreferencesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachinePreferencesparseFrom(com.google.protobuf.ByteString data)static VirtualMachinePreferencesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachinePreferencesparseFrom(com.google.protobuf.CodedInputStream input)static VirtualMachinePreferencesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachinePreferencesparseFrom(InputStream input)static VirtualMachinePreferencesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachinePreferencesparseFrom(ByteBuffer data)static VirtualMachinePreferencesparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<VirtualMachinePreferences>parser()VirtualMachinePreferences.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
hasRegionPreferencesin 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:
getRegionPreferencesin 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:
getRegionPreferencesOrBuilderin 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:
getCommitmentPlanValuein 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:
getCommitmentPlanin 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:
getSizingOptimizationStrategyValuein 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:
getSizingOptimizationStrategyin 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:
hasComputeEnginePreferencesin 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:
getComputeEnginePreferencesin 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:
getComputeEnginePreferencesOrBuilderin interfaceVirtualMachinePreferencesOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VirtualMachinePreferences.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public VirtualMachinePreferences getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-