public static final class ComputeEnginePreferences.Builder extends GeneratedMessageV3.Builder<ComputeEnginePreferences.Builder> implements ComputeEnginePreferencesOrBuilder
The user preferences relating to Compute Engine target platform.
Protobuf type google.cloud.migrationcenter.v1.ComputeEnginePreferences
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeEnginePreferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ComputeEnginePreferences build()
buildPartial()
public ComputeEnginePreferences buildPartial()
clear()
public ComputeEnginePreferences.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ComputeEnginePreferences.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLicenseType()
public ComputeEnginePreferences.Builder clearLicenseType()
License type to consider when calculating costs for virtual machine
insights and recommendations. If unspecified, costs are calculated
based on the default licensing plan.
.google.cloud.migrationcenter.v1.LicenseType license_type = 3;
clearMachinePreferences()
public ComputeEnginePreferences.Builder clearMachinePreferences()
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeEnginePreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ComputeEnginePreferences.Builder clone()
Overrides
getDefaultInstanceForType()
public ComputeEnginePreferences getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLicenseType()
public LicenseType getLicenseType()
License type to consider when calculating costs for virtual machine
insights and recommendations. If unspecified, costs are calculated
based on the default licensing plan.
.google.cloud.migrationcenter.v1.LicenseType license_type = 3;
getLicenseTypeValue()
public int getLicenseTypeValue()
License type to consider when calculating costs for virtual machine
insights and recommendations. If unspecified, costs are calculated
based on the default licensing plan.
.google.cloud.migrationcenter.v1.LicenseType license_type = 3;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for licenseType.
|
getMachinePreferences()
public MachinePreferences getMachinePreferences()
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
getMachinePreferencesBuilder()
public MachinePreferences.Builder getMachinePreferencesBuilder()
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
getMachinePreferencesOrBuilder()
public MachinePreferencesOrBuilder getMachinePreferencesOrBuilder()
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
hasMachinePreferences()
public boolean hasMachinePreferences()
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
Returns |
Type |
Description |
boolean |
Whether the machinePreferences field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ComputeEnginePreferences other)
public ComputeEnginePreferences.Builder mergeFrom(ComputeEnginePreferences other)
public ComputeEnginePreferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ComputeEnginePreferences.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeMachinePreferences(MachinePreferences value)
public ComputeEnginePreferences.Builder mergeMachinePreferences(MachinePreferences value)
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeEnginePreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeEnginePreferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLicenseType(LicenseType value)
public ComputeEnginePreferences.Builder setLicenseType(LicenseType value)
License type to consider when calculating costs for virtual machine
insights and recommendations. If unspecified, costs are calculated
based on the default licensing plan.
.google.cloud.migrationcenter.v1.LicenseType license_type = 3;
Parameter |
Name |
Description |
value |
LicenseType
The licenseType to set.
|
setLicenseTypeValue(int value)
public ComputeEnginePreferences.Builder setLicenseTypeValue(int value)
License type to consider when calculating costs for virtual machine
insights and recommendations. If unspecified, costs are calculated
based on the default licensing plan.
.google.cloud.migrationcenter.v1.LicenseType license_type = 3;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for licenseType to set.
|
setMachinePreferences(MachinePreferences value)
public ComputeEnginePreferences.Builder setMachinePreferences(MachinePreferences value)
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
setMachinePreferences(MachinePreferences.Builder builderForValue)
public ComputeEnginePreferences.Builder setMachinePreferences(MachinePreferences.Builder builderForValue)
Preferences concerning the machine types to consider on Compute Engine.
.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeEnginePreferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeEnginePreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides