public final class Task extends 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 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.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Task() |
| Modifier and Type | Method and Description |
|---|---|
Task |
clone() |
String |
getCompleted()
Completion date of the task (as a RFC 3339 timestamp).
|
Boolean |
getDeleted()
Flag indicating whether the task has been deleted.
|
String |
getDue()
Due date of the task (as a RFC 3339 timestamp).
|
String |
getEtag()
ETag of the resource.
|
Boolean |
getHidden()
Flag indicating whether the task is hidden.
|
String |
getId()
Task identifier.
|
String |
getKind()
Type of the resource.
|
List<Task.Links> |
getLinks()
Collection of links.
|
String |
getNotes()
Notes describing the task.
|
String |
getParent()
Parent task identifier.
|
String |
getPosition()
String indicating the position of the task among its sibling tasks under the same parent task
or at the top level.
|
String |
getSelfLink()
URL pointing to this task.
|
String |
getStatus()
Status of the task.
|
String |
getTitle()
Title of the task.
|
String |
getUpdated()
Last modification time of the task (as a RFC 3339 timestamp).
|
Task |
set(String fieldName,
Object value) |
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)
Due date of the task (as a 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)
Type of the resource.
|
Task |
setLinks(List<Task.Links> links)
Collection of links.
|
Task |
setNotes(String notes)
Notes describing the task.
|
Task |
setParent(String parent)
Parent task identifier.
|
Task |
setPosition(String position)
String indicating the position of the task among its sibling tasks under the same parent task
or at the top level.
|
Task |
setSelfLink(String selfLink)
URL pointing to this task.
|
Task |
setStatus(String status)
Status of the task.
|
Task |
setTitle(String title)
Title of the task.
|
Task |
setUpdated(String updated)
Last modification time of the task (as a RFC 3339 timestamp).
|
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 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 Task set(String fieldName, Object value)
set in class GenericJsonpublic Task clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.