Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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
      • setRepeatedField

        public VirtualMachinePreferences.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachinePreferences.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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;
      • 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.
      • 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;
      • setUnknownFields

        public final VirtualMachinePreferences.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachinePreferences.Builder>
      • mergeUnknownFields

        public final VirtualMachinePreferences.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachinePreferences.Builder>