Class SoleTenantConfig (2.79.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.79.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  SoleTenantConfig   extends   GeneratedMessageV3   implements   SoleTenantConfigOrBuilder  
   SoleTenantConfig contains the NodeAffinities to specify what shared sole
 tenant node groups should back the node pool.
 Protobuf type google.container.v1.SoleTenantConfig
    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
   
  MIN_NODE_CPUS_FIELD_NUMBER 
  
    
public   static   final   int   MIN_NODE_CPUS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  NODE_AFFINITIES_FIELD_NUMBER 
  
    
public   static   final   int   NODE_AFFINITIES_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   SoleTenantConfig   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   SoleTenantConfig . Builder   newBuilder ()  
  
  newBuilder(SoleTenantConfig prototype) 
  
    
public   static   SoleTenantConfig . Builder   newBuilder ( SoleTenantConfig   prototype )  
  
  
  
    
public   static   SoleTenantConfig   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   SoleTenantConfig   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   SoleTenantConfig   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SoleTenantConfig   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   SoleTenantConfig   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SoleTenantConfig   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SoleTenantConfig   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   SoleTenantConfig   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SoleTenantConfig   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   SoleTenantConfig   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   SoleTenantConfig   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SoleTenantConfig   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<SoleTenantConfig>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   SoleTenantConfig   getDefaultInstanceForType ()  
  
  getMinNodeCpus() 
  
    
public   int   getMinNodeCpus ()  
   Optional. The minimum number of virtual CPUs this instance will consume
 when running on a sole-tenant node. This field can only be set if the node
 pool is created in a shared sole-tenant node group.
 optional int32 min_node_cpus = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        int The minNodeCpus.
 
     
  
  getNodeAffinities(int index) 
  
    
public   SoleTenantConfig . NodeAffinity   getNodeAffinities ( int   index )  
   NodeAffinities used to match to a shared sole tenant node group.
 repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getNodeAffinitiesCount() 
  
    
public   int   getNodeAffinitiesCount ()  
   NodeAffinities used to match to a shared sole tenant node group.
 repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1;
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getNodeAffinitiesList() 
  
    
public   List<SoleTenantConfig . NodeAffinity >  getNodeAffinitiesList ()  
   NodeAffinities used to match to a shared sole tenant node group.
 repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1;
getNodeAffinitiesOrBuilder(int index) 
  
    
public   SoleTenantConfig . NodeAffinityOrBuilder   getNodeAffinitiesOrBuilder ( int   index )  
   NodeAffinities used to match to a shared sole tenant node group.
 repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getNodeAffinitiesOrBuilderList() 
  
    
public   List <?   extends   SoleTenantConfig . NodeAffinityOrBuilder >  getNodeAffinitiesOrBuilderList ()  
   NodeAffinities used to match to a shared sole tenant node group.
 repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1;
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder > 
     
  
  getParserForType() 
  
    
public   Parser<SoleTenantConfig>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  hasMinNodeCpus() 
  
    
public   boolean   hasMinNodeCpus ()  
   Optional. The minimum number of virtual CPUs this instance will consume
 when running on a sole-tenant node. This field can only be set if the node
 pool is created in a shared sole-tenant node group.
 optional int32 min_node_cpus = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the minNodeCpus field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   SoleTenantConfig . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   SoleTenantConfig . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   SoleTenantConfig . 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-28 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-28 UTC."],[],[]]