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
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
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>
|
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;
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;
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;
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;
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;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MachinePreferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public MachinePreferences build()
buildPartial()
public MachinePreferences buildPartial()
clear()
public MachinePreferences.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public MachinePreferences.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public MachinePreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public MachinePreferences.Builder clone()
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
|
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
|
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;
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;
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
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(MachinePreferences other)
public MachinePreferences.Builder mergeFrom(MachinePreferences other)
public MachinePreferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public MachinePreferences.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MachinePreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public MachinePreferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MachinePreferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MachinePreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides