Class MachinePreferences.Builder (0.30.0)

public static final class MachinePreferences.Builder extends GeneratedMessageV3.Builder<MachinePreferences.Builder> implements MachinePreferencesOrBuilder

The type of machines to consider when calculating virtual machine migration insights and recommendations. Not all machine types are available in all zones and regions.

Protobuf type google.cloud.migrationcenter.v1.MachinePreferences

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAllowedMachineSeries(Iterable<? extends MachineSeries> values)

public MachinePreferences.Builder addAllAllowedMachineSeries(Iterable<? extends MachineSeries> values)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.MachineSeries>
Returns
Type Description
MachinePreferences.Builder

addAllowedMachineSeries(MachineSeries value)

public MachinePreferences.Builder addAllowedMachineSeries(MachineSeries value)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Parameter
Name Description
value MachineSeries
Returns
Type Description
MachinePreferences.Builder

addAllowedMachineSeries(MachineSeries.Builder builderForValue)

public MachinePreferences.Builder addAllowedMachineSeries(MachineSeries.Builder builderForValue)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

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

addAllowedMachineSeries(int index, MachineSeries value)

public MachinePreferences.Builder addAllowedMachineSeries(int index, MachineSeries value)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Parameters
Name Description
index int
value MachineSeries
Returns
Type Description
MachinePreferences.Builder

addAllowedMachineSeries(int index, MachineSeries.Builder builderForValue)

public MachinePreferences.Builder addAllowedMachineSeries(int index, MachineSeries.Builder builderForValue)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Parameters
Name Description
index int
builderForValue MachineSeries.Builder
Returns
Type Description
MachinePreferences.Builder

addAllowedMachineSeriesBuilder()

public MachineSeries.Builder addAllowedMachineSeriesBuilder()

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Returns
Type Description
MachineSeries.Builder

addAllowedMachineSeriesBuilder(int index)

public MachineSeries.Builder addAllowedMachineSeriesBuilder(int index)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Parameter
Name Description
index int
Returns
Type Description
MachineSeries.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MachinePreferences build()
Returns
Type Description
MachinePreferences

buildPartial()

public MachinePreferences buildPartial()
Returns
Type Description
MachinePreferences

clear()

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

clearAllowedMachineSeries()

public MachinePreferences.Builder clearAllowedMachineSeries()

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Returns
Type Description
MachinePreferences.Builder

clearField(Descriptors.FieldDescriptor field)

public MachinePreferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MachinePreferences.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAllowedMachineSeries(int index)

public MachineSeries getAllowedMachineSeries(int index)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Parameter
Name Description
index int
Returns
Type Description
MachineSeries

getAllowedMachineSeriesBuilder(int index)

public MachineSeries.Builder getAllowedMachineSeriesBuilder(int index)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Parameter
Name Description
index int
Returns
Type Description
MachineSeries.Builder

getAllowedMachineSeriesBuilderList()

public List<MachineSeries.Builder> getAllowedMachineSeriesBuilderList()

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Returns
Type Description
List<Builder>

getAllowedMachineSeriesCount()

public int getAllowedMachineSeriesCount()

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Returns
Type Description
int

getAllowedMachineSeriesList()

public List<MachineSeries> getAllowedMachineSeriesList()

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Returns
Type Description
List<MachineSeries>

getAllowedMachineSeriesOrBuilder(int index)

public MachineSeriesOrBuilder getAllowedMachineSeriesOrBuilder(int index)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Parameter
Name Description
index int
Returns
Type Description
MachineSeriesOrBuilder

getAllowedMachineSeriesOrBuilderList()

public List<? extends MachineSeriesOrBuilder> getAllowedMachineSeriesOrBuilderList()

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Returns
Type Description
List<? extends com.google.cloud.migrationcenter.v1.MachineSeriesOrBuilder>

getDefaultInstanceForType()

public MachinePreferences getDefaultInstanceForType()
Returns
Type Description
MachinePreferences

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MachinePreferences other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public MachinePreferences.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MachinePreferences.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAllowedMachineSeries(int index)

public MachinePreferences.Builder removeAllowedMachineSeries(int index)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Parameter
Name Description
index int
Returns
Type Description
MachinePreferences.Builder

setAllowedMachineSeries(int index, MachineSeries value)

public MachinePreferences.Builder setAllowedMachineSeries(int index, MachineSeries value)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Parameters
Name Description
index int
value MachineSeries
Returns
Type Description
MachinePreferences.Builder

setAllowedMachineSeries(int index, MachineSeries.Builder builderForValue)

public MachinePreferences.Builder setAllowedMachineSeries(int index, MachineSeries.Builder builderForValue)

Compute Engine machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.

repeated .google.cloud.migrationcenter.v1.MachineSeries allowed_machine_series = 1;

Parameters
Name Description
index int
builderForValue MachineSeries.Builder
Returns
Type Description
MachinePreferences.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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