public final class Channel
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 Drive 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Channel() |
| Modifier and Type | Method and Description |
|---|---|
Channel |
clone() |
String |
getAddress()
The address where notifications are delivered for this channel.
|
Long |
getExpiration()
Date and time of notification channel expiration, expressed as a Unix timestamp, in
milliseconds.
|
String |
getId()
A UUID or similar unique string that identifies this channel.
|
String |
getKind()
Identifies this as a notification channel used to watch for changes to a resource, which is
"api#channel".
|
Map<String,String> |
getParams()
Additional parameters controlling delivery channel behavior.
|
Boolean |
getPayload()
A Boolean value to indicate whether payload is wanted.
|
String |
getResourceId()
An opaque ID that identifies the resource being watched on this channel.
|
String |
getResourceUri()
A version-specific identifier for the watched resource.
|
String |
getToken()
An arbitrary string delivered to the target address with each notification delivered over this
channel.
|
String |
getType()
The type of delivery mechanism used for this channel.
|
Channel |
set(String fieldName,
Object value) |
Channel |
setAddress(String address)
The address where notifications are delivered for this channel.
|
Channel |
setExpiration(Long expiration)
Date and time of notification channel expiration, expressed as a Unix timestamp, in
milliseconds.
|
Channel |
setId(String id)
A UUID or similar unique string that identifies this channel.
|
Channel |
setKind(String kind)
Identifies this as a notification channel used to watch for changes to a resource, which is
"api#channel".
|
Channel |
setParams(Map<String,String> params)
Additional parameters controlling delivery channel behavior.
|
Channel |
setPayload(Boolean payload)
A Boolean value to indicate whether payload is wanted.
|
Channel |
setResourceId(String resourceId)
An opaque ID that identifies the resource being watched on this channel.
|
Channel |
setResourceUri(String resourceUri)
A version-specific identifier for the watched resource.
|
Channel |
setToken(String token)
An arbitrary string delivered to the target address with each notification delivered over this
channel.
|
Channel |
setType(String type)
The type of delivery mechanism used for this channel.
|
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 getAddress()
null for nonepublic Channel setAddress(String address)
address - address or null for nonepublic Long getExpiration()
null for nonepublic Channel setExpiration(Long expiration)
expiration - expiration or null for nonepublic String getId()
null for nonepublic Channel setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic Channel setKind(String kind)
kind - kind or null for nonepublic Map<String,String> getParams()
null for nonepublic Channel setParams(Map<String,String> params)
params - params or null for nonepublic Boolean getPayload()
null for nonepublic Channel setPayload(Boolean payload)
payload - payload or null for nonepublic String getResourceId()
null for nonepublic Channel setResourceId(String resourceId)
resourceId - resourceId or null for nonepublic String getResourceUri()
null for nonepublic Channel setResourceUri(String resourceUri)
resourceUri - resourceUri or null for nonepublic String getToken()
null for nonepublic Channel setToken(String token)
token - token or null for nonepublic String getType()
null for nonepublic Channel setType(String type)
type - type or null for nonepublic Channel set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Channel clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.