Class VirtualMachinePreferences (0.27.0)

public final class VirtualMachinePreferences extends GeneratedMessageV3 implements VirtualMachinePreferencesOrBuilder

VirtualMachinePreferences enables you to create sets of assumptions, for example, a geographical location and pricing track, for your migrated virtual machines. The set of preferences influence recommendations for migrating virtual machine assets.

Protobuf type google.cloud.migrationcenter.v1.VirtualMachinePreferences

Static Fields

COMMITMENT_PLAN_FIELD_NUMBER

public static final int COMMITMENT_PLAN_FIELD_NUMBER
Field Value
Type Description
int

COMPUTE_ENGINE_PREFERENCES_FIELD_NUMBER

public static final int COMPUTE_ENGINE_PREFERENCES_FIELD_NUMBER
Field Value
Type Description
int

REGION_PREFERENCES_FIELD_NUMBER

public static final int REGION_PREFERENCES_FIELD_NUMBER
Field Value
Type Description
int

SIZING_OPTIMIZATION_STRATEGY_FIELD_NUMBER

public static final int SIZING_OPTIMIZATION_STRATEGY_FIELD_NUMBER
Field Value
Type Description
int

SOLE_TENANCY_PREFERENCES_FIELD_NUMBER

public static final int SOLE_TENANCY_PREFERENCES_FIELD_NUMBER
Field Value
Type Description
int

TARGET_PRODUCT_FIELD_NUMBER

public static final int TARGET_PRODUCT_FIELD_NUMBER
Field Value
Type Description
int

VMWARE_ENGINE_PREFERENCES_FIELD_NUMBER

public static final int VMWARE_ENGINE_PREFERENCES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VirtualMachinePreferences getDefaultInstance()
Returns
Type Description
VirtualMachinePreferences

getDescriptor()

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

newBuilder()

public static VirtualMachinePreferences.Builder newBuilder()
Returns
Type Description
VirtualMachinePreferences.Builder

newBuilder(VirtualMachinePreferences prototype)

public static VirtualMachinePreferences.Builder newBuilder(VirtualMachinePreferences prototype)
Parameter
Name Description
prototype VirtualMachinePreferences
Returns
Type Description
VirtualMachinePreferences.Builder

parseDelimitedFrom(InputStream input)

public static VirtualMachinePreferences parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static VirtualMachinePreferences parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VirtualMachinePreferences parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VirtualMachinePreferences parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static VirtualMachinePreferences parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static VirtualMachinePreferences parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VirtualMachinePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<VirtualMachinePreferences> parser()
Returns
Type Description
Parser<VirtualMachinePreferences>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

getParserForType()

public Parser<VirtualMachinePreferences> getParserForType()
Returns
Type Description
Parser<VirtualMachinePreferences>
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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public VirtualMachinePreferences.Builder newBuilderForType()
Returns
Type Description
VirtualMachinePreferences.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VirtualMachinePreferences.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VirtualMachinePreferences.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public VirtualMachinePreferences.Builder toBuilder()
Returns
Type Description
VirtualMachinePreferences.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException