Class HorizontalPodAutoscaling.Builder (2.15.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.15.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  HorizontalPodAutoscaling . Builder   extends   GeneratedMessageV3 . Builder<HorizontalPodAutoscaling . Builder >  implements   HorizontalPodAutoscalingOrBuilder  
   Configuration options for the horizontal pod autoscaling feature, which
 increases or decreases the number of replica pods a replication controller
 has based on the resource usage of the existing pods.
 Protobuf type google.container.v1.HorizontalPodAutoscaling
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   HorizontalPodAutoscaling . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  build() 
  
    
public   HorizontalPodAutoscaling   build ()  
  Returns 
  
  buildPartial() 
  
    
public   HorizontalPodAutoscaling   buildPartial ()  
  Returns 
  
  clear() 
  
    
public   HorizontalPodAutoscaling . Builder   clear ()  
  Returns 
  
  Overrides 
  
  clearDisabled() 
  
    
public   HorizontalPodAutoscaling . Builder   clearDisabled ()  
   Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
 When enabled, it ensures that metrics are collected into Stackdriver
 Monitoring.
 bool disabled = 1;
Returns 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   HorizontalPodAutoscaling . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   HorizontalPodAutoscaling . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  clone() 
  
    
public   HorizontalPodAutoscaling . Builder   clone ()  
  Returns 
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   HorizontalPodAutoscaling   getDefaultInstanceForType ()  
  Returns 
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  Returns 
  
  Overrides 
  
  getDisabled() 
  
    
public   boolean   getDisabled ()  
   Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
 When enabled, it ensures that metrics are collected into Stackdriver
 Monitoring.
 bool disabled = 1;
Returns 
  
    
      
        Type Description  
      
        boolean The disabled.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  mergeFrom(HorizontalPodAutoscaling other) 
  
    
public   HorizontalPodAutoscaling . Builder   mergeFrom ( HorizontalPodAutoscaling   other )  
  Parameter 
  
  Returns 
  
  
    
public   HorizontalPodAutoscaling . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  Exceptions 
  
  mergeFrom(Message other) 
  
    
public   HorizontalPodAutoscaling . Builder   mergeFrom ( Message   other )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   HorizontalPodAutoscaling . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  setDisabled(boolean value) 
  
    
public   HorizontalPodAutoscaling . Builder   setDisabled ( boolean   value )  
   Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
 When enabled, it ensures that metrics are collected into Stackdriver
 Monitoring.
 bool disabled = 1;
Parameter 
  
    
      
        Name Description  
      
        valueboolean The disabled to set.
 
     
  
  Returns 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   HorizontalPodAutoscaling . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   HorizontalPodAutoscaling . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   HorizontalPodAutoscaling . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  Parameter 
  
  Returns 
  
  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."],[],[]]