Class ComputeEnginePreferences (0.28.0)

public final class ComputeEnginePreferences extends GeneratedMessageV3 implements ComputeEnginePreferencesOrBuilder

The user preferences relating to Compute Engine target platform.

Protobuf type google.cloud.migrationcenter.v1.ComputeEnginePreferences

Static Fields

LICENSE_TYPE_FIELD_NUMBER

public static final int LICENSE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_PREFERENCES_FIELD_NUMBER

public static final int MACHINE_PREFERENCES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ComputeEnginePreferences getDefaultInstance()
Returns
Type Description
ComputeEnginePreferences

getDescriptor()

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

newBuilder()

public static ComputeEnginePreferences.Builder newBuilder()
Returns
Type Description
ComputeEnginePreferences.Builder

newBuilder(ComputeEnginePreferences prototype)

public static ComputeEnginePreferences.Builder newBuilder(ComputeEnginePreferences prototype)
Parameter
Name Description
prototype ComputeEnginePreferences
Returns
Type Description
ComputeEnginePreferences.Builder

parseDelimitedFrom(InputStream input)

public static ComputeEnginePreferences parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeEnginePreferences parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ComputeEnginePreferences parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ComputeEnginePreferences parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ComputeEnginePreferences parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ComputeEnginePreferences parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ComputeEnginePreferences parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeEnginePreferences parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ComputeEnginePreferences parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeEnginePreferences parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ComputeEnginePreferences parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ComputeEnginePreferences parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeEnginePreferences
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ComputeEnginePreferences> parser()
Returns
Type Description
Parser<ComputeEnginePreferences>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ComputeEnginePreferences getDefaultInstanceForType()
Returns
Type Description
ComputeEnginePreferences

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
Type Description
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
Type Description
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
Type Description
MachinePreferences

The machinePreferences.

getMachinePreferencesOrBuilder()

public MachinePreferencesOrBuilder getMachinePreferencesOrBuilder()

Preferences concerning the machine types to consider on Compute Engine.

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

Returns
Type Description
MachinePreferencesOrBuilder

getParserForType()

public Parser<ComputeEnginePreferences> getParserForType()
Returns
Type Description
Parser<ComputeEnginePreferences>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasMachinePreferences()

public boolean hasMachinePreferences()

Preferences concerning the machine types to consider on Compute Engine.

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

Returns
Type Description
boolean

Whether the machinePreferences field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ComputeEnginePreferences.Builder newBuilderForType()
Returns
Type Description
ComputeEnginePreferences.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ComputeEnginePreferences.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ComputeEnginePreferences.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ComputeEnginePreferences.Builder toBuilder()
Returns
Type Description
ComputeEnginePreferences.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException