Class ComputeEnginePreferences.Builder (0.4.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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeEnginePreferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ComputeEnginePreferences.Builder
Overrides

build()

public ComputeEnginePreferences build()
Returns
TypeDescription
ComputeEnginePreferences

buildPartial()

public ComputeEnginePreferences buildPartial()
Returns
TypeDescription
ComputeEnginePreferences

clear()

public ComputeEnginePreferences.Builder clear()
Returns
TypeDescription
ComputeEnginePreferences.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ComputeEnginePreferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ComputeEnginePreferences.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeEnginePreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ComputeEnginePreferences.Builder
Overrides

clone()

public ComputeEnginePreferences.Builder clone()
Returns
TypeDescription
ComputeEnginePreferences.Builder
Overrides

getDefaultInstanceForType()

public ComputeEnginePreferences getDefaultInstanceForType()
Returns
TypeDescription
ComputeEnginePreferences

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
MachinePreferencesOrBuilder

hasMachinePreferences()

public boolean hasMachinePreferences()

Preferences concerning the machine types to consider on Compute Engine.

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

Returns
TypeDescription
boolean

Whether the machinePreferences field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ComputeEnginePreferences other)

public ComputeEnginePreferences.Builder mergeFrom(ComputeEnginePreferences other)
Parameter
NameDescription
otherComputeEnginePreferences
Returns
TypeDescription
ComputeEnginePreferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeEnginePreferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeEnginePreferences.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ComputeEnginePreferences.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueMachinePreferences
Returns
TypeDescription
ComputeEnginePreferences.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeEnginePreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeEnginePreferences.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeEnginePreferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueLicenseType

The licenseType to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for licenseType to set.

Returns
TypeDescription
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
NameDescription
valueMachinePreferences
Returns
TypeDescription
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
NameDescription
builderForValueMachinePreferences.Builder
Returns
TypeDescription
ComputeEnginePreferences.Builder

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

public ComputeEnginePreferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ComputeEnginePreferences.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeEnginePreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeEnginePreferences.Builder
Overrides