Class RewriteResponse (2.11.3) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.11.3keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   final   class  RewriteResponse   extends   GeneratedMessageV3   implements   RewriteResponseOrBuilder  
   A rewrite response.
 Protobuf type google.storage.v2.RewriteResponse
Static Fields
   
  DONE_FIELD_NUMBER 
  
    
public   static   final   int   DONE_FIELD_NUMBER  
  Field Value 
  
  OBJECT_SIZE_FIELD_NUMBER 
  
    
public   static   final   int   OBJECT_SIZE_FIELD_NUMBER  
  Field Value 
  
  RESOURCE_FIELD_NUMBER 
  
    
public   static   final   int   RESOURCE_FIELD_NUMBER  
  Field Value 
  
  REWRITE_TOKEN_FIELD_NUMBER 
  
    
public   static   final   int   REWRITE_TOKEN_FIELD_NUMBER  
  Field Value 
  
  TOTAL_BYTES_REWRITTEN_FIELD_NUMBER 
  
    
public   static   final   int   TOTAL_BYTES_REWRITTEN_FIELD_NUMBER  
  Field Value 
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   RewriteResponse   getDefaultInstance ()  
  Returns 
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  newBuilder() 
  
    
public   static   RewriteResponse . Builder   newBuilder ()  
  Returns 
  
  newBuilder(RewriteResponse prototype) 
  
    
public   static   RewriteResponse . Builder   newBuilder ( RewriteResponse   prototype )  
  Parameter 
  
  Returns 
  
  
    
public   static   RewriteResponse   parseDelimitedFrom ( InputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   RewriteResponse   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(byte[] data) 
  
    
public   static   RewriteResponse   parseFrom ( byte []   data )  
  Parameter 
  
    
      
        Name Description  
      
        data byte [] 
     
  
  Returns 
  
  Exceptions 
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   RewriteResponse   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteString data) 
  
    
public   static   RewriteResponse   parseFrom ( ByteString   data )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   RewriteResponse   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   RewriteResponse   parseFrom ( CodedInputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   RewriteResponse   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   RewriteResponse   parseFrom ( InputStream   input )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   RewriteResponse   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteBuffer data) 
  
    
public   static   RewriteResponse   parseFrom ( ByteBuffer   data )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   RewriteResponse   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parser() 
  
    
public   static   Parser<RewriteResponse>   parser ()  
  Returns 
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   RewriteResponse   getDefaultInstanceForType ()  
  Returns 
  
  getDone() 
  
   true if the copy is finished; otherwise, false if
 the copy is in progress. This property is always present in the response.
 bool done = 3;
Returns 
  
  getObjectSize() 
  
    
public   long   getObjectSize ()  
   The total size of the object being copied in bytes. This property is always
 present in the response.
 int64 object_size = 2;
Returns 
  
    
      
        Type Description  
      
        long The objectSize.
 
     
  
  getParserForType() 
  
    
public   Parser<RewriteResponse>   getParserForType ()  
  Returns 
  
  Overrides 
  
  getResource() 
  
    
public   Object   getResource ()  
   A resource containing the metadata for the copied-to object. This property
 is present in the response only when copying completes.
 .google.storage.v2.Object resource = 5;
Returns 
  
    
      
        Type Description  
      
        Object The resource.
 
     
  
  getResourceOrBuilder() 
  
    
public   ObjectOrBuilder   getResourceOrBuilder ()  
   A resource containing the metadata for the copied-to object. This property
 is present in the response only when copying completes.
 .google.storage.v2.Object resource = 5;
Returns 
  
  getRewriteToken() 
  
    
public   String   getRewriteToken ()  
   A token to use in subsequent requests to continue copying data. This token
 is present in the response only when there is more data to copy.
 string rewrite_token = 4;
Returns 
  
    
      
        Type Description  
      
        String The rewriteToken.
 
     
  
  getRewriteTokenBytes() 
  
    
public   ByteString   getRewriteTokenBytes ()  
   A token to use in subsequent requests to continue copying data. This token
 is present in the response only when there is more data to copy.
 string rewrite_token = 4;
Returns 
  
    
      
        Type Description  
      
        ByteString The bytes for rewriteToken.
 
     
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  Returns 
  
  Overrides 
  
  getTotalBytesRewritten() 
  
    
public   long   getTotalBytesRewritten ()  
   The total bytes written so far, which can be used to provide a waiting user
 with a progress indicator. This property is always present in the response.
 int64 total_bytes_rewritten = 1;
Returns 
  
    
      
        Type Description  
      
        long The totalBytesRewritten.
 
     
  
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
  Returns 
  
  Overrides 
  
  hasResource() 
  
    
public   boolean   hasResource ()  
   A resource containing the metadata for the copied-to object. This property
 is present in the response only when copying completes.
 .google.storage.v2.Object resource = 5;
Returns 
  
    
      
        Type Description  
      
        boolean Whether the resource field is set.
 
     
  
  hashCode() 
  
  Returns 
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  newBuilderForType() 
  
    
public   RewriteResponse . Builder   newBuilderForType ()  
  Returns 
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   RewriteResponse . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  toBuilder() 
  
    
public   RewriteResponse . 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-29 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-29 UTC."],[],[]]