Class VirtualMachinePreferences.Builder (0.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VirtualMachinePreferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VirtualMachinePreferences.Builder
Overrides

build()

public VirtualMachinePreferences build()
Returns
TypeDescription
VirtualMachinePreferences

buildPartial()

public VirtualMachinePreferences buildPartial()
Returns
TypeDescription
VirtualMachinePreferences

clear()

public VirtualMachinePreferences.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VirtualMachinePreferences.Builder

clearField(Descriptors.FieldDescriptor field)

public VirtualMachinePreferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VirtualMachinePreferences.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VirtualMachinePreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
VirtualMachinePreferences.Builder

clone()

public VirtualMachinePreferences.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ComputeEnginePreferencesOrBuilder

getDefaultInstanceForType()

public VirtualMachinePreferences getDefaultInstanceForType()
Returns
TypeDescription
VirtualMachinePreferences

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SoleTenancyPreferences.Builder

getSoleTenancyPreferencesOrBuilder()

public SoleTenancyPreferencesOrBuilder getSoleTenancyPreferencesOrBuilder()

Preferences concerning Sole Tenant nodes and virtual machines.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the vmwareEnginePreferences field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueComputeEnginePreferences
Returns
TypeDescription
VirtualMachinePreferences.Builder

mergeFrom(VirtualMachinePreferences other)

public VirtualMachinePreferences.Builder mergeFrom(VirtualMachinePreferences other)
Parameter
NameDescription
otherVirtualMachinePreferences
Returns
TypeDescription
VirtualMachinePreferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VirtualMachinePreferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VirtualMachinePreferences.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VirtualMachinePreferences.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRegionPreferences
Returns
TypeDescription
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
NameDescription
valueSoleTenancyPreferences
Returns
TypeDescription
VirtualMachinePreferences.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VirtualMachinePreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVmwareEnginePreferences
Returns
TypeDescription
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
NameDescription
valueCommitmentPlan

The commitmentPlan to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueComputeEnginePreferences
Returns
TypeDescription
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
NameDescription
builderForValueComputeEnginePreferences.Builder
Returns
TypeDescription
VirtualMachinePreferences.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VirtualMachinePreferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRegionPreferences
Returns
TypeDescription
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
NameDescription
builderForValueRegionPreferences.Builder
Returns
TypeDescription
VirtualMachinePreferences.Builder

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

public VirtualMachinePreferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSizingOptimizationStrategy

The sizingOptimizationStrategy to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueSoleTenancyPreferences
Returns
TypeDescription
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
NameDescription
builderForValueSoleTenancyPreferences.Builder
Returns
TypeDescription
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
NameDescription
valueComputeMigrationTargetProduct

The targetProduct to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
VirtualMachinePreferences.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VirtualMachinePreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVmwareEnginePreferences
Returns
TypeDescription
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
NameDescription
builderForValueVmwareEnginePreferences.Builder
Returns
TypeDescription
VirtualMachinePreferences.Builder