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.Flags| Constructor and Description |
|---|
RewriteResponse() |
| Modifier and Type | Method and Description |
|---|---|
RewriteResponse |
clone() |
java.lang.Boolean |
getDone()
true if the copy is finished; otherwise, false if the copy is in progress.
|
java.lang.String |
getKind()
The kind of item this is.
|
java.lang.Long |
getObjectSize()
The total size of the object being copied in bytes.
|
StorageObject |
getResource()
A resource containing the metadata for the copied-to object.
|
java.lang.String |
getRewriteToken()
A token to use in subsequent requests to continue copying data.
|
java.lang.Long |
getTotalBytesRewritten()
The total bytes written so far, which can be used to provide a waiting user with a progress
indicator.
|
RewriteResponse |
set(java.lang.String fieldName,
java.lang.Object value) |
RewriteResponse |
setDone(java.lang.Boolean done)
true if the copy is finished; otherwise, false if the copy is in progress.
|
RewriteResponse |
setKind(java.lang.String kind)
The kind of item this is.
|
RewriteResponse |
setObjectSize(java.lang.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(java.lang.String rewriteToken)
A token to use in subsequent requests to continue copying data.
|
RewriteResponse |
setTotalBytesRewritten(java.lang.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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Boolean getDone()
null for nonepublic RewriteResponse setDone(java.lang.Boolean done)
done - done or null for nonepublic java.lang.String getKind()
null for nonepublic RewriteResponse setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.Long getObjectSize()
null for nonepublic RewriteResponse setObjectSize(java.lang.Long objectSize)
objectSize - objectSize or null for nonepublic StorageObject getResource()
null for nonepublic RewriteResponse setResource(StorageObject resource)
resource - resource or null for nonepublic java.lang.String getRewriteToken()
null for nonepublic RewriteResponse setRewriteToken(java.lang.String rewriteToken)
rewriteToken - rewriteToken or null for nonepublic java.lang.Long getTotalBytesRewritten()
null for nonepublic RewriteResponse setTotalBytesRewritten(java.lang.Long totalBytesRewritten)
totalBytesRewritten - totalBytesRewritten or null for nonepublic RewriteResponse set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic RewriteResponse clone()
clone in class com.google.api.client.json.GenericJson