Class WriteObjectResponse.Builder (2.1.10) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.1.10keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   static   final   class  WriteObjectResponse . Builder   extends   GeneratedMessageV3 . Builder<WriteObjectResponse . Builder >  implements   WriteObjectResponseOrBuilder  
   Response message for WriteObject.
 Protobuf type google.storage.v2.WriteObjectResponse
Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   WriteObjectResponse . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  build() 
  
    
public   WriteObjectResponse   build ()  
  Returns 
  
  buildPartial() 
  
    
public   WriteObjectResponse   buildPartial ()  
  Returns 
  
  clear() 
  
    
public   WriteObjectResponse . Builder   clear ()  
  Returns 
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   WriteObjectResponse . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   WriteObjectResponse . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  clearPersistedSize() 
  
    
public   WriteObjectResponse . Builder   clearPersistedSize ()  
   The total number of bytes that have been processed for the given object
 from all WriteObject calls. Only set if the upload has not finalized.
 int64 persisted_size = 1;
Returns 
  
  clearResource() 
  
    
public   WriteObjectResponse . Builder   clearResource ()  
   A resource containing the metadata for the uploaded object. Only set if
 the upload has finalized.
 .google.storage.v2.Object resource = 2;
Returns 
  
  clearWriteStatus() 
  
    
public   WriteObjectResponse . Builder   clearWriteStatus ()  
  Returns 
  
  clone() 
  
    
public   WriteObjectResponse . Builder   clone ()  
  Returns 
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   WriteObjectResponse   getDefaultInstanceForType ()  
  Returns 
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  Returns 
  
  Overrides 
  
  getPersistedSize() 
  
    
public   long   getPersistedSize ()  
   The total number of bytes that have been processed for the given object
 from all WriteObject calls. Only set if the upload has not finalized.
 int64 persisted_size = 1;
Returns 
  
    
      
        Type Description  
      
        long The persistedSize.
 
     
  
  getResource() 
  
    
public   Object   getResource ()  
   A resource containing the metadata for the uploaded object. Only set if
 the upload has finalized.
 .google.storage.v2.Object resource = 2;
Returns 
  
    
      
        Type Description  
      
        Object The resource.
 
     
  
  getResourceBuilder() 
  
    
public   Object . Builder   getResourceBuilder ()  
   A resource containing the metadata for the uploaded object. Only set if
 the upload has finalized.
 .google.storage.v2.Object resource = 2;
Returns 
  
  getResourceOrBuilder() 
  
    
public   ObjectOrBuilder   getResourceOrBuilder ()  
   A resource containing the metadata for the uploaded object. Only set if
 the upload has finalized.
 .google.storage.v2.Object resource = 2;
Returns 
  
  getWriteStatusCase() 
  
    
public   WriteObjectResponse . WriteStatusCase   getWriteStatusCase ()  
  Returns 
  
  hasPersistedSize() 
  
    
public   boolean   hasPersistedSize ()  
   The total number of bytes that have been processed for the given object
 from all WriteObject calls. Only set if the upload has not finalized.
 int64 persisted_size = 1;
Returns 
  
    
      
        Type Description  
      
        boolean Whether the persistedSize field is set.
 
     
  
  hasResource() 
  
    
public   boolean   hasResource ()  
   A resource containing the metadata for the uploaded object. Only set if
 the upload has finalized.
 .google.storage.v2.Object resource = 2;
Returns 
  
    
      
        Type Description  
      
        boolean Whether the resource field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  
    
public   WriteObjectResponse . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  Exceptions 
  
  mergeFrom(Message other) 
  
    
public   WriteObjectResponse . Builder   mergeFrom ( Message   other )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  mergeFrom(WriteObjectResponse other) 
  
    
public   WriteObjectResponse . Builder   mergeFrom ( WriteObjectResponse   other )  
  Parameter 
  
  Returns 
  
  mergeResource(Object value) 
  
    
public   WriteObjectResponse . Builder   mergeResource ( Object   value )  
   A resource containing the metadata for the uploaded object. Only set if
 the upload has finalized.
 .google.storage.v2.Object resource = 2;
Parameter 
  
  Returns 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   WriteObjectResponse . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   WriteObjectResponse . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  setPersistedSize(long value) 
  
    
public   WriteObjectResponse . Builder   setPersistedSize ( long   value )  
   The total number of bytes that have been processed for the given object
 from all WriteObject calls. Only set if the upload has not finalized.
 int64 persisted_size = 1;
Parameter 
  
    
      
        Name Description  
      
        value long The persistedSize to set.
 
     
  
  Returns 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   WriteObjectResponse . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  setResource(Object value) 
  
    
public   WriteObjectResponse . Builder   setResource ( Object   value )  
   A resource containing the metadata for the uploaded object. Only set if
 the upload has finalized.
 .google.storage.v2.Object resource = 2;
Parameter 
  
  Returns 
  
  setResource(Object.Builder builderForValue) 
  
    
public   WriteObjectResponse . Builder   setResource ( Object . Builder   builderForValue )  
   A resource containing the metadata for the uploaded object. Only set if
 the upload has finalized.
 .google.storage.v2.Object resource = 2;
Parameter 
  
  Returns 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   WriteObjectResponse . 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."],[],[]]