Class SoleTenancyPreferences (0.58.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.58.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  SoleTenancyPreferences   extends   GeneratedMessageV3   implements   SoleTenancyPreferencesOrBuilder  
   Preferences concerning Sole Tenancy nodes and VMs.
 Protobuf type google.cloud.migrationcenter.v1.SoleTenancyPreferences
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  COMMITMENT_PLAN_FIELD_NUMBER 
  
    
public   static   final   int   COMMITMENT_PLAN_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  CPU_OVERCOMMIT_RATIO_FIELD_NUMBER 
  
    
public   static   final   int   CPU_OVERCOMMIT_RATIO_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  HOST_MAINTENANCE_POLICY_FIELD_NUMBER 
  
    
public   static   final   int   HOST_MAINTENANCE_POLICY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  NODE_TYPES_FIELD_NUMBER 
  
    
public   static   final   int   NODE_TYPES_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   SoleTenancyPreferences   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   SoleTenancyPreferences . Builder   newBuilder ()  
  
  newBuilder(SoleTenancyPreferences prototype) 
  
    
public   static   SoleTenancyPreferences . Builder   newBuilder ( SoleTenancyPreferences   prototype )  
  
  
  
    
public   static   SoleTenancyPreferences   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   SoleTenancyPreferences   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   SoleTenancyPreferences   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SoleTenancyPreferences   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   SoleTenancyPreferences   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SoleTenancyPreferences   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SoleTenancyPreferences   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   SoleTenancyPreferences   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SoleTenancyPreferences   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   SoleTenancyPreferences   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   SoleTenancyPreferences   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SoleTenancyPreferences   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<SoleTenancyPreferences>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  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;
 
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;
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for commitmentPlan.
 
     
  
  getCpuOvercommitRatio() 
  
    
public   double   getCpuOvercommitRatio ()  
   CPU overcommit ratio.
 Acceptable values are between 1.0 and 2.0 inclusive.
 double cpu_overcommit_ratio = 1;
    
      
        Returns  
      
        Type Description  
      
        double The cpuOvercommitRatio.
 
     
  
  getDefaultInstanceForType() 
  
    
public   SoleTenancyPreferences   getDefaultInstanceForType ()  
  
  getHostMaintenancePolicy() 
  
    
public   SoleTenancyPreferences . HostMaintenancePolicy   getHostMaintenancePolicy ()  
   Sole Tenancy nodes maintenance policy.
 
 .google.cloud.migrationcenter.v1.SoleTenancyPreferences.HostMaintenancePolicy host_maintenance_policy = 2;
 
getHostMaintenancePolicyValue() 
  
    
public   int   getHostMaintenancePolicyValue ()  
   Sole Tenancy nodes maintenance policy.
 
 .google.cloud.migrationcenter.v1.SoleTenancyPreferences.HostMaintenancePolicy host_maintenance_policy = 2;
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for hostMaintenancePolicy.
 
     
  
  getNodeTypes(int index) 
  
    
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;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  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;
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  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;
getNodeTypesOrBuilder(int index) 
  
    
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;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  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;
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.migrationcenter.v1.SoleTenantNodeTypeOrBuilder > 
     
  
  getParserForType() 
  
    
public   Parser<SoleTenancyPreferences>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   SoleTenancyPreferences . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   SoleTenancyPreferences . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   SoleTenancyPreferences . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]