Preferences concerning the machine types to consider on Compute Engine.
↳ license_type
int
License type to consider when calculating costs for virtual machine insights and recommendations. If unspecified, costs are calculated based on the default licensing plan.
getMachinePreferences
Preferences concerning the machine types to consider on Compute Engine.
License type to consider when calculating costs for virtual machine
insights and recommendations. If unspecified, costs are calculated
based on the default licensing plan.
Returns
Type
Description
int
setLicenseType
License type to consider when calculating costs for virtual machine
insights and recommendations. If unspecified, costs are calculated
based on the default licensing plan.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Migration Center V1 Client - Class ComputeEnginePreferences (1.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.2 (latest)](/php/docs/reference/cloud-migrationcenter/latest/V1.ComputeEnginePreferences)\n- [1.1.1](/php/docs/reference/cloud-migrationcenter/1.1.1/V1.ComputeEnginePreferences)\n- [1.0.3](/php/docs/reference/cloud-migrationcenter/1.0.3/V1.ComputeEnginePreferences)\n- [0.4.5](/php/docs/reference/cloud-migrationcenter/0.4.5/V1.ComputeEnginePreferences)\n- [0.3.1](/php/docs/reference/cloud-migrationcenter/0.3.1/V1.ComputeEnginePreferences)\n- [0.2.0](/php/docs/reference/cloud-migrationcenter/0.2.0/V1.ComputeEnginePreferences)\n- [0.1.0](/php/docs/reference/cloud-migrationcenter/0.1.0/V1.ComputeEnginePreferences) \nReference documentation and code samples for the Google Cloud Migration Center V1 Client class ComputeEnginePreferences.\n\nThe user preferences relating to Compute Engine target platform.\n\nGenerated from protobuf message `google.cloud.migrationcenter.v1.ComputeEnginePreferences`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ MigrationCenter \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMachinePreferences\n\nPreferences concerning the machine types to consider on Compute Engine.\n\n### hasMachinePreferences\n\n### clearMachinePreferences\n\n### setMachinePreferences\n\nPreferences concerning the machine types to consider on Compute Engine.\n\n### getLicenseType\n\nLicense type to consider when calculating costs for virtual machine\ninsights and recommendations. If unspecified, costs are calculated\nbased on the default licensing plan.\n\n### setLicenseType\n\nLicense type to consider when calculating costs for virtual machine\ninsights and recommendations. If unspecified, costs are calculated\nbased on the default licensing plan."]]