Class VirtualMachinePreferences.Builder (0.24.0)

public static final class VirtualMachinePreferences.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VirtualMachinePreferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides

build()

public VirtualMachinePreferences build()
Returns
Type Description
VirtualMachinePreferences

buildPartial()

public VirtualMachinePreferences buildPartial()
Returns
Type Description
VirtualMachinePreferences

clear()

public VirtualMachinePreferences.Builder clear()
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides

clearCommitmentPlan()

public VirtualMachinePreferences.Builder 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
Type Description
VirtualMachinePreferences.Builder

This builder for chaining.

clearComputeEnginePreferences()

public VirtualMachinePreferences.Builder clearComputeEnginePreferences()

Compute Engine preferences concern insights and recommendations for Compute Engine target.

.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;

Returns
Type Description
VirtualMachinePreferences.Builder

clearField(Descriptors.FieldDescriptor field)

public VirtualMachinePreferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VirtualMachinePreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides

clearRegionPreferences()

public VirtualMachinePreferences.Builder 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;

Returns
Type Description
VirtualMachinePreferences.Builder

clearSizingOptimizationStrategy()

public VirtualMachinePreferences.Builder 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
Type Description
VirtualMachinePreferences.Builder

This builder for chaining.

clearSoleTenancyPreferences()

public VirtualMachinePreferences.Builder clearSoleTenancyPreferences()

Preferences concerning Sole Tenant nodes and virtual machines.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;

Returns
Type Description
VirtualMachinePreferences.Builder

clearTargetProduct()

public VirtualMachinePreferences.Builder 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
Type Description
VirtualMachinePreferences.Builder

This builder for chaining.

clearVmwareEnginePreferences()

public VirtualMachinePreferences.Builder clearVmwareEnginePreferences()

Preferences concerning insights and recommendations for Google Cloud VMware Engine.

.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;

Returns
Type Description
VirtualMachinePreferences.Builder

clone()

public VirtualMachinePreferences.Builder clone()
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides

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;

Returns
Type Description
CommitmentPlan

The commitmentPlan.

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;

Returns
Type Description
int

The enum numeric value on the wire for commitmentPlan.

getComputeEnginePreferences()

public ComputeEnginePreferences getComputeEnginePreferences()

Compute Engine preferences concern insights and recommendations for Compute Engine target.

.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;

Returns
Type Description
ComputeEnginePreferences

The computeEnginePreferences.

getComputeEnginePreferencesBuilder()

public ComputeEnginePreferences.Builder getComputeEnginePreferencesBuilder()

Compute Engine preferences concern insights and recommendations for Compute Engine target.

.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;

Returns
Type Description
ComputeEnginePreferences.Builder

getComputeEnginePreferencesOrBuilder()

public ComputeEnginePreferencesOrBuilder getComputeEnginePreferencesOrBuilder()

Compute Engine preferences concern insights and recommendations for Compute Engine target.

.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;

Returns
Type Description
ComputeEnginePreferencesOrBuilder

getDefaultInstanceForType()

public VirtualMachinePreferences getDefaultInstanceForType()
Returns
Type Description
VirtualMachinePreferences

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
RegionPreferences

The regionPreferences.

getRegionPreferencesBuilder()

public RegionPreferences.Builder 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;

Returns
Type Description
RegionPreferences.Builder

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;

Returns
Type Description
RegionPreferencesOrBuilder

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;

Returns
Type Description
SizingOptimizationStrategy

The sizingOptimizationStrategy.

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;

Returns
Type Description
int

The enum numeric value on the wire for sizingOptimizationStrategy.

getSoleTenancyPreferences()

public SoleTenancyPreferences getSoleTenancyPreferences()

Preferences concerning Sole Tenant nodes and virtual machines.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;

Returns
Type Description
SoleTenancyPreferences

The soleTenancyPreferences.

getSoleTenancyPreferencesBuilder()

public SoleTenancyPreferences.Builder getSoleTenancyPreferencesBuilder()

Preferences concerning Sole Tenant nodes and virtual machines.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;

Returns
Type Description
SoleTenancyPreferences.Builder

getSoleTenancyPreferencesOrBuilder()

public SoleTenancyPreferencesOrBuilder getSoleTenancyPreferencesOrBuilder()

Preferences concerning Sole Tenant nodes and virtual machines.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;

Returns
Type Description
SoleTenancyPreferencesOrBuilder

getTargetProduct()

public ComputeMigrationTargetProduct 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;

Returns
Type Description
ComputeMigrationTargetProduct

The targetProduct.

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;

Returns
Type Description
int

The enum numeric value on the wire for targetProduct.

getVmwareEnginePreferences()

public VmwareEnginePreferences getVmwareEnginePreferences()

Preferences concerning insights and recommendations for Google Cloud VMware Engine.

.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;

Returns
Type Description
VmwareEnginePreferences

The vmwareEnginePreferences.

getVmwareEnginePreferencesBuilder()

public VmwareEnginePreferences.Builder getVmwareEnginePreferencesBuilder()

Preferences concerning insights and recommendations for Google Cloud VMware Engine.

.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;

Returns
Type Description
VmwareEnginePreferences.Builder

getVmwareEnginePreferencesOrBuilder()

public VmwareEnginePreferencesOrBuilder getVmwareEnginePreferencesOrBuilder()

Preferences concerning insights and recommendations for Google Cloud VMware Engine.

.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;

Returns
Type Description
VmwareEnginePreferencesOrBuilder

hasComputeEnginePreferences()

public boolean hasComputeEnginePreferences()

Compute Engine preferences concern insights and recommendations for Compute Engine target.

.google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;

Returns
Type Description
boolean

Whether the computeEnginePreferences field is set.

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;

Returns
Type Description
boolean

Whether the regionPreferences field is set.

hasSoleTenancyPreferences()

public boolean hasSoleTenancyPreferences()

Preferences concerning Sole Tenant nodes and virtual machines.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;

Returns
Type Description
boolean

Whether the soleTenancyPreferences field is set.

hasVmwareEnginePreferences()

public boolean hasVmwareEnginePreferences()

Preferences concerning insights and recommendations for Google Cloud VMware Engine.

.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;

Returns
Type Description
boolean

Whether the vmwareEnginePreferences field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeComputeEnginePreferences(ComputeEnginePreferences value)

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;

Parameter
Name Description
value ComputeEnginePreferences
Returns
Type Description
VirtualMachinePreferences.Builder

mergeFrom(VirtualMachinePreferences other)

public VirtualMachinePreferences.Builder mergeFrom(VirtualMachinePreferences other)
Parameter
Name Description
other VirtualMachinePreferences
Returns
Type Description
VirtualMachinePreferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VirtualMachinePreferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VirtualMachinePreferences.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides

mergeRegionPreferences(RegionPreferences value)

public VirtualMachinePreferences.Builder mergeRegionPreferences(RegionPreferences value)

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;

Parameter
Name Description
value RegionPreferences
Returns
Type Description
VirtualMachinePreferences.Builder

mergeSoleTenancyPreferences(SoleTenancyPreferences value)

public VirtualMachinePreferences.Builder mergeSoleTenancyPreferences(SoleTenancyPreferences value)

Preferences concerning Sole Tenant nodes and virtual machines.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;

Parameter
Name Description
value SoleTenancyPreferences
Returns
Type Description
VirtualMachinePreferences.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VirtualMachinePreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides

mergeVmwareEnginePreferences(VmwareEnginePreferences value)

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;

Parameter
Name Description
value VmwareEnginePreferences
Returns
Type Description
VirtualMachinePreferences.Builder

setCommitmentPlan(CommitmentPlan value)

public VirtualMachinePreferences.Builder setCommitmentPlan(CommitmentPlan value)

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;

Parameter
Name Description
value CommitmentPlan

The commitmentPlan to set.

Returns
Type Description
VirtualMachinePreferences.Builder

This builder for chaining.

setCommitmentPlanValue(int value)

public VirtualMachinePreferences.Builder setCommitmentPlanValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for commitmentPlan to set.

Returns
Type Description
VirtualMachinePreferences.Builder

This builder for chaining.

setComputeEnginePreferences(ComputeEnginePreferences value)

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;

Parameter
Name Description
value ComputeEnginePreferences
Returns
Type Description
VirtualMachinePreferences.Builder

setComputeEnginePreferences(ComputeEnginePreferences.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ComputeEnginePreferences.Builder
Returns
Type Description
VirtualMachinePreferences.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VirtualMachinePreferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides

setRegionPreferences(RegionPreferences value)

public VirtualMachinePreferences.Builder setRegionPreferences(RegionPreferences value)

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;

Parameter
Name Description
value RegionPreferences
Returns
Type Description
VirtualMachinePreferences.Builder

setRegionPreferences(RegionPreferences.Builder builderForValue)

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;

Parameter
Name Description
builderForValue RegionPreferences.Builder
Returns
Type Description
VirtualMachinePreferences.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VirtualMachinePreferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides

setSizingOptimizationStrategy(SizingOptimizationStrategy value)

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;

Parameter
Name Description
value SizingOptimizationStrategy

The sizingOptimizationStrategy to set.

Returns
Type Description
VirtualMachinePreferences.Builder

This builder for chaining.

setSizingOptimizationStrategyValue(int value)

public VirtualMachinePreferences.Builder setSizingOptimizationStrategyValue(int 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;

Parameter
Name Description
value int

The enum numeric value on the wire for sizingOptimizationStrategy to set.

Returns
Type Description
VirtualMachinePreferences.Builder

This builder for chaining.

setSoleTenancyPreferences(SoleTenancyPreferences value)

public VirtualMachinePreferences.Builder setSoleTenancyPreferences(SoleTenancyPreferences value)

Preferences concerning Sole Tenant nodes and virtual machines.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;

Parameter
Name Description
value SoleTenancyPreferences
Returns
Type Description
VirtualMachinePreferences.Builder

setSoleTenancyPreferences(SoleTenancyPreferences.Builder builderForValue)

public VirtualMachinePreferences.Builder setSoleTenancyPreferences(SoleTenancyPreferences.Builder builderForValue)

Preferences concerning Sole Tenant nodes and virtual machines.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;

Parameter
Name Description
builderForValue SoleTenancyPreferences.Builder
Returns
Type Description
VirtualMachinePreferences.Builder

setTargetProduct(ComputeMigrationTargetProduct value)

public VirtualMachinePreferences.Builder setTargetProduct(ComputeMigrationTargetProduct value)

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;

Parameter
Name Description
value ComputeMigrationTargetProduct

The targetProduct to set.

Returns
Type Description
VirtualMachinePreferences.Builder

This builder for chaining.

setTargetProductValue(int value)

public VirtualMachinePreferences.Builder setTargetProductValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for targetProduct to set.

Returns
Type Description
VirtualMachinePreferences.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VirtualMachinePreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides

setVmwareEnginePreferences(VmwareEnginePreferences value)

public VirtualMachinePreferences.Builder setVmwareEnginePreferences(VmwareEnginePreferences value)

Preferences concerning insights and recommendations for Google Cloud VMware Engine.

.google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;

Parameter
Name Description
value VmwareEnginePreferences
Returns
Type Description
VirtualMachinePreferences.Builder

setVmwareEnginePreferences(VmwareEnginePreferences.Builder builderForValue)

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;

Parameter
Name Description
builderForValue VmwareEnginePreferences.Builder
Returns
Type Description
VirtualMachinePreferences.Builder