Send feedback
  
   
 
  
    
      Class SchedulingOnInstanceStopAction.Builder (1.88.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  SchedulingOnInstanceStopAction . Builder   extends   GeneratedMessageV3 . Builder<SchedulingOnInstanceStopAction . Builder >  implements   SchedulingOnInstanceStopActionOrBuilder  
   Defines the behaviour for instances with the instance_termination_action STOP.
 Protobuf type google.cloud.compute.v1.SchedulingOnInstanceStopAction
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      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 ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   SchedulingOnInstanceStopAction . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   SchedulingOnInstanceStopAction   build ()  
  
  buildPartial() 
  
    
public   SchedulingOnInstanceStopAction   buildPartial ()  
  
  clear() 
  
    
public   SchedulingOnInstanceStopAction . Builder   clear ()  
  
  Overrides 
  
  clearDiscardLocalSsd() 
  
    
public   SchedulingOnInstanceStopAction . Builder   clearDiscardLocalSsd ()  
   If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time.
 optional bool discard_local_ssd = 319517903;
clearField(Descriptors.FieldDescriptor field) 
  
    
public   SchedulingOnInstanceStopAction . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   SchedulingOnInstanceStopAction . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clone() 
  
    
public   SchedulingOnInstanceStopAction . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   SchedulingOnInstanceStopAction   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getDiscardLocalSsd() 
  
    
public   boolean   getDiscardLocalSsd ()  
   If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time.
 optional bool discard_local_ssd = 319517903;
    
      
        Returns  
      
        Type Description  
      
        boolean The discardLocalSsd.
 
     
  
  hasDiscardLocalSsd() 
  
    
public   boolean   hasDiscardLocalSsd ()  
   If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time.
 optional bool discard_local_ssd = 319517903;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the discardLocalSsd field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(SchedulingOnInstanceStopAction other) 
  
    
public   SchedulingOnInstanceStopAction . Builder   mergeFrom ( SchedulingOnInstanceStopAction   other )  
  
  
  
    
public   SchedulingOnInstanceStopAction . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   SchedulingOnInstanceStopAction . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   SchedulingOnInstanceStopAction . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setDiscardLocalSsd(boolean value) 
  
    
public   SchedulingOnInstanceStopAction . Builder   setDiscardLocalSsd ( boolean   value )  
   If true, the contents of any attached Local SSD disks will be discarded else, the Local SSD data will be preserved when the instance is stopped at the end of the run duration/termination time.
 optional bool discard_local_ssd = 319517903;
    
      
        Parameter  
      
        Name Description  
      
        valueboolean The discardLocalSsd to set.
 
     
  
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   SchedulingOnInstanceStopAction . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   SchedulingOnInstanceStopAction . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   SchedulingOnInstanceStopAction . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]