Class StatefulPolicyPreservedState.Builder (1.11.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.11.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  StatefulPolicyPreservedState . Builder   extends   GeneratedMessageV3 . Builder<StatefulPolicyPreservedState . Builder >  implements   StatefulPolicyPreservedStateOrBuilder  
   Configuration of preserved resources.
 Protobuf type google.cloud.compute.v1.StatefulPolicyPreservedState
Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   StatefulPolicyPreservedState . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  build() 
  
    
public   StatefulPolicyPreservedState   build ()  
  Returns 
  
  buildPartial() 
  
    
public   StatefulPolicyPreservedState   buildPartial ()  
  Returns 
  
  clear() 
  
    
public   StatefulPolicyPreservedState . Builder   clear ()  
  Returns 
  
  Overrides 
  
  clearDisks() 
  
    
public   StatefulPolicyPreservedState . Builder   clearDisks ()  
  Returns 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   StatefulPolicyPreservedState . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   StatefulPolicyPreservedState . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  clone() 
  
    
public   StatefulPolicyPreservedState . Builder   clone ()  
  Returns 
  
  Overrides 
  
  containsDisks(String key) 
  
    
public   boolean   containsDisks ( String   key )  
   Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
 
 map<string, .google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice> disks = 95594102;
 
Parameter 
  
  Returns 
  
  getDefaultInstanceForType() 
  
    
public   StatefulPolicyPreservedState   getDefaultInstanceForType ()  
  Returns 
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  Returns 
  
  Overrides 
  
  getDisks() 
  
    
public   Map<String , StatefulPolicyPreservedStateDiskDevice >  getDisks ()  
  
  Returns 
  
  getDisksCount() 
  
    
public   int   getDisksCount ()  
   Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
 
 map<string, .google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice> disks = 95594102;
 
Returns 
  
  getDisksMap() 
  
    
public   Map<String , StatefulPolicyPreservedStateDiskDevice >  getDisksMap ()  
   Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
 
 map<string, .google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice> disks = 95594102;
 
Returns 
  
  getDisksOrDefault(String key, StatefulPolicyPreservedStateDiskDevice defaultValue) 
  
    
public   StatefulPolicyPreservedStateDiskDevice   getDisksOrDefault ( String   key ,   StatefulPolicyPreservedStateDiskDevice   defaultValue )  
   Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
 
 map<string, .google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice> disks = 95594102;
 
Parameters 
  
  Returns 
  
  getDisksOrThrow(String key) 
  
    
public   StatefulPolicyPreservedStateDiskDevice   getDisksOrThrow ( String   key )  
   Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
 
 map<string, .google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice> disks = 95594102;
 
Parameter 
  
  Returns 
  
  getMutableDisks() 
  
    
public   Map<String , StatefulPolicyPreservedStateDiskDevice >  getMutableDisks ()  
  Use alternate mutation accessors instead.
Returns 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  internalGetMapField(int number) 
  
    
protected   MapField   internalGetMapField ( int   number )  
  Parameter 
  
    
      
        Name Description  
      
        number int  
     
  
  Returns 
  
  Overrides 
  
  internalGetMutableMapField(int number) 
  
    
protected   MapField   internalGetMutableMapField ( int   number )  
  Parameter 
  
    
      
        Name Description  
      
        number int  
     
  
  Returns 
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  mergeFrom(StatefulPolicyPreservedState other) 
  
    
public   StatefulPolicyPreservedState . Builder   mergeFrom ( StatefulPolicyPreservedState   other )  
  Parameter 
  
  Returns 
  
  
    
public   StatefulPolicyPreservedState . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  Exceptions 
  
  mergeFrom(Message other) 
  
    
public   StatefulPolicyPreservedState . Builder   mergeFrom ( Message   other )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   StatefulPolicyPreservedState . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  putAllDisks(Map<String,StatefulPolicyPreservedStateDiskDevice> values) 
  
    
public   StatefulPolicyPreservedState . Builder   putAllDisks ( Map<String , StatefulPolicyPreservedStateDiskDevice >  values )  
   Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
 
 map<string, .google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice> disks = 95594102;
 
Parameter 
  
  Returns 
  
  putDisks(String key, StatefulPolicyPreservedStateDiskDevice value) 
  
    
public   StatefulPolicyPreservedState . Builder   putDisks ( String   key ,   StatefulPolicyPreservedStateDiskDevice   value )  
   Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
 
 map<string, .google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice> disks = 95594102;
 
Parameters 
  
  Returns 
  
  removeDisks(String key) 
  
    
public   StatefulPolicyPreservedState . Builder   removeDisks ( String   key )  
   Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
 
 map<string, .google.cloud.compute.v1.StatefulPolicyPreservedStateDiskDevice> disks = 95594102;
 
Parameter 
  
  Returns 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   StatefulPolicyPreservedState . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   StatefulPolicyPreservedState . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   StatefulPolicyPreservedState . 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-11 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-11 UTC."],[],[]]