Class VmwareEnginePreferences.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VmwareEnginePreferences.Builder>
com.google.cloud.migrationcenter.v1.VmwareEnginePreferences.Builder
All Implemented Interfaces:
VmwareEnginePreferencesOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
VmwareEnginePreferences

public static final class VmwareEnginePreferences.Builder extends com.google.protobuf.GeneratedMessage.Builder<VmwareEnginePreferences.Builder> implements VmwareEnginePreferencesOrBuilder
 The user preferences relating to Google Cloud VMware Engine target platform.
 
Protobuf type google.cloud.migrationcenter.v1.VmwareEnginePreferences
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<VmwareEnginePreferences.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<VmwareEnginePreferences.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<VmwareEnginePreferences.Builder>
    • getDefaultInstanceForType

      public VmwareEnginePreferences getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public VmwareEnginePreferences build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public VmwareEnginePreferences buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public VmwareEnginePreferences.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VmwareEnginePreferences.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<VmwareEnginePreferences.Builder>
    • mergeFrom

      public VmwareEnginePreferences.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VmwareEnginePreferences.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getCpuOvercommitRatio in interface VmwareEnginePreferencesOrBuilder
      Returns:
      The cpuOvercommitRatio.
    • setCpuOvercommitRatio

      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;
      Parameters:
      value - The cpuOvercommitRatio to set.
      Returns:
      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:
      This builder for chaining.
    • 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;
      Specified by:
      getMemoryOvercommitRatio in interface VmwareEnginePreferencesOrBuilder
      Returns:
      The memoryOvercommitRatio.
    • setMemoryOvercommitRatio

      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;
      Parameters:
      value - The memoryOvercommitRatio to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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;
      Specified by:
      getStorageDeduplicationCompressionRatio in interface VmwareEnginePreferencesOrBuilder
      Returns:
      The storageDeduplicationCompressionRatio.
    • setStorageDeduplicationCompressionRatio

      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;
      Parameters:
      value - The storageDeduplicationCompressionRatio to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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;
      Specified by:
      getCommitmentPlanValue in interface VmwareEnginePreferencesOrBuilder
      Returns:
      The enum numeric value on the wire for commitmentPlan.
    • setCommitmentPlanValue

      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;
      Parameters:
      value - The enum numeric value on the wire for commitmentPlan to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getCommitmentPlan in interface VmwareEnginePreferencesOrBuilder
      Returns:
      The commitmentPlan.
    • setCommitmentPlan

       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;
      Parameters:
      value - The commitmentPlan to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.