Class SoleTenancyPreferences.Builder (0.37.0)

public static final class SoleTenancyPreferences.Builder extends GeneratedMessageV3.Builder<SoleTenancyPreferences.Builder> implements SoleTenancyPreferencesOrBuilder

Preferences concerning Sole Tenancy nodes and VMs.

Protobuf type google.cloud.migrationcenter.v1.SoleTenancyPreferences

Static Methods

getDescriptor()

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

Methods

addAllNodeTypes(Iterable<? extends SoleTenantNodeType> values)

public SoleTenancyPreferences.Builder addAllNodeTypes(Iterable<? extends SoleTenantNodeType> values)

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
values Iterable<? extends com.google.cloud.migrationcenter.v1.SoleTenantNodeType>
Returns
Type Description
SoleTenancyPreferences.Builder

addNodeTypes(SoleTenantNodeType value)

public SoleTenancyPreferences.Builder addNodeTypes(SoleTenantNodeType value)

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
value SoleTenantNodeType
Returns
Type Description
SoleTenancyPreferences.Builder

addNodeTypes(SoleTenantNodeType.Builder builderForValue)

public SoleTenancyPreferences.Builder addNodeTypes(SoleTenantNodeType.Builder builderForValue)

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
builderForValue SoleTenantNodeType.Builder
Returns
Type Description
SoleTenancyPreferences.Builder

addNodeTypes(int index, SoleTenantNodeType value)

public SoleTenancyPreferences.Builder addNodeTypes(int index, SoleTenantNodeType value)

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;

Parameters
Name Description
index int
value SoleTenantNodeType
Returns
Type Description
SoleTenancyPreferences.Builder

addNodeTypes(int index, SoleTenantNodeType.Builder builderForValue)

public SoleTenancyPreferences.Builder addNodeTypes(int index, SoleTenantNodeType.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue SoleTenantNodeType.Builder
Returns
Type Description
SoleTenancyPreferences.Builder

addNodeTypesBuilder()

public SoleTenantNodeType.Builder addNodeTypesBuilder()

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
SoleTenantNodeType.Builder

addNodeTypesBuilder(int index)

public SoleTenantNodeType.Builder addNodeTypesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SoleTenancyPreferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SoleTenancyPreferences.Builder
Overrides

build()

public SoleTenancyPreferences build()
Returns
Type Description
SoleTenancyPreferences

buildPartial()

public SoleTenancyPreferences buildPartial()
Returns
Type Description
SoleTenancyPreferences

clear()

public SoleTenancyPreferences.Builder clear()
Returns
Type Description
SoleTenancyPreferences.Builder
Overrides

clearCommitmentPlan()

public SoleTenancyPreferences.Builder clearCommitmentPlan()

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.Builder

This builder for chaining.

clearCpuOvercommitRatio()

public SoleTenancyPreferences.Builder clearCpuOvercommitRatio()

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

double cpu_overcommit_ratio = 1;

Returns
Type Description
SoleTenancyPreferences.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SoleTenancyPreferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SoleTenancyPreferences.Builder
Overrides

clearHostMaintenancePolicy()

public SoleTenancyPreferences.Builder clearHostMaintenancePolicy()

Sole Tenancy nodes maintenance policy.

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

Returns
Type Description
SoleTenancyPreferences.Builder

This builder for chaining.

clearNodeTypes()

public SoleTenancyPreferences.Builder clearNodeTypes()

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
SoleTenancyPreferences.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SoleTenancyPreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SoleTenancyPreferences.Builder
Overrides

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getNodeTypesBuilder(int index)

public SoleTenantNodeType.Builder getNodeTypesBuilder(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.Builder

getNodeTypesBuilderList()

public List<SoleTenantNodeType.Builder> getNodeTypesBuilderList()

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<Builder>

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>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SoleTenancyPreferences other)

public SoleTenancyPreferences.Builder mergeFrom(SoleTenancyPreferences other)
Parameter
Name Description
other SoleTenancyPreferences
Returns
Type Description
SoleTenancyPreferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SoleTenancyPreferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SoleTenancyPreferences.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SoleTenancyPreferences.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SoleTenancyPreferences.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SoleTenancyPreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SoleTenancyPreferences.Builder
Overrides

removeNodeTypes(int index)

public SoleTenancyPreferences.Builder removeNodeTypes(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
SoleTenancyPreferences.Builder

setCommitmentPlan(SoleTenancyPreferences.CommitmentPlan value)

public SoleTenancyPreferences.Builder setCommitmentPlan(SoleTenancyPreferences.CommitmentPlan value)

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;

Parameter
Name Description
value SoleTenancyPreferences.CommitmentPlan

The commitmentPlan to set.

Returns
Type Description
SoleTenancyPreferences.Builder

This builder for chaining.

setCommitmentPlanValue(int value)

public SoleTenancyPreferences.Builder setCommitmentPlanValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for commitmentPlan to set.

Returns
Type Description
SoleTenancyPreferences.Builder

This builder for chaining.

setCpuOvercommitRatio(double value)

public SoleTenancyPreferences.Builder setCpuOvercommitRatio(double value)

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

double cpu_overcommit_ratio = 1;

Parameter
Name Description
value double

The cpuOvercommitRatio to set.

Returns
Type Description
SoleTenancyPreferences.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SoleTenancyPreferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SoleTenancyPreferences.Builder
Overrides

setHostMaintenancePolicy(SoleTenancyPreferences.HostMaintenancePolicy value)

public SoleTenancyPreferences.Builder setHostMaintenancePolicy(SoleTenancyPreferences.HostMaintenancePolicy value)

Sole Tenancy nodes maintenance policy.

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

Parameter
Name Description
value SoleTenancyPreferences.HostMaintenancePolicy

The hostMaintenancePolicy to set.

Returns
Type Description
SoleTenancyPreferences.Builder

This builder for chaining.

setHostMaintenancePolicyValue(int value)

public SoleTenancyPreferences.Builder setHostMaintenancePolicyValue(int value)

Sole Tenancy nodes maintenance policy.

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

Parameter
Name Description
value int

The enum numeric value on the wire for hostMaintenancePolicy to set.

Returns
Type Description
SoleTenancyPreferences.Builder

This builder for chaining.

setNodeTypes(int index, SoleTenantNodeType value)

public SoleTenancyPreferences.Builder setNodeTypes(int index, SoleTenantNodeType value)

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;

Parameters
Name Description
index int
value SoleTenantNodeType
Returns
Type Description
SoleTenancyPreferences.Builder

setNodeTypes(int index, SoleTenantNodeType.Builder builderForValue)

public SoleTenancyPreferences.Builder setNodeTypes(int index, SoleTenantNodeType.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue SoleTenantNodeType.Builder
Returns
Type Description
SoleTenancyPreferences.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SoleTenancyPreferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SoleTenancyPreferences.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SoleTenancyPreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SoleTenancyPreferences.Builder
Overrides