Class VirtualMachinePreferences.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VirtualMachinePreferences.Builder>
com.google.cloud.migrationcenter.v1.VirtualMachinePreferences.Builder
- All Implemented Interfaces:
VirtualMachinePreferencesOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VirtualMachinePreferences
public static final class VirtualMachinePreferences.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VirtualMachinePreferences.Builder>
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 type
google.cloud.migrationcenter.v1.VirtualMachinePreferences-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Commitment plan to consider when calculating costs for virtual machine insights and recommendations.Compute Engine preferences concern insights and recommendations for Compute Engine target.Region preferences for assets using this preference set.Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.Preferences concerning Sole Tenant nodes and virtual machines.Target product for assets using this preference set.Preferences concerning insights and recommendations for Google Cloud VMware Engine.Commitment plan to consider when calculating costs for virtual machine insights and recommendations.intCommitment plan to consider when calculating costs for virtual machine insights and recommendations.Compute Engine preferences concern insights and recommendations for Compute Engine target.Compute Engine preferences concern insights and recommendations for Compute Engine target.Compute Engine preferences concern insights and recommendations for Compute Engine target.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRegion preferences for assets using this preference set.Region preferences for assets using this preference set.Region preferences for assets using this preference set.Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.intSizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.Preferences concerning Sole Tenant nodes and virtual machines.Preferences concerning Sole Tenant nodes and virtual machines.Preferences concerning Sole Tenant nodes and virtual machines.Target product for assets using this preference set.intTarget product for assets using this preference set.Preferences concerning insights and recommendations for Google Cloud VMware Engine.Preferences concerning insights and recommendations for Google Cloud VMware Engine.Preferences concerning insights and recommendations for Google Cloud VMware Engine.booleanCompute Engine preferences concern insights and recommendations for Compute Engine target.booleanRegion preferences for assets using this preference set.booleanPreferences concerning Sole Tenant nodes and virtual machines.booleanPreferences concerning insights and recommendations for Google Cloud VMware Engine.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanCompute Engine preferences concern insights and recommendations for Compute Engine target.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Region preferences for assets using this preference set.Preferences concerning Sole Tenant nodes and virtual machines.Preferences concerning insights and recommendations for Google Cloud VMware Engine.setCommitmentPlan(CommitmentPlan value) Commitment plan to consider when calculating costs for virtual machine insights and recommendations.setCommitmentPlanValue(int value) Commitment plan to consider when calculating costs for virtual machine insights and recommendations.Compute Engine preferences concern insights and recommendations for Compute Engine target.setComputeEnginePreferences(ComputeEnginePreferences.Builder builderForValue) Compute Engine preferences concern insights and recommendations for Compute Engine target.Region preferences for assets using this preference set.setRegionPreferences(RegionPreferences.Builder builderForValue) Region preferences for assets using this preference set.Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.setSizingOptimizationStrategyValue(int value) Sizing optimization strategy specifies the preferred strategy used when extrapolating usage data to calculate insights and recommendations for a virtual machine.Preferences concerning Sole Tenant nodes and virtual machines.setSoleTenancyPreferences(SoleTenancyPreferences.Builder builderForValue) Preferences concerning Sole Tenant nodes and virtual machines.Target product for assets using this preference set.setTargetProductValue(int value) Target product for assets using this preference set.Preferences concerning insights and recommendations for Google Cloud VMware Engine.setVmwareEnginePreferences(VmwareEnginePreferences.Builder builderForValue) Preferences concerning insights and recommendations for Google Cloud VMware Engine.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VirtualMachinePreferences.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VirtualMachinePreferences.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<VirtualMachinePreferences.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VirtualMachinePreferences.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VirtualMachinePreferences.Builder>
-
mergeFrom
public VirtualMachinePreferences.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VirtualMachinePreferences.Builder>- Throws:
IOException
-
getTargetProductValue
public int getTargetProductValue()Target product for assets using this preference set. Specify either target product or business goal, but not both.
.google.cloud.migrationcenter.v1.ComputeMigrationTargetProduct target_product = 2;- Specified by:
getTargetProductValuein interfaceVirtualMachinePreferencesOrBuilder- Returns:
- The enum numeric value on the wire for targetProduct.
-
setTargetProductValue
Target product for assets using this preference set. Specify either target product or business goal, but not both.
.google.cloud.migrationcenter.v1.ComputeMigrationTargetProduct target_product = 2;- Parameters:
value- The enum numeric value on the wire for targetProduct to set.- Returns:
- This builder for chaining.
-
getTargetProduct
Target product for assets using this preference set. Specify either target product or business goal, but not both.
.google.cloud.migrationcenter.v1.ComputeMigrationTargetProduct target_product = 2;- Specified by:
getTargetProductin interfaceVirtualMachinePreferencesOrBuilder- Returns:
- The targetProduct.
-
setTargetProduct
Target product for assets using this preference set. Specify either target product or business goal, but not both.
.google.cloud.migrationcenter.v1.ComputeMigrationTargetProduct target_product = 2;- Parameters:
value- The targetProduct to set.- Returns:
- This builder for chaining.
-
clearTargetProduct
Target product for assets using this preference set. Specify either target product or business goal, but not both.
.google.cloud.migrationcenter.v1.ComputeMigrationTargetProduct target_product = 2;- Returns:
- This builder for chaining.
-
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
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.
-
setRegionPreferences
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; -
setRegionPreferences
public VirtualMachinePreferences.Builder setRegionPreferences(RegionPreferences.Builder builderForValue) 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; -
mergeRegionPreferences
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; -
clearRegionPreferences
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; -
getRegionPreferencesBuilder
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; -
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.
-
setCommitmentPlanValue
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;- Parameters:
value- The enum numeric value on the wire for commitmentPlan to set.- Returns:
- This builder for chaining.
-
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.
-
setCommitmentPlan
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;- Parameters:
value- The commitmentPlan to set.- Returns:
- This builder for chaining.
-
clearCommitmentPlan
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;- Returns:
- This builder for chaining.
-
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.
-
setSizingOptimizationStrategyValue
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;- Parameters:
value- The enum numeric value on the wire for sizingOptimizationStrategy to set.- Returns:
- This builder for chaining.
-
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.
-
setSizingOptimizationStrategy
public VirtualMachinePreferences.Builder setSizingOptimizationStrategy(SizingOptimizationStrategy value) 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;- Parameters:
value- The sizingOptimizationStrategy to set.- Returns:
- This builder for chaining.
-
clearSizingOptimizationStrategy
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;- Returns:
- This builder for chaining.
-
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
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.
-
setComputeEnginePreferences
public VirtualMachinePreferences.Builder setComputeEnginePreferences(ComputeEnginePreferences value) Compute Engine preferences concern insights and recommendations for Compute Engine target.
.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6; -
setComputeEnginePreferences
public VirtualMachinePreferences.Builder setComputeEnginePreferences(ComputeEnginePreferences.Builder builderForValue) Compute Engine preferences concern insights and recommendations for Compute Engine target.
.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6; -
mergeComputeEnginePreferences
public VirtualMachinePreferences.Builder mergeComputeEnginePreferences(ComputeEnginePreferences value) Compute Engine preferences concern insights and recommendations for Compute Engine target.
.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6; -
clearComputeEnginePreferences
Compute Engine preferences concern insights and recommendations for Compute Engine target.
.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6; -
getComputeEnginePreferencesBuilder
Compute Engine preferences concern insights and recommendations for Compute Engine target.
.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6; -
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
-
hasVmwareEnginePreferences
public boolean hasVmwareEnginePreferences()Preferences concerning insights and recommendations for Google Cloud VMware Engine.
.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;- Specified by:
hasVmwareEnginePreferencesin interfaceVirtualMachinePreferencesOrBuilder- Returns:
- Whether the vmwareEnginePreferences field is set.
-
getVmwareEnginePreferences
Preferences concerning insights and recommendations for Google Cloud VMware Engine.
.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;- Specified by:
getVmwareEnginePreferencesin interfaceVirtualMachinePreferencesOrBuilder- Returns:
- The vmwareEnginePreferences.
-
setVmwareEnginePreferences
Preferences concerning insights and recommendations for Google Cloud VMware Engine.
.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7; -
setVmwareEnginePreferences
public VirtualMachinePreferences.Builder setVmwareEnginePreferences(VmwareEnginePreferences.Builder builderForValue) Preferences concerning insights and recommendations for Google Cloud VMware Engine.
.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7; -
mergeVmwareEnginePreferences
public VirtualMachinePreferences.Builder mergeVmwareEnginePreferences(VmwareEnginePreferences value) Preferences concerning insights and recommendations for Google Cloud VMware Engine.
.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7; -
clearVmwareEnginePreferences
Preferences concerning insights and recommendations for Google Cloud VMware Engine.
.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7; -
getVmwareEnginePreferencesBuilder
Preferences concerning insights and recommendations for Google Cloud VMware Engine.
.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7; -
getVmwareEnginePreferencesOrBuilder
Preferences concerning insights and recommendations for Google Cloud VMware Engine.
.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;- Specified by:
getVmwareEnginePreferencesOrBuilderin interfaceVirtualMachinePreferencesOrBuilder
-
hasSoleTenancyPreferences
public boolean hasSoleTenancyPreferences()Preferences concerning Sole Tenant nodes and virtual machines.
.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;- Specified by:
hasSoleTenancyPreferencesin interfaceVirtualMachinePreferencesOrBuilder- Returns:
- Whether the soleTenancyPreferences field is set.
-
getSoleTenancyPreferences
Preferences concerning Sole Tenant nodes and virtual machines.
.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;- Specified by:
getSoleTenancyPreferencesin interfaceVirtualMachinePreferencesOrBuilder- Returns:
- The soleTenancyPreferences.
-
setSoleTenancyPreferences
Preferences concerning Sole Tenant nodes and virtual machines.
.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8; -
setSoleTenancyPreferences
public VirtualMachinePreferences.Builder setSoleTenancyPreferences(SoleTenancyPreferences.Builder builderForValue) Preferences concerning Sole Tenant nodes and virtual machines.
.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8; -
mergeSoleTenancyPreferences
Preferences concerning Sole Tenant nodes and virtual machines.
.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8; -
clearSoleTenancyPreferences
Preferences concerning Sole Tenant nodes and virtual machines.
.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8; -
getSoleTenancyPreferencesBuilder
Preferences concerning Sole Tenant nodes and virtual machines.
.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8; -
getSoleTenancyPreferencesOrBuilder
Preferences concerning Sole Tenant nodes and virtual machines.
.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;- Specified by:
getSoleTenancyPreferencesOrBuilderin interfaceVirtualMachinePreferencesOrBuilder
-