Class VmwareEnginePreferences.Builder (0.28.0)

public static final class VmwareEnginePreferences.Builder extends GeneratedMessageV3.Builder<VmwareEnginePreferences.Builder> implements VmwareEnginePreferencesOrBuilder

The user preferences relating to Google Cloud VMware Engine target platform.

Protobuf type google.cloud.migrationcenter.v1.VmwareEnginePreferences

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmwareEnginePreferences build()
Returns
Type Description
VmwareEnginePreferences

buildPartial()

public VmwareEnginePreferences buildPartial()
Returns
Type Description
VmwareEnginePreferences

clear()

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

clearCommitmentPlan()

public VmwareEnginePreferences.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.VmwareEnginePreferences.CommitmentPlan commitment_plan = 4;

Returns
Type Description
VmwareEnginePreferences.Builder

This builder for chaining.

clearCpuOvercommitRatio()

public VmwareEnginePreferences.Builder clearCpuOvercommitRatio()

CPU overcommit ratio. Acceptable values are between 1.0 and 8.0, with 0.1 increment.

double cpu_overcommit_ratio = 1;

Returns
Type Description
VmwareEnginePreferences.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMemoryOvercommitRatio()

public VmwareEnginePreferences.Builder clearMemoryOvercommitRatio()

Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.

double memory_overcommit_ratio = 2;

Returns
Type Description
VmwareEnginePreferences.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStorageDeduplicationCompressionRatio()

public VmwareEnginePreferences.Builder clearStorageDeduplicationCompressionRatio()

The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x. Acceptable values are between 1.0 and 4.0.

double storage_deduplication_compression_ratio = 3;

Returns
Type Description
VmwareEnginePreferences.Builder

This builder for chaining.

clone()

public VmwareEnginePreferences.Builder clone()
Returns
Type Description
VmwareEnginePreferences.Builder
Overrides

getCommitmentPlan()

public VmwareEnginePreferences.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.VmwareEnginePreferences.CommitmentPlan commitment_plan = 4;

Returns
Type Description
VmwareEnginePreferences.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.VmwareEnginePreferences.CommitmentPlan commitment_plan = 4;

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 8.0, with 0.1 increment.

double cpu_overcommit_ratio = 1;

Returns
Type Description
double

The cpuOvercommitRatio.

getDefaultInstanceForType()

public VmwareEnginePreferences getDefaultInstanceForType()
Returns
Type Description
VmwareEnginePreferences

getDescriptorForType()

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

getMemoryOvercommitRatio()

public double getMemoryOvercommitRatio()

Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.

double memory_overcommit_ratio = 2;

Returns
Type Description
double

The memoryOvercommitRatio.

getStorageDeduplicationCompressionRatio()

public double getStorageDeduplicationCompressionRatio()

The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x. Acceptable values are between 1.0 and 4.0.

double storage_deduplication_compression_ratio = 3;

Returns
Type Description
double

The storageDeduplicationCompressionRatio.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VmwareEnginePreferences other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCommitmentPlan(VmwareEnginePreferences.CommitmentPlan value)

public VmwareEnginePreferences.Builder setCommitmentPlan(VmwareEnginePreferences.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.VmwareEnginePreferences.CommitmentPlan commitment_plan = 4;

Parameter
Name Description
value VmwareEnginePreferences.CommitmentPlan

The commitmentPlan to set.

Returns
Type Description
VmwareEnginePreferences.Builder

This builder for chaining.

setCommitmentPlanValue(int value)

public VmwareEnginePreferences.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.VmwareEnginePreferences.CommitmentPlan commitment_plan = 4;

Parameter
Name Description
value int

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

Returns
Type Description
VmwareEnginePreferences.Builder

This builder for chaining.

setCpuOvercommitRatio(double value)

public VmwareEnginePreferences.Builder setCpuOvercommitRatio(double value)

CPU overcommit ratio. Acceptable values are between 1.0 and 8.0, with 0.1 increment.

double cpu_overcommit_ratio = 1;

Parameter
Name Description
value double

The cpuOvercommitRatio to set.

Returns
Type Description
VmwareEnginePreferences.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMemoryOvercommitRatio(double value)

public VmwareEnginePreferences.Builder setMemoryOvercommitRatio(double value)

Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.

double memory_overcommit_ratio = 2;

Parameter
Name Description
value double

The memoryOvercommitRatio to set.

Returns
Type Description
VmwareEnginePreferences.Builder

This builder for chaining.

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

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

setStorageDeduplicationCompressionRatio(double value)

public VmwareEnginePreferences.Builder setStorageDeduplicationCompressionRatio(double value)

The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x. Acceptable values are between 1.0 and 4.0.

double storage_deduplication_compression_ratio = 3;

Parameter
Name Description
value double

The storageDeduplicationCompressionRatio to set.

Returns
Type Description
VmwareEnginePreferences.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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