Class VirtualMachinePreferences (0.22.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
TypeDescription
int

COMPUTE_ENGINE_PREFERENCES_FIELD_NUMBER

public static final int COMPUTE_ENGINE_PREFERENCES_FIELD_NUMBER
Field Value
TypeDescription
int

REGION_PREFERENCES_FIELD_NUMBER

public static final int REGION_PREFERENCES_FIELD_NUMBER
Field Value
TypeDescription
int

SIZING_OPTIMIZATION_STRATEGY_FIELD_NUMBER

public static final int SIZING_OPTIMIZATION_STRATEGY_FIELD_NUMBER
Field Value
TypeDescription
int

SOLE_TENANCY_PREFERENCES_FIELD_NUMBER

public static final int SOLE_TENANCY_PREFERENCES_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_PRODUCT_FIELD_NUMBER

public static final int TARGET_PRODUCT_FIELD_NUMBER
Field Value
TypeDescription
int

VMWARE_ENGINE_PREFERENCES_FIELD_NUMBER

public static final int VMWARE_ENGINE_PREFERENCES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VirtualMachinePreferences getDefaultInstance()
Returns
TypeDescription
VirtualMachinePreferences

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static VirtualMachinePreferences.Builder newBuilder()
Returns
TypeDescription
VirtualMachinePreferences.Builder

newBuilder(VirtualMachinePreferences prototype)

public static VirtualMachinePreferences.Builder newBuilder(VirtualMachinePreferences prototype)
Parameter
NameDescription
prototypeVirtualMachinePreferences
Returns
TypeDescription
VirtualMachinePreferences.Builder

parseDelimitedFrom(InputStream input)

public static VirtualMachinePreferences parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VirtualMachinePreferences parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VirtualMachinePreferences parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VirtualMachinePreferences parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VirtualMachinePreferences parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VirtualMachinePreferences parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VirtualMachinePreferences parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VirtualMachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VirtualMachinePreferences> parser()
Returns
TypeDescription
Parser<VirtualMachinePreferences>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
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.

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

getParserForType()

public Parser<VirtualMachinePreferences> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RegionPreferencesOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VirtualMachinePreferences.Builder newBuilderForType()
Returns
TypeDescription
VirtualMachinePreferences.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VirtualMachinePreferences.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VirtualMachinePreferences.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VirtualMachinePreferences.Builder toBuilder()
Returns
TypeDescription
VirtualMachinePreferences.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException