public final class RewriteResponse
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Storage JSON API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
RewriteResponse() |
| Modifier and Type | Method and Description |
|---|---|
RewriteResponse |
clone() |
Boolean |
getDone()
true if the copy is finished; otherwise, false if the copy is in progress.
|
String |
getKind()
The kind of item this is.
|
Long |
getObjectSize()
The total size of the object being copied in bytes.
|
StorageObject |
getResource()
A resource containing the metadata for the copied-to object.
|
String |
getRewriteToken()
A token to use in subsequent requests to continue copying data.
|
Long |
getTotalBytesRewritten()
The total bytes written so far, which can be used to provide a waiting user with a progress
indicator.
|
RewriteResponse |
set(String fieldName,
Object value) |
RewriteResponse |
setDone(Boolean done)
true if the copy is finished; otherwise, false if the copy is in progress.
|
RewriteResponse |
setKind(String kind)
The kind of item this is.
|
RewriteResponse |
setObjectSize(Long objectSize)
The total size of the object being copied in bytes.
|
RewriteResponse |
setResource(StorageObject resource)
A resource containing the metadata for the copied-to object.
|
RewriteResponse |
setRewriteToken(String rewriteToken)
A token to use in subsequent requests to continue copying data.
|
RewriteResponse |
setTotalBytesRewritten(Long totalBytesRewritten)
The total bytes written so far, which can be used to provide a waiting user with a progress
indicator.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getDone()
null for nonepublic RewriteResponse setDone(Boolean done)
done - done or null for nonepublic String getKind()
null for nonepublic RewriteResponse setKind(String kind)
kind - kind or null for nonepublic Long getObjectSize()
null for nonepublic RewriteResponse setObjectSize(Long objectSize)
objectSize - objectSize or null for nonepublic StorageObject getResource()
null for nonepublic RewriteResponse setResource(StorageObject resource)
resource - resource or null for nonepublic String getRewriteToken()
null for nonepublic RewriteResponse setRewriteToken(String rewriteToken)
rewriteToken - rewriteToken or null for nonepublic Long getTotalBytesRewritten()
null for nonepublic RewriteResponse setTotalBytesRewritten(Long totalBytesRewritten)
totalBytesRewritten - totalBytesRewritten or null for nonepublic RewriteResponse set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic RewriteResponse clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.