Class VmwareEnginePreferences.Builder (0.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VmwareEnginePreferences build()
Returns
TypeDescription
VmwareEnginePreferences

buildPartial()

public VmwareEnginePreferences buildPartial()
Returns
TypeDescription
VmwareEnginePreferences

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VmwareEnginePreferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
VmwareEnginePreferences.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VmwareEnginePreferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
VmwareEnginePreferences.Builder

This builder for chaining.

clone()

public VmwareEnginePreferences.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
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 8.0, with 0.1 increment.

double cpu_overcommit_ratio = 1;

Returns
TypeDescription
double

The cpuOvercommitRatio.

getDefaultInstanceForType()

public VmwareEnginePreferences getDefaultInstanceForType()
Returns
TypeDescription
VmwareEnginePreferences

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
double

The storageDeduplicationCompressionRatio.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VmwareEnginePreferences other)

public VmwareEnginePreferences.Builder mergeFrom(VmwareEnginePreferences other)
Parameter
NameDescription
otherVmwareEnginePreferences
Returns
TypeDescription
VmwareEnginePreferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The commitmentPlan to set.

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

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

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

The cpuOvercommitRatio to set.

Returns
TypeDescription
VmwareEnginePreferences.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The memoryOvercommitRatio to set.

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

The storageDeduplicationCompressionRatio to set.

Returns
TypeDescription
VmwareEnginePreferences.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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