Class ClusterAutoscaling (2.10.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.10.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  ClusterAutoscaling   extends   GeneratedMessageV3   implements   ClusterAutoscalingOrBuilder  
   ClusterAutoscaling contains global, per-cluster information
 required by Cluster Autoscaler to automatically adjust
 the size of the cluster and create/delete
 node pools based on the current needs.
 Protobuf type google.container.v1beta1.ClusterAutoscaling
Static Fields
   
  AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER 
  
    
public   static   final   int   AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER  
  Field Value 
  
  AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER 
  
    
public   static   final   int   AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER  
  Field Value 
  
  AUTOSCALING_PROFILE_FIELD_NUMBER 
  
    
public   static   final   int   AUTOSCALING_PROFILE_FIELD_NUMBER  
  Field Value 
  
  ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER 
  
    
public   static   final   int   ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER  
  Field Value 
  
  RESOURCE_LIMITS_FIELD_NUMBER 
  
    
public   static   final   int   RESOURCE_LIMITS_FIELD_NUMBER  
  Field Value 
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   ClusterAutoscaling   getDefaultInstance ()  
  Returns 
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  newBuilder() 
  
    
public   static   ClusterAutoscaling . Builder   newBuilder ()  
  Returns 
  
  newBuilder(ClusterAutoscaling prototype) 
  
    
public   static   ClusterAutoscaling . Builder   newBuilder ( ClusterAutoscaling   prototype )  
  Parameter 
  
  Returns 
  
  
    
public   static   ClusterAutoscaling   parseDelimitedFrom ( InputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   ClusterAutoscaling   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(byte[] data) 
  
    
public   static   ClusterAutoscaling   parseFrom ( byte []   data )  
  Parameter 
  
    
      
        Name Description  
      
        data byte [] 
     
  
  Returns 
  
  Exceptions 
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ClusterAutoscaling   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteString data) 
  
    
public   static   ClusterAutoscaling   parseFrom ( ByteString   data )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ClusterAutoscaling   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   ClusterAutoscaling   parseFrom ( CodedInputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   ClusterAutoscaling   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   ClusterAutoscaling   parseFrom ( InputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   ClusterAutoscaling   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteBuffer data) 
  
    
public   static   ClusterAutoscaling   parseFrom ( ByteBuffer   data )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ClusterAutoscaling   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parser() 
  
    
public   static   Parser<ClusterAutoscaling>   parser ()  
  Returns 
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  getAutoprovisioningLocations(int index) 
  
    
public   String   getAutoprovisioningLocations ( int   index )  
   The list of Google Compute Engine
 zones  in which the
 NodePool's nodes can be created by NAP.
 repeated string autoprovisioning_locations = 5;
Parameter 
  
    
      
        Name Description  
      
        index int The index of the element to return.
 
     
  
  Returns 
  
    
      
        Type Description  
      
        String The autoprovisioningLocations at the given index.
 
     
  
  getAutoprovisioningLocationsBytes(int index) 
  
    
public   ByteString   getAutoprovisioningLocationsBytes ( int   index )  
   The list of Google Compute Engine
 zones  in which the
 NodePool's nodes can be created by NAP.
 repeated string autoprovisioning_locations = 5;
Parameter 
  
    
      
        Name Description  
      
        index int The index of the value to return.
 
     
  
  Returns 
  
    
      
        Type Description  
      
        ByteString The bytes of the autoprovisioningLocations at the given index.
 
     
  
  getAutoprovisioningLocationsCount() 
  
    
public   int   getAutoprovisioningLocationsCount ()  
   The list of Google Compute Engine
 zones  in which the
 NodePool's nodes can be created by NAP.
 repeated string autoprovisioning_locations = 5;
Returns 
  
    
      
        Type Description  
      
        int The count of autoprovisioningLocations.
 
     
  
  getAutoprovisioningLocationsList() 
  
    
public   ProtocolStringList   getAutoprovisioningLocationsList ()  
   The list of Google Compute Engine
 zones  in which the
 NodePool's nodes can be created by NAP.
 repeated string autoprovisioning_locations = 5;
Returns 
  
  getAutoprovisioningNodePoolDefaults() 
  
    
public   AutoprovisioningNodePoolDefaults   getAutoprovisioningNodePoolDefaults ()  
   AutoprovisioningNodePoolDefaults contains defaults for a node pool
 created by NAP.
 
 .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
 
Returns 
  
  getAutoprovisioningNodePoolDefaultsOrBuilder() 
  
    
public   AutoprovisioningNodePoolDefaultsOrBuilder   getAutoprovisioningNodePoolDefaultsOrBuilder ()  
   AutoprovisioningNodePoolDefaults contains defaults for a node pool
 created by NAP.
 
 .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
 
Returns 
  
  getAutoscalingProfile() 
  
    
public   ClusterAutoscaling . AutoscalingProfile   getAutoscalingProfile ()  
   Defines autoscaling behaviour.
 .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;
 
Returns 
  
  getAutoscalingProfileValue() 
  
    
public   int   getAutoscalingProfileValue ()  
   Defines autoscaling behaviour.
 .google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;
 
Returns 
  
    
      
        Type Description  
      
        int The enum numeric value on the wire for autoscalingProfile.
 
     
  
  getDefaultInstanceForType() 
  
    
public   ClusterAutoscaling   getDefaultInstanceForType ()  
  Returns 
  
  getEnableNodeAutoprovisioning() 
  
    
public   boolean   getEnableNodeAutoprovisioning ()  
   Enables automatic node pool creation and deletion.
 bool enable_node_autoprovisioning = 1;
Returns 
  
    
      
        Type Description  
      
        boolean The enableNodeAutoprovisioning.
 
     
  
  getParserForType() 
  
    
public   Parser<ClusterAutoscaling>   getParserForType ()  
  Returns 
  
  Overrides 
  
  getResourceLimits(int index) 
  
    
public   ResourceLimit   getResourceLimits ( int   index )  
   Contains global constraints regarding minimum and maximum
 amount of resources in the cluster.
 repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  getResourceLimitsCount() 
  
    
public   int   getResourceLimitsCount ()  
   Contains global constraints regarding minimum and maximum
 amount of resources in the cluster.
 repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Returns 
  
  getResourceLimitsList() 
  
    
public   List<ResourceLimit>   getResourceLimitsList ()  
   Contains global constraints regarding minimum and maximum
 amount of resources in the cluster.
 repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Returns 
  
  getResourceLimitsOrBuilder(int index) 
  
    
public   ResourceLimitOrBuilder   getResourceLimitsOrBuilder ( int   index )  
   Contains global constraints regarding minimum and maximum
 amount of resources in the cluster.
 repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  getResourceLimitsOrBuilderList() 
  
    
public   List <?   extends   ResourceLimitOrBuilder >  getResourceLimitsOrBuilderList ()  
   Contains global constraints regarding minimum and maximum
 amount of resources in the cluster.
 repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Returns 
  
    
      
        Type Description  
      
        List <? extends com.google.container.v1beta1.ResourceLimitOrBuilder > 
     
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  Returns 
  
  Overrides 
  
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
  Returns 
  
  Overrides 
  
  hasAutoprovisioningNodePoolDefaults() 
  
    
public   boolean   hasAutoprovisioningNodePoolDefaults ()  
   AutoprovisioningNodePoolDefaults contains defaults for a node pool
 created by NAP.
 
 .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
 
Returns 
  
    
      
        Type Description  
      
        boolean Whether the autoprovisioningNodePoolDefaults field is set.
 
     
  
  hashCode() 
  
  Returns 
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  newBuilderForType() 
  
    
public   ClusterAutoscaling . Builder   newBuilderForType ()  
  Returns 
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   ClusterAutoscaling . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  toBuilder() 
  
    
public   ClusterAutoscaling . Builder   toBuilder ()  
  Returns 
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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."],[],[]]