Class SoleTenancyPreferences (0.19.0)

public final class SoleTenancyPreferences extends GeneratedMessageV3 implements SoleTenancyPreferencesOrBuilder

Preferences concerning Sole Tenancy nodes and VMs.

Protobuf type google.cloud.migrationcenter.v1.SoleTenancyPreferences

Static Fields

COMMITMENT_PLAN_FIELD_NUMBER

public static final int COMMITMENT_PLAN_FIELD_NUMBER
Field Value
TypeDescription
int

CPU_OVERCOMMIT_RATIO_FIELD_NUMBER

public static final int CPU_OVERCOMMIT_RATIO_FIELD_NUMBER
Field Value
TypeDescription
int

HOST_MAINTENANCE_POLICY_FIELD_NUMBER

public static final int HOST_MAINTENANCE_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

NODE_TYPES_FIELD_NUMBER

public static final int NODE_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SoleTenancyPreferences getDefaultInstance()
Returns
TypeDescription
SoleTenancyPreferences

getDescriptor()

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

newBuilder()

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

newBuilder(SoleTenancyPreferences prototype)

public static SoleTenancyPreferences.Builder newBuilder(SoleTenancyPreferences prototype)
Parameter
NameDescription
prototypeSoleTenancyPreferences
Returns
TypeDescription
SoleTenancyPreferences.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCommitmentPlan()

public SoleTenancyPreferences.CommitmentPlan getCommitmentPlan()

Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences.CommitmentPlan commitment_plan = 3;

Returns
TypeDescription
SoleTenancyPreferences.CommitmentPlan

The commitmentPlan.

getCommitmentPlanValue()

public int getCommitmentPlanValue()

Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences.CommitmentPlan commitment_plan = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for commitmentPlan.

getCpuOvercommitRatio()

public double getCpuOvercommitRatio()

CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.

double cpu_overcommit_ratio = 1;

Returns
TypeDescription
double

The cpuOvercommitRatio.

getDefaultInstanceForType()

public SoleTenancyPreferences getDefaultInstanceForType()
Returns
TypeDescription
SoleTenancyPreferences

getHostMaintenancePolicy()

public SoleTenancyPreferences.HostMaintenancePolicy getHostMaintenancePolicy()

Sole Tenancy nodes maintenance policy.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences.HostMaintenancePolicy host_maintenance_policy = 2;

Returns
TypeDescription
SoleTenancyPreferences.HostMaintenancePolicy

The hostMaintenancePolicy.

getHostMaintenancePolicyValue()

public int getHostMaintenancePolicyValue()

Sole Tenancy nodes maintenance policy.

.google.cloud.migrationcenter.v1.SoleTenancyPreferences.HostMaintenancePolicy host_maintenance_policy = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for hostMaintenancePolicy.

getNodeTypes(int index)

public SoleTenantNodeType getNodeTypes(int index)

A list of sole tenant node types. An empty list means that all possible node types will be considered.

repeated .google.cloud.migrationcenter.v1.SoleTenantNodeType node_types = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
SoleTenantNodeType

getNodeTypesCount()

public int getNodeTypesCount()

A list of sole tenant node types. An empty list means that all possible node types will be considered.

repeated .google.cloud.migrationcenter.v1.SoleTenantNodeType node_types = 4;

Returns
TypeDescription
int

getNodeTypesList()

public List<SoleTenantNodeType> getNodeTypesList()

A list of sole tenant node types. An empty list means that all possible node types will be considered.

repeated .google.cloud.migrationcenter.v1.SoleTenantNodeType node_types = 4;

Returns
TypeDescription
List<SoleTenantNodeType>

getNodeTypesOrBuilder(int index)

public SoleTenantNodeTypeOrBuilder getNodeTypesOrBuilder(int index)

A list of sole tenant node types. An empty list means that all possible node types will be considered.

repeated .google.cloud.migrationcenter.v1.SoleTenantNodeType node_types = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
SoleTenantNodeTypeOrBuilder

getNodeTypesOrBuilderList()

public List<? extends SoleTenantNodeTypeOrBuilder> getNodeTypesOrBuilderList()

A list of sole tenant node types. An empty list means that all possible node types will be considered.

repeated .google.cloud.migrationcenter.v1.SoleTenantNodeType node_types = 4;

Returns
TypeDescription
List<? extends com.google.cloud.migrationcenter.v1.SoleTenantNodeTypeOrBuilder>

getParserForType()

public Parser<SoleTenancyPreferences> getParserForType()
Returns
TypeDescription
Parser<SoleTenancyPreferences>
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 SoleTenancyPreferences.Builder newBuilderForType()
Returns
TypeDescription
SoleTenancyPreferences.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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