public final class Task
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 Tasks 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 |
|---|
Task() |
| Modifier and Type | Method and Description |
|---|---|
Task |
clone() |
AppEngineHttpRequest |
getAppEngineHttpRequest()
HTTP request that is sent to the App Engine app handler.
|
java.lang.String |
getCreateTime()
Output only.
|
java.lang.Integer |
getDispatchCount()
Output only.
|
java.lang.String |
getDispatchDeadline()
The deadline for requests sent to the worker.
|
Attempt |
getFirstAttempt()
Output only.
|
HttpRequest |
getHttpRequest()
HTTP request that is sent to the task's target.
|
Attempt |
getLastAttempt()
Output only.
|
java.lang.String |
getName()
Optionally caller-specified in CreateTask.
|
java.lang.Integer |
getResponseCount()
Output only.
|
java.lang.String |
getScheduleTime()
The time when the task is scheduled to be attempted.
|
java.lang.String |
getView()
Output only.
|
Task |
set(java.lang.String fieldName,
java.lang.Object value) |
Task |
setAppEngineHttpRequest(AppEngineHttpRequest appEngineHttpRequest)
HTTP request that is sent to the App Engine app handler.
|
Task |
setCreateTime(java.lang.String createTime)
Output only.
|
Task |
setDispatchCount(java.lang.Integer dispatchCount)
Output only.
|
Task |
setDispatchDeadline(java.lang.String dispatchDeadline)
The deadline for requests sent to the worker.
|
Task |
setFirstAttempt(Attempt firstAttempt)
Output only.
|
Task |
setHttpRequest(HttpRequest httpRequest)
HTTP request that is sent to the task's target.
|
Task |
setLastAttempt(Attempt lastAttempt)
Output only.
|
Task |
setName(java.lang.String name)
Optionally caller-specified in CreateTask.
|
Task |
setResponseCount(java.lang.Integer responseCount)
Output only.
|
Task |
setScheduleTime(java.lang.String scheduleTime)
The time when the task is scheduled to be attempted.
|
Task |
setView(java.lang.String view)
Output only.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic AppEngineHttpRequest getAppEngineHttpRequest()
null for nonepublic Task setAppEngineHttpRequest(AppEngineHttpRequest appEngineHttpRequest)
appEngineHttpRequest - appEngineHttpRequest or null for nonepublic java.lang.String getCreateTime()
null for nonepublic Task setCreateTime(java.lang.String createTime)
createTime - createTime or null for nonepublic java.lang.Integer getDispatchCount()
null for nonepublic Task setDispatchCount(java.lang.Integer dispatchCount)
dispatchCount - dispatchCount or null for nonepublic java.lang.String getDispatchDeadline()
null for nonepublic Task setDispatchDeadline(java.lang.String dispatchDeadline)
dispatchDeadline - dispatchDeadline or null for nonepublic Attempt getFirstAttempt()
null for nonepublic Task setFirstAttempt(Attempt firstAttempt)
firstAttempt - firstAttempt or null for nonepublic HttpRequest getHttpRequest()
null for nonepublic Task setHttpRequest(HttpRequest httpRequest)
httpRequest - httpRequest or null for nonepublic Attempt getLastAttempt()
null for nonepublic Task setLastAttempt(Attempt lastAttempt)
lastAttempt - lastAttempt or null for nonepublic java.lang.String getName()
null for nonepublic Task setName(java.lang.String name)
name - name or null for nonepublic java.lang.Integer getResponseCount()
null for nonepublic Task setResponseCount(java.lang.Integer responseCount)
responseCount - responseCount or null for nonepublic java.lang.String getScheduleTime()
null for nonepublic Task setScheduleTime(java.lang.String scheduleTime)
scheduleTime - scheduleTime or null for nonepublic java.lang.String getView()
null for nonepublic Task setView(java.lang.String view)
view - view or null for nonepublic Task set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Task clone()
clone in class com.google.api.client.json.GenericJson