Class MachinePreferences (0.18.0)

public final class MachinePreferences extends GeneratedMessageV3 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 Fields

ALLOWED_MACHINE_SERIES_FIELD_NUMBER

public static final int ALLOWED_MACHINE_SERIES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MachinePreferences getDefaultInstance()
Returns
TypeDescription
MachinePreferences

getDescriptor()

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

newBuilder()

public static MachinePreferences.Builder newBuilder()
Returns
TypeDescription
MachinePreferences.Builder

newBuilder(MachinePreferences prototype)

public static MachinePreferences.Builder newBuilder(MachinePreferences prototype)
Parameter
NameDescription
prototypeMachinePreferences
Returns
TypeDescription
MachinePreferences.Builder

parseDelimitedFrom(InputStream input)

public static MachinePreferences parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MachinePreferences parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MachinePreferences parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MachinePreferences parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MachinePreferences parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MachinePreferences parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MachinePreferences parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MachinePreferences parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MachinePreferences parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MachinePreferences parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MachinePreferences parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MachinePreferences parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachinePreferences
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MachinePreferences> parser()
Returns
TypeDescription
Parser<MachinePreferences>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

getParserForType()

public Parser<MachinePreferences> getParserForType()
Returns
TypeDescription
Parser<MachinePreferences>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MachinePreferences.Builder newBuilderForType()
Returns
TypeDescription
MachinePreferences.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MachinePreferences.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MachinePreferences.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MachinePreferences.Builder toBuilder()
Returns
TypeDescription
MachinePreferences.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException