Class SoleTenancyPreferences.Builder (0.14.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.SoleTenantNodeType>
Returns
TypeDescription
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
NameDescription
valueSoleTenantNodeType
Returns
TypeDescription
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
NameDescription
builderForValueSoleTenantNodeType.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSoleTenantNodeType
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSoleTenantNodeType.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SoleTenantNodeType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SoleTenancyPreferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SoleTenancyPreferences.Builder
Overrides

build()

public SoleTenancyPreferences build()
Returns
TypeDescription
SoleTenancyPreferences

buildPartial()

public SoleTenancyPreferences buildPartial()
Returns
TypeDescription
SoleTenancyPreferences

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SoleTenancyPreferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SoleTenancyPreferences.Builder
Overrides

clearHostMaintenancePolicy()

public SoleTenancyPreferences.Builder clearHostMaintenancePolicy()

Sole Tenancy nodes maintenance policy.

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

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SoleTenancyPreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SoleTenancyPreferences.Builder
Overrides

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SoleTenancyPreferences other)

public SoleTenancyPreferences.Builder mergeFrom(SoleTenancyPreferences other)
Parameter
NameDescription
otherSoleTenancyPreferences
Returns
TypeDescription
SoleTenancyPreferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SoleTenancyPreferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SoleTenancyPreferences.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SoleTenancyPreferences.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SoleTenancyPreferences.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SoleTenancyPreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueSoleTenancyPreferences.CommitmentPlan

The commitmentPlan to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valuedouble

The cpuOvercommitRatio to set.

Returns
TypeDescription
SoleTenancyPreferences.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SoleTenancyPreferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSoleTenancyPreferences.HostMaintenancePolicy

The hostMaintenancePolicy to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
indexint
valueSoleTenantNodeType
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSoleTenantNodeType.Builder
Returns
TypeDescription
SoleTenancyPreferences.Builder

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

public SoleTenancyPreferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SoleTenancyPreferences.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SoleTenancyPreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SoleTenancyPreferences.Builder
Overrides