Class SoleTenancyPreferences (0.26.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
Type Description
int

CPU_OVERCOMMIT_RATIO_FIELD_NUMBER

public static final int CPU_OVERCOMMIT_RATIO_FIELD_NUMBER
Field Value
Type Description
int

HOST_MAINTENANCE_POLICY_FIELD_NUMBER

public static final int HOST_MAINTENANCE_POLICY_FIELD_NUMBER
Field Value
Type Description
int

NODE_TYPES_FIELD_NUMBER

public static final int NODE_TYPES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SoleTenancyPreferences getDefaultInstance()
Returns
Type Description
SoleTenancyPreferences

getDescriptor()

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

newBuilder()

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

newBuilder(SoleTenancyPreferences prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
double

The cpuOvercommitRatio.

getDefaultInstanceForType()

public SoleTenancyPreferences getDefaultInstanceForType()
Returns
Type Description
SoleTenancyPreferences

getHostMaintenancePolicy()

public SoleTenancyPreferences.HostMaintenancePolicy getHostMaintenancePolicy()

Sole Tenancy nodes maintenance policy.

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

Returns
Type Description
SoleTenancyPreferences.HostMaintenancePolicy

The hostMaintenancePolicy.

getHostMaintenancePolicyValue()

public int getHostMaintenancePolicyValue()

Sole Tenancy nodes maintenance policy.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.migrationcenter.v1.SoleTenantNodeTypeOrBuilder>

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 SoleTenancyPreferences.Builder newBuilderForType()
Returns
Type Description
SoleTenancyPreferences.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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