Class SoleTenancyPreferences

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.migrationcenter.v1.SoleTenancyPreferences
All Implemented Interfaces:
SoleTenancyPreferencesOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SoleTenancyPreferences extends com.google.protobuf.GeneratedMessage implements SoleTenancyPreferencesOrBuilder
 Preferences concerning Sole Tenancy nodes and VMs.
 
Protobuf type google.cloud.migrationcenter.v1.SoleTenancyPreferences
See Also:
  • Field Details

    • CPU_OVERCOMMIT_RATIO_FIELD_NUMBER

      public static final int CPU_OVERCOMMIT_RATIO_FIELD_NUMBER
      See Also:
    • HOST_MAINTENANCE_POLICY_FIELD_NUMBER

      public static final int HOST_MAINTENANCE_POLICY_FIELD_NUMBER
      See Also:
    • COMMITMENT_PLAN_FIELD_NUMBER

      public static final int COMMITMENT_PLAN_FIELD_NUMBER
      See Also:
    • NODE_TYPES_FIELD_NUMBER

      public static final int NODE_TYPES_FIELD_NUMBER
      See Also:
  • 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
    • getCpuOvercommitRatio

      public double getCpuOvercommitRatio()
       CPU overcommit ratio.
       Acceptable values are between 1.0 and 2.0 inclusive.
       
      double cpu_overcommit_ratio = 1;
      Specified by:
      getCpuOvercommitRatio in interface SoleTenancyPreferencesOrBuilder
      Returns:
      The cpuOvercommitRatio.
    • getHostMaintenancePolicyValue

      public int getHostMaintenancePolicyValue()
       Sole Tenancy nodes maintenance policy.
       
      .google.cloud.migrationcenter.v1.SoleTenancyPreferences.HostMaintenancePolicy host_maintenance_policy = 2;
      Specified by:
      getHostMaintenancePolicyValue in interface SoleTenancyPreferencesOrBuilder
      Returns:
      The enum numeric value on the wire for hostMaintenancePolicy.
    • getHostMaintenancePolicy

      public SoleTenancyPreferences.HostMaintenancePolicy getHostMaintenancePolicy()
       Sole Tenancy nodes maintenance policy.
       
      .google.cloud.migrationcenter.v1.SoleTenancyPreferences.HostMaintenancePolicy host_maintenance_policy = 2;
      Specified by:
      getHostMaintenancePolicy in interface SoleTenancyPreferencesOrBuilder
      Returns:
      The hostMaintenancePolicy.
    • 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.SoleTenancyPreferences.CommitmentPlan commitment_plan = 3;
      Specified by:
      getCommitmentPlanValue in interface SoleTenancyPreferencesOrBuilder
      Returns:
      The enum numeric value on the wire for commitmentPlan.
    • getCommitmentPlan

      public SoleTenancyPreferences.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.SoleTenancyPreferences.CommitmentPlan commitment_plan = 3;
      Specified by:
      getCommitmentPlan in interface SoleTenancyPreferencesOrBuilder
      Returns:
      The commitmentPlan.
    • getNodeTypesList

      public List<SoleTenantNodeType> getNodeTypesList()
       A list of sole tenant node types.
       An empty list means that all possible node types will be considered.
       
      repeated .google.cloud.migrationcenter.v1.SoleTenantNodeType node_types = 4;
      Specified by:
      getNodeTypesList in interface SoleTenancyPreferencesOrBuilder
    • getNodeTypesOrBuilderList

      public List<? extends SoleTenantNodeTypeOrBuilder> getNodeTypesOrBuilderList()
       A list of sole tenant node types.
       An empty list means that all possible node types will be considered.
       
      repeated .google.cloud.migrationcenter.v1.SoleTenantNodeType node_types = 4;
      Specified by:
      getNodeTypesOrBuilderList in interface SoleTenancyPreferencesOrBuilder
    • getNodeTypesCount

      public int getNodeTypesCount()
       A list of sole tenant node types.
       An empty list means that all possible node types will be considered.
       
      repeated .google.cloud.migrationcenter.v1.SoleTenantNodeType node_types = 4;
      Specified by:
      getNodeTypesCount in interface SoleTenancyPreferencesOrBuilder
    • getNodeTypes

      public SoleTenantNodeType getNodeTypes(int index)
       A list of sole tenant node types.
       An empty list means that all possible node types will be considered.
       
      repeated .google.cloud.migrationcenter.v1.SoleTenantNodeType node_types = 4;
      Specified by:
      getNodeTypes in interface SoleTenancyPreferencesOrBuilder
    • getNodeTypesOrBuilder

      public SoleTenantNodeTypeOrBuilder getNodeTypesOrBuilder(int index)
       A list of sole tenant node types.
       An empty list means that all possible node types will be considered.
       
      repeated .google.cloud.migrationcenter.v1.SoleTenantNodeType node_types = 4;
      Specified by:
      getNodeTypesOrBuilder in interface SoleTenancyPreferencesOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 SoleTenancyPreferences parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static SoleTenancyPreferences parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SoleTenancyPreferences parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SoleTenancyPreferences parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SoleTenancyPreferences parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SoleTenancyPreferences parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SoleTenancyPreferences parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static SoleTenancyPreferences.Builder newBuilder()
    • newBuilder

      public static SoleTenancyPreferences.Builder newBuilder(SoleTenancyPreferences prototype)
    • toBuilder

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

      protected SoleTenancyPreferences.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SoleTenancyPreferences getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SoleTenancyPreferences> parser()
    • getParserForType

      public com.google.protobuf.Parser<SoleTenancyPreferences> 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.GeneratedMessage
    • getDefaultInstanceForType

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