Class VirtualMachinePreferences

  • All Implemented Interfaces:
    VirtualMachinePreferencesOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class VirtualMachinePreferences
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Field Detail

      • REGION_PREFERENCES_FIELD_NUMBER

        public static final int REGION_PREFERENCES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COMMITMENT_PLAN_FIELD_NUMBER

        public static final int COMMITMENT_PLAN_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SIZING_OPTIMIZATION_STRATEGY_FIELD_NUMBER

        public static final int SIZING_OPTIMIZATION_STRATEGY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COMPUTE_ENGINE_PREFERENCES_FIELD_NUMBER

        public static final int COMPUTE_ENGINE_PREFERENCES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static VirtualMachinePreferences parseFrom​(ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VirtualMachinePreferences parseFrom​(ByteBuffer data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VirtualMachinePreferences parseFrom​(com.google.protobuf.ByteString data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VirtualMachinePreferences parseFrom​(com.google.protobuf.ByteString data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VirtualMachinePreferences parseFrom​(byte[] data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VirtualMachinePreferences parseFrom​(byte[] data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected VirtualMachinePreferences.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<VirtualMachinePreferences> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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