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 Google Tasks API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Task.Links
Model definition for TaskLinks.
|
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Task() |
| Modifier and Type | Method and Description |
|---|---|
Task |
clone() |
AssignmentInfo |
getAssignmentInfo()
Output only.
|
String |
getCompleted()
Completion date of the task (as a RFC 3339 timestamp).
|
Boolean |
getDeleted()
Flag indicating whether the task has been deleted.
|
String |
getDue()
Scheduled date for the task (as an RFC 3339 timestamp).
|
String |
getEtag()
ETag of the resource.
|
Boolean |
getHidden()
Flag indicating whether the task is hidden.
|
String |
getId()
Task identifier.
|
String |
getKind()
Output only.
|
List<Task.Links> |
getLinks()
Output only.
|
String |
getNotes()
Notes describing the task.
|
String |
getParent()
Output only.
|
String |
getPosition()
Output only.
|
String |
getSelfLink()
Output only.
|
String |
getStatus()
Status of the task.
|
String |
getTitle()
Title of the task.
|
String |
getUpdated()
Output only.
|
String |
getWebViewLink()
Output only.
|
Task |
set(String fieldName,
Object value) |
Task |
setAssignmentInfo(AssignmentInfo assignmentInfo)
Output only.
|
Task |
setCompleted(String completed)
Completion date of the task (as a RFC 3339 timestamp).
|
Task |
setDeleted(Boolean deleted)
Flag indicating whether the task has been deleted.
|
Task |
setDue(String due)
Scheduled date for the task (as an RFC 3339 timestamp).
|
Task |
setEtag(String etag)
ETag of the resource.
|
Task |
setHidden(Boolean hidden)
Flag indicating whether the task is hidden.
|
Task |
setId(String id)
Task identifier.
|
Task |
setKind(String kind)
Output only.
|
Task |
setLinks(List<Task.Links> links)
Output only.
|
Task |
setNotes(String notes)
Notes describing the task.
|
Task |
setParent(String parent)
Output only.
|
Task |
setPosition(String position)
Output only.
|
Task |
setSelfLink(String selfLink)
Output only.
|
Task |
setStatus(String status)
Status of the task.
|
Task |
setTitle(String title)
Title of the task.
|
Task |
setUpdated(String updated)
Output only.
|
Task |
setWebViewLink(String webViewLink)
Output only.
|
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 AssignmentInfo getAssignmentInfo()
null for nonepublic Task setAssignmentInfo(AssignmentInfo assignmentInfo)
assignmentInfo - assignmentInfo or null for nonepublic String getCompleted()
null for nonepublic Task setCompleted(String completed)
completed - completed or null for nonepublic Boolean getDeleted()
null for nonepublic Task setDeleted(Boolean deleted)
deleted - deleted or null for nonepublic String getDue()
null for nonepublic Task setDue(String due)
due - due or null for nonepublic String getEtag()
null for nonepublic Task setEtag(String etag)
etag - etag or null for nonepublic Boolean getHidden()
null for nonepublic Task setHidden(Boolean hidden)
hidden - hidden or null for nonepublic String getId()
null for nonepublic String getKind()
null for nonepublic Task setKind(String kind)
kind - kind or null for nonepublic List<Task.Links> getLinks()
null for nonepublic Task setLinks(List<Task.Links> links)
links - links or null for nonepublic String getNotes()
null for nonepublic Task setNotes(String notes)
notes - notes or null for nonepublic String getParent()
null for nonepublic Task setParent(String parent)
parent - parent or null for nonepublic String getPosition()
null for nonepublic Task setPosition(String position)
position - position or null for nonepublic String getSelfLink()
null for nonepublic Task setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getStatus()
null for nonepublic Task setStatus(String status)
status - status or null for nonepublic String getTitle()
null for nonepublic Task setTitle(String title)
title - title or null for nonepublic String getUpdated()
null for nonepublic Task setUpdated(String updated)
updated - updated or null for nonepublic String getWebViewLink()
null for nonepublic Task setWebViewLink(String webViewLink)
webViewLink - webViewLink or null for nonepublic Task set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Task clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.