Class VirtualMachinePreferences.Builder

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

public static final class VirtualMachinePreferences.Builder extends com.google.protobuf.GeneratedMessage.Builder<VirtualMachinePreferences.Builder> implements VirtualMachinePreferencesOrBuilder
 VirtualMachinePreferences enables you to create sets of assumptions, for
 example, a geographical location and pricing track, for your migrated virtual
 machines. The set of preferences influence recommendations for migrating
 virtual machine assets.
 
Protobuf type google.cloud.migrationcenter.v1.VirtualMachinePreferences
  • 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<VirtualMachinePreferences.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<VirtualMachinePreferences.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<VirtualMachinePreferences.Builder>
    • getDefaultInstanceForType

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

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

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

      public VirtualMachinePreferences.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<VirtualMachinePreferences.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<VirtualMachinePreferences.Builder>
    • mergeFrom

      public VirtualMachinePreferences.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<VirtualMachinePreferences.Builder>
      Throws:
      IOException
    • getTargetProductValue

      public int getTargetProductValue()
       Target product for assets using this preference set.
       Specify either target product or business goal, but
       not both.
       
      .google.cloud.migrationcenter.v1.ComputeMigrationTargetProduct target_product = 2;
      Specified by:
      getTargetProductValue in interface VirtualMachinePreferencesOrBuilder
      Returns:
      The enum numeric value on the wire for targetProduct.
    • setTargetProductValue

      public VirtualMachinePreferences.Builder setTargetProductValue(int value)
       Target product for assets using this preference set.
       Specify either target product or business goal, but
       not both.
       
      .google.cloud.migrationcenter.v1.ComputeMigrationTargetProduct target_product = 2;
      Parameters:
      value - The enum numeric value on the wire for targetProduct to set.
      Returns:
      This builder for chaining.
    • getTargetProduct

      public ComputeMigrationTargetProduct getTargetProduct()
       Target product for assets using this preference set.
       Specify either target product or business goal, but
       not both.
       
      .google.cloud.migrationcenter.v1.ComputeMigrationTargetProduct target_product = 2;
      Specified by:
      getTargetProduct in interface VirtualMachinePreferencesOrBuilder
      Returns:
      The targetProduct.
    • setTargetProduct

       Target product for assets using this preference set.
       Specify either target product or business goal, but
       not both.
       
      .google.cloud.migrationcenter.v1.ComputeMigrationTargetProduct target_product = 2;
      Parameters:
      value - The targetProduct to set.
      Returns:
      This builder for chaining.
    • clearTargetProduct

      public VirtualMachinePreferences.Builder clearTargetProduct()
       Target product for assets using this preference set.
       Specify either target product or business goal, but
       not both.
       
      .google.cloud.migrationcenter.v1.ComputeMigrationTargetProduct target_product = 2;
      Returns:
      This builder for chaining.
    • hasRegionPreferences

      public boolean hasRegionPreferences()
       Region preferences for assets using this preference set.
       If you are unsure which value to set, the migration service API region is
       often a good value to start with.
       
      .google.cloud.migrationcenter.v1.RegionPreferences region_preferences = 3;
      Specified by:
      hasRegionPreferences in interface VirtualMachinePreferencesOrBuilder
      Returns:
      Whether the regionPreferences field is set.
    • getRegionPreferences

      public RegionPreferences getRegionPreferences()
       Region preferences for assets using this preference set.
       If you are unsure which value to set, the migration service API region is
       often a good value to start with.
       
      .google.cloud.migrationcenter.v1.RegionPreferences region_preferences = 3;
      Specified by:
      getRegionPreferences in interface VirtualMachinePreferencesOrBuilder
      Returns:
      The regionPreferences.
    • setRegionPreferences

      public VirtualMachinePreferences.Builder setRegionPreferences(RegionPreferences value)
       Region preferences for assets using this preference set.
       If you are unsure which value to set, the migration service API region is
       often a good value to start with.
       
      .google.cloud.migrationcenter.v1.RegionPreferences region_preferences = 3;
    • setRegionPreferences

      public VirtualMachinePreferences.Builder setRegionPreferences(RegionPreferences.Builder builderForValue)
       Region preferences for assets using this preference set.
       If you are unsure which value to set, the migration service API region is
       often a good value to start with.
       
      .google.cloud.migrationcenter.v1.RegionPreferences region_preferences = 3;
    • mergeRegionPreferences

      public VirtualMachinePreferences.Builder mergeRegionPreferences(RegionPreferences value)
       Region preferences for assets using this preference set.
       If you are unsure which value to set, the migration service API region is
       often a good value to start with.
       
      .google.cloud.migrationcenter.v1.RegionPreferences region_preferences = 3;
    • clearRegionPreferences

      public VirtualMachinePreferences.Builder clearRegionPreferences()
       Region preferences for assets using this preference set.
       If you are unsure which value to set, the migration service API region is
       often a good value to start with.
       
      .google.cloud.migrationcenter.v1.RegionPreferences region_preferences = 3;
    • getRegionPreferencesBuilder

      public RegionPreferences.Builder getRegionPreferencesBuilder()
       Region preferences for assets using this preference set.
       If you are unsure which value to set, the migration service API region is
       often a good value to start with.
       
      .google.cloud.migrationcenter.v1.RegionPreferences region_preferences = 3;
    • getRegionPreferencesOrBuilder

      public RegionPreferencesOrBuilder getRegionPreferencesOrBuilder()
       Region preferences for assets using this preference set.
       If you are unsure which value to set, the migration service API region is
       often a good value to start with.
       
      .google.cloud.migrationcenter.v1.RegionPreferences region_preferences = 3;
      Specified by:
      getRegionPreferencesOrBuilder in interface VirtualMachinePreferencesOrBuilder
    • 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.CommitmentPlan commitment_plan = 4;
      Specified by:
      getCommitmentPlanValue in interface VirtualMachinePreferencesOrBuilder
      Returns:
      The enum numeric value on the wire for commitmentPlan.
    • setCommitmentPlanValue

      public VirtualMachinePreferences.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.CommitmentPlan commitment_plan = 4;
      Parameters:
      value - The enum numeric value on the wire for commitmentPlan to set.
      Returns:
      This builder for chaining.
    • getCommitmentPlan

      public 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.CommitmentPlan commitment_plan = 4;
      Specified by:
      getCommitmentPlan in interface VirtualMachinePreferencesOrBuilder
      Returns:
      The commitmentPlan.
    • setCommitmentPlan

      public VirtualMachinePreferences.Builder setCommitmentPlan(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.CommitmentPlan commitment_plan = 4;
      Parameters:
      value - The commitmentPlan to set.
      Returns:
      This builder for chaining.
    • clearCommitmentPlan

      public VirtualMachinePreferences.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.CommitmentPlan commitment_plan = 4;
      Returns:
      This builder for chaining.
    • getSizingOptimizationStrategyValue

      public int getSizingOptimizationStrategyValue()
       Sizing optimization strategy specifies the preferred strategy used when
       extrapolating usage data to calculate insights and recommendations for a
       virtual machine.
       If you are unsure which value to set, a moderate sizing optimization
       strategy is often a good value to start with.
       
      .google.cloud.migrationcenter.v1.SizingOptimizationStrategy sizing_optimization_strategy = 5;
      Specified by:
      getSizingOptimizationStrategyValue in interface VirtualMachinePreferencesOrBuilder
      Returns:
      The enum numeric value on the wire for sizingOptimizationStrategy.
    • setSizingOptimizationStrategyValue

      public VirtualMachinePreferences.Builder setSizingOptimizationStrategyValue(int value)
       Sizing optimization strategy specifies the preferred strategy used when
       extrapolating usage data to calculate insights and recommendations for a
       virtual machine.
       If you are unsure which value to set, a moderate sizing optimization
       strategy is often a good value to start with.
       
      .google.cloud.migrationcenter.v1.SizingOptimizationStrategy sizing_optimization_strategy = 5;
      Parameters:
      value - The enum numeric value on the wire for sizingOptimizationStrategy to set.
      Returns:
      This builder for chaining.
    • getSizingOptimizationStrategy

      public SizingOptimizationStrategy getSizingOptimizationStrategy()
       Sizing optimization strategy specifies the preferred strategy used when
       extrapolating usage data to calculate insights and recommendations for a
       virtual machine.
       If you are unsure which value to set, a moderate sizing optimization
       strategy is often a good value to start with.
       
      .google.cloud.migrationcenter.v1.SizingOptimizationStrategy sizing_optimization_strategy = 5;
      Specified by:
      getSizingOptimizationStrategy in interface VirtualMachinePreferencesOrBuilder
      Returns:
      The sizingOptimizationStrategy.
    • setSizingOptimizationStrategy

      public VirtualMachinePreferences.Builder setSizingOptimizationStrategy(SizingOptimizationStrategy value)
       Sizing optimization strategy specifies the preferred strategy used when
       extrapolating usage data to calculate insights and recommendations for a
       virtual machine.
       If you are unsure which value to set, a moderate sizing optimization
       strategy is often a good value to start with.
       
      .google.cloud.migrationcenter.v1.SizingOptimizationStrategy sizing_optimization_strategy = 5;
      Parameters:
      value - The sizingOptimizationStrategy to set.
      Returns:
      This builder for chaining.
    • clearSizingOptimizationStrategy

      public VirtualMachinePreferences.Builder clearSizingOptimizationStrategy()
       Sizing optimization strategy specifies the preferred strategy used when
       extrapolating usage data to calculate insights and recommendations for a
       virtual machine.
       If you are unsure which value to set, a moderate sizing optimization
       strategy is often a good value to start with.
       
      .google.cloud.migrationcenter.v1.SizingOptimizationStrategy sizing_optimization_strategy = 5;
      Returns:
      This builder for chaining.
    • hasComputeEnginePreferences

      public boolean hasComputeEnginePreferences()
       Compute Engine preferences concern insights and recommendations for Compute
       Engine target.
       
      .google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;
      Specified by:
      hasComputeEnginePreferences in interface VirtualMachinePreferencesOrBuilder
      Returns:
      Whether the computeEnginePreferences field is set.
    • getComputeEnginePreferences

      public ComputeEnginePreferences getComputeEnginePreferences()
       Compute Engine preferences concern insights and recommendations for Compute
       Engine target.
       
      .google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;
      Specified by:
      getComputeEnginePreferences in interface VirtualMachinePreferencesOrBuilder
      Returns:
      The computeEnginePreferences.
    • setComputeEnginePreferences

      public VirtualMachinePreferences.Builder setComputeEnginePreferences(ComputeEnginePreferences value)
       Compute Engine preferences concern insights and recommendations for Compute
       Engine target.
       
      .google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;
    • setComputeEnginePreferences

      public VirtualMachinePreferences.Builder setComputeEnginePreferences(ComputeEnginePreferences.Builder builderForValue)
       Compute Engine preferences concern insights and recommendations for Compute
       Engine target.
       
      .google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;
    • mergeComputeEnginePreferences

      public VirtualMachinePreferences.Builder mergeComputeEnginePreferences(ComputeEnginePreferences value)
       Compute Engine preferences concern insights and recommendations for Compute
       Engine target.
       
      .google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;
    • clearComputeEnginePreferences

      public VirtualMachinePreferences.Builder clearComputeEnginePreferences()
       Compute Engine preferences concern insights and recommendations for Compute
       Engine target.
       
      .google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;
    • getComputeEnginePreferencesBuilder

      public ComputeEnginePreferences.Builder getComputeEnginePreferencesBuilder()
       Compute Engine preferences concern insights and recommendations for Compute
       Engine target.
       
      .google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;
    • getComputeEnginePreferencesOrBuilder

      public ComputeEnginePreferencesOrBuilder getComputeEnginePreferencesOrBuilder()
       Compute Engine preferences concern insights and recommendations for Compute
       Engine target.
       
      .google.cloud.migrationcenter.v1.ComputeEnginePreferences compute_engine_preferences = 6;
      Specified by:
      getComputeEnginePreferencesOrBuilder in interface VirtualMachinePreferencesOrBuilder
    • hasVmwareEnginePreferences

      public boolean hasVmwareEnginePreferences()
       Preferences concerning insights and recommendations for
       Google Cloud VMware Engine.
       
      .google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;
      Specified by:
      hasVmwareEnginePreferences in interface VirtualMachinePreferencesOrBuilder
      Returns:
      Whether the vmwareEnginePreferences field is set.
    • getVmwareEnginePreferences

      public VmwareEnginePreferences getVmwareEnginePreferences()
       Preferences concerning insights and recommendations for
       Google Cloud VMware Engine.
       
      .google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;
      Specified by:
      getVmwareEnginePreferences in interface VirtualMachinePreferencesOrBuilder
      Returns:
      The vmwareEnginePreferences.
    • setVmwareEnginePreferences

      public VirtualMachinePreferences.Builder setVmwareEnginePreferences(VmwareEnginePreferences value)
       Preferences concerning insights and recommendations for
       Google Cloud VMware Engine.
       
      .google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;
    • setVmwareEnginePreferences

      public VirtualMachinePreferences.Builder setVmwareEnginePreferences(VmwareEnginePreferences.Builder builderForValue)
       Preferences concerning insights and recommendations for
       Google Cloud VMware Engine.
       
      .google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;
    • mergeVmwareEnginePreferences

      public VirtualMachinePreferences.Builder mergeVmwareEnginePreferences(VmwareEnginePreferences value)
       Preferences concerning insights and recommendations for
       Google Cloud VMware Engine.
       
      .google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;
    • clearVmwareEnginePreferences

      public VirtualMachinePreferences.Builder clearVmwareEnginePreferences()
       Preferences concerning insights and recommendations for
       Google Cloud VMware Engine.
       
      .google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;
    • getVmwareEnginePreferencesBuilder

      public VmwareEnginePreferences.Builder getVmwareEnginePreferencesBuilder()
       Preferences concerning insights and recommendations for
       Google Cloud VMware Engine.
       
      .google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;
    • getVmwareEnginePreferencesOrBuilder

      public VmwareEnginePreferencesOrBuilder getVmwareEnginePreferencesOrBuilder()
       Preferences concerning insights and recommendations for
       Google Cloud VMware Engine.
       
      .google.cloud.migrationcenter.v1.VmwareEnginePreferences vmware_engine_preferences = 7;
      Specified by:
      getVmwareEnginePreferencesOrBuilder in interface VirtualMachinePreferencesOrBuilder
    • hasSoleTenancyPreferences

      public boolean hasSoleTenancyPreferences()
       Preferences concerning Sole Tenant nodes and virtual machines.
       
      .google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;
      Specified by:
      hasSoleTenancyPreferences in interface VirtualMachinePreferencesOrBuilder
      Returns:
      Whether the soleTenancyPreferences field is set.
    • getSoleTenancyPreferences

      public SoleTenancyPreferences getSoleTenancyPreferences()
       Preferences concerning Sole Tenant nodes and virtual machines.
       
      .google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;
      Specified by:
      getSoleTenancyPreferences in interface VirtualMachinePreferencesOrBuilder
      Returns:
      The soleTenancyPreferences.
    • setSoleTenancyPreferences

      public VirtualMachinePreferences.Builder setSoleTenancyPreferences(SoleTenancyPreferences value)
       Preferences concerning Sole Tenant nodes and virtual machines.
       
      .google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;
    • setSoleTenancyPreferences

      public VirtualMachinePreferences.Builder setSoleTenancyPreferences(SoleTenancyPreferences.Builder builderForValue)
       Preferences concerning Sole Tenant nodes and virtual machines.
       
      .google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;
    • mergeSoleTenancyPreferences

      public VirtualMachinePreferences.Builder mergeSoleTenancyPreferences(SoleTenancyPreferences value)
       Preferences concerning Sole Tenant nodes and virtual machines.
       
      .google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;
    • clearSoleTenancyPreferences

      public VirtualMachinePreferences.Builder clearSoleTenancyPreferences()
       Preferences concerning Sole Tenant nodes and virtual machines.
       
      .google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;
    • getSoleTenancyPreferencesBuilder

      public SoleTenancyPreferences.Builder getSoleTenancyPreferencesBuilder()
       Preferences concerning Sole Tenant nodes and virtual machines.
       
      .google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;
    • getSoleTenancyPreferencesOrBuilder

      public SoleTenancyPreferencesOrBuilder getSoleTenancyPreferencesOrBuilder()
       Preferences concerning Sole Tenant nodes and virtual machines.
       
      .google.cloud.migrationcenter.v1.SoleTenancyPreferences sole_tenancy_preferences = 8;
      Specified by:
      getSoleTenancyPreferencesOrBuilder in interface VirtualMachinePreferencesOrBuilder