public final class Operation
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 App Engine Admin 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 |
---|
Operation() |
Modifier and Type | Method and Description |
---|---|
Operation |
clone() |
java.lang.Boolean |
getDone()
If the value is false, it means the operation is still in progress.
|
Status |
getError()
The error result of the operation in case of failure or cancellation.
|
java.util.Map<java.lang.String,java.lang.Object> |
getMetadata()
Service-specific metadata associated with the operation.
|
java.lang.String |
getName()
The server-assigned name, which is only unique within the same service that originally returns
it.
|
java.util.Map<java.lang.String,java.lang.Object> |
getResponse()
The normal response of the operation in case of success.
|
Operation |
set(java.lang.String fieldName,
java.lang.Object value) |
Operation |
setDone(java.lang.Boolean done)
If the value is false, it means the operation is still in progress.
|
Operation |
setError(Status error)
The error result of the operation in case of failure or cancellation.
|
Operation |
setMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
Service-specific metadata associated with the operation.
|
Operation |
setName(java.lang.String name)
The server-assigned name, which is only unique within the same service that originally returns
it.
|
Operation |
setResponse(java.util.Map<java.lang.String,java.lang.Object> response)
The normal response of the operation in case of success.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Boolean getDone()
null
for nonepublic Operation setDone(java.lang.Boolean done)
done
- done or null
for nonepublic Status getError()
null
for nonepublic Operation setError(Status error)
error
- error or null
for nonepublic java.util.Map<java.lang.String,java.lang.Object> getMetadata()
null
for nonepublic Operation setMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
metadata
- metadata or null
for nonepublic java.lang.String getName()
null
for nonepublic Operation setName(java.lang.String name)
name
- name or null
for nonepublic java.util.Map<java.lang.String,java.lang.Object> getResponse()
null
for nonepublic Operation setResponse(java.util.Map<java.lang.String,java.lang.Object> response)
response
- response or null
for nonepublic Operation set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Operation clone()
clone
in class com.google.api.client.json.GenericJson