Class MachinePreferences.Builder (0.22.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.MachineSeries>
Returns
TypeDescription
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
NameDescription
valueMachineSeries
Returns
TypeDescription
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
NameDescription
builderForValueMachineSeries.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMachineSeries
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMachineSeries.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MachineSeries.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MachinePreferences build()
Returns
TypeDescription
MachinePreferences

buildPartial()

public MachinePreferences buildPartial()
Returns
TypeDescription
MachinePreferences

clear()

public MachinePreferences.Builder clear()
Returns
TypeDescription
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
TypeDescription
MachinePreferences.Builder

clearField(Descriptors.FieldDescriptor field)

public MachinePreferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MachinePreferences.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public MachinePreferences.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.migrationcenter.v1.MachineSeriesOrBuilder>

getDefaultInstanceForType()

public MachinePreferences getDefaultInstanceForType()
Returns
TypeDescription
MachinePreferences

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MachinePreferences other)

public MachinePreferences.Builder mergeFrom(MachinePreferences other)
Parameter
NameDescription
otherMachinePreferences
Returns
TypeDescription
MachinePreferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public MachinePreferences.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MachinePreferences.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MachinePreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueMachineSeries
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMachineSeries.Builder
Returns
TypeDescription
MachinePreferences.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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