- 0.58.0 (latest)
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.52.0
- 0.50.0
- 0.49.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class SoleTenancyPreferences.Builder extends GeneratedMessageV3.Builder<SoleTenancyPreferences.Builder> implements SoleTenancyPreferencesOrBuilderPreferences concerning Sole Tenancy nodes and VMs.
Protobuf type google.cloud.migrationcenter.v1.SoleTenancyPreferences
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SoleTenancyPreferences.BuilderImplements
SoleTenancyPreferencesOrBuilderStatic 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 |
|
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 |
|
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 |
|
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 |
|
clone()
public SoleTenancyPreferences.Builder clone()| Returns | |
|---|---|
| Type | Description |
SoleTenancyPreferences.Builder |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SoleTenancyPreferences.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SoleTenancyPreferences.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SoleTenancyPreferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
SoleTenancyPreferences.Builder |
|
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.CommitmentPlanThe 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 |
intThe 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 |
doubleThe 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 |
|
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.HostMaintenancePolicyThe 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 |
intThe 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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final SoleTenancyPreferences.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
SoleTenancyPreferences.Builder |
|