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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > VirtualMachinePreferences.BuilderImplements
VirtualMachinePreferencesOrBuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public VirtualMachinePreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
VirtualMachinePreferences.Builder |
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. |
clone()
public VirtualMachinePreferences.Builder clone()
Returns | |
---|---|
Type | Description |
VirtualMachinePreferences.Builder |
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 |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public VirtualMachinePreferences.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
VirtualMachinePreferences.Builder |
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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VirtualMachinePreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
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 |
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 |
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. |
setUnknownFields(UnknownFieldSet unknownFields)
public final VirtualMachinePreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
VirtualMachinePreferences.Builder |