Class ComputeEnginePreferences.Builder (0.35.0)

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

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()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeEnginePreferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeEnginePreferences.Builder
Overrides

build()

public ComputeEnginePreferences build()
Returns
Type Description
ComputeEnginePreferences

buildPartial()

public ComputeEnginePreferences buildPartial()
Returns
Type Description
ComputeEnginePreferences

clear()

public ComputeEnginePreferences.Builder clear()
Returns
Type Description
ComputeEnginePreferences.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ComputeEnginePreferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeEnginePreferences.Builder
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;

Returns
Type Description
ComputeEnginePreferences.Builder

This builder for chaining.

clearMachinePreferences()

public ComputeEnginePreferences.Builder clearMachinePreferences()

Preferences concerning the machine types to consider on Compute Engine.

.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;

Returns
Type Description
ComputeEnginePreferences.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeEnginePreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ComputeEnginePreferences.Builder
Overrides

clone()

public ComputeEnginePreferences.Builder clone()
Returns
Type Description
ComputeEnginePreferences.Builder
Overrides

getDefaultInstanceForType()

public ComputeEnginePreferences getDefaultInstanceForType()
Returns
Type Description
ComputeEnginePreferences

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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;

Returns
Type Description
LicenseType

The licenseType.

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;

Returns
Type Description
MachinePreferences

The machinePreferences.

getMachinePreferencesBuilder()

public MachinePreferences.Builder getMachinePreferencesBuilder()

Preferences concerning the machine types to consider on Compute Engine.

.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;

Returns
Type Description
MachinePreferences.Builder

getMachinePreferencesOrBuilder()

public MachinePreferencesOrBuilder getMachinePreferencesOrBuilder()

Preferences concerning the machine types to consider on Compute Engine.

.google.cloud.migrationcenter.v1.MachinePreferences machine_preferences = 2;

Returns
Type Description
MachinePreferencesOrBuilder

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComputeEnginePreferences other)

public ComputeEnginePreferences.Builder mergeFrom(ComputeEnginePreferences other)
Parameter
Name Description
other ComputeEnginePreferences
Returns
Type Description
ComputeEnginePreferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeEnginePreferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeEnginePreferences.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ComputeEnginePreferences.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ComputeEnginePreferences.Builder
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;

Parameter
Name Description
value MachinePreferences
Returns
Type Description
ComputeEnginePreferences.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeEnginePreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeEnginePreferences.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeEnginePreferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeEnginePreferences.Builder
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.

Returns
Type Description
ComputeEnginePreferences.Builder

This builder for chaining.

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.

Returns
Type Description
ComputeEnginePreferences.Builder

This builder for chaining.

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;

Parameter
Name Description
value MachinePreferences
Returns
Type Description
ComputeEnginePreferences.Builder

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;

Parameter
Name Description
builderForValue MachinePreferences.Builder
Returns
Type Description
ComputeEnginePreferences.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ComputeEnginePreferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeEnginePreferences.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeEnginePreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeEnginePreferences.Builder
Overrides