Class ComputeEnginePreferences (0.9.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
TypeDescription
int

MACHINE_PREFERENCES_FIELD_NUMBER

public static final int MACHINE_PREFERENCES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ComputeEnginePreferences getDefaultInstance()
Returns
TypeDescription
ComputeEnginePreferences

getDescriptor()

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

newBuilder()

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

newBuilder(ComputeEnginePreferences prototype)

public static ComputeEnginePreferences.Builder newBuilder(ComputeEnginePreferences prototype)
Parameter
NameDescription
prototypeComputeEnginePreferences
Returns
TypeDescription
ComputeEnginePreferences.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ComputeEnginePreferences getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
MachinePreferencesOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the machinePreferences field is set.

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 ComputeEnginePreferences.Builder newBuilderForType()
Returns
TypeDescription
ComputeEnginePreferences.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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