Send feedback
Class RewriteResponse (2.22.3)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.22.3 keyboard_arrow_down
public final class RewriteResponse extends GeneratedMessageV3 implements RewriteResponseOrBuilder
A rewrite response.
Protobuf type google.storage.v2.RewriteResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
DONE_FIELD_NUMBER
public static final int DONE_FIELD_NUMBER
Field Value Type Description int
OBJECT_SIZE_FIELD_NUMBER
public static final int OBJECT_SIZE_FIELD_NUMBER
Field Value Type Description int
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
Field Value Type Description int
REWRITE_TOKEN_FIELD_NUMBER
public static final int REWRITE_TOKEN_FIELD_NUMBER
Field Value Type Description int
TOTAL_BYTES_REWRITTEN_FIELD_NUMBER
public static final int TOTAL_BYTES_REWRITTEN_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static RewriteResponse getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static RewriteResponse . Builder newBuilder ()
newBuilder(RewriteResponse prototype)
public static RewriteResponse . Builder newBuilder ( RewriteResponse prototype )
public static RewriteResponse parseDelimitedFrom ( InputStream input )
public static RewriteResponse parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static RewriteResponse parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RewriteResponse parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static RewriteResponse parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RewriteResponse parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static RewriteResponse parseFrom ( CodedInputStream input )
public static RewriteResponse parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static RewriteResponse parseFrom ( InputStream input )
public static RewriteResponse parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static RewriteResponse parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RewriteResponse parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<RewriteResponse> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getDefaultInstanceForType()
public RewriteResponse getDefaultInstanceForType ()
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 Type Description boolean
The done.
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 ()
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;
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 Type Description int
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 ()
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 Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public RewriteResponse . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RewriteResponse . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public RewriteResponse . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
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-02-14 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-02-14 UTC."],[],[]]