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 Cloud Storage API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Channel() |
Modifier and Type | Method and Description |
---|---|
Channel |
clone() |
java.lang.String |
getAddress()
The address where notifications are delivered for this channel.
|
java.lang.Long |
getExpiration()
Date and time of notification channel expiration, expressed as a Unix timestamp, in
milliseconds.
|
java.lang.String |
getId()
A UUID or similar unique string that identifies this channel.
|
java.lang.String |
getKind()
Identifies this as a notification channel used to watch for changes to a resource.
|
java.util.Map<java.lang.String,java.lang.String> |
getParams()
Additional parameters controlling delivery channel behavior.
|
java.lang.Boolean |
getPayload()
A Boolean value to indicate whether payload is wanted.
|
java.lang.String |
getResourceId()
An opaque ID that identifies the resource being watched on this channel.
|
java.lang.String |
getResourceUri()
A version-specific identifier for the watched resource.
|
java.lang.String |
getToken()
An arbitrary string delivered to the target address with each notification delivered over this
channel.
|
java.lang.String |
getType()
The type of delivery mechanism used for this channel.
|
Channel |
set(java.lang.String fieldName,
java.lang.Object value) |
Channel |
setAddress(java.lang.String address)
The address where notifications are delivered for this channel.
|
Channel |
setExpiration(java.lang.Long expiration)
Date and time of notification channel expiration, expressed as a Unix timestamp, in
milliseconds.
|
Channel |
setId(java.lang.String id)
A UUID or similar unique string that identifies this channel.
|
Channel |
setKind(java.lang.String kind)
Identifies this as a notification channel used to watch for changes to a resource.
|
Channel |
setParams(java.util.Map<java.lang.String,java.lang.String> params)
Additional parameters controlling delivery channel behavior.
|
Channel |
setPayload(java.lang.Boolean payload)
A Boolean value to indicate whether payload is wanted.
|
Channel |
setResourceId(java.lang.String resourceId)
An opaque ID that identifies the resource being watched on this channel.
|
Channel |
setResourceUri(java.lang.String resourceUri)
A version-specific identifier for the watched resource.
|
Channel |
setToken(java.lang.String token)
An arbitrary string delivered to the target address with each notification delivered over this
channel.
|
Channel |
setType(java.lang.String type)
The type of delivery mechanism used for this channel.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.String getAddress()
null
for nonepublic Channel setAddress(java.lang.String address)
address
- address or null
for nonepublic java.lang.Long getExpiration()
null
for nonepublic Channel setExpiration(java.lang.Long expiration)
expiration
- expiration or null
for nonepublic java.lang.String getId()
null
for nonepublic Channel setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic Channel setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getParams()
null
for nonepublic Channel setParams(java.util.Map<java.lang.String,java.lang.String> params)
params
- params or null
for nonepublic java.lang.Boolean getPayload()
null
for nonepublic Channel setPayload(java.lang.Boolean payload)
payload
- payload or null
for nonepublic java.lang.String getResourceId()
null
for nonepublic Channel setResourceId(java.lang.String resourceId)
resourceId
- resourceId or null
for nonepublic java.lang.String getResourceUri()
null
for nonepublic Channel setResourceUri(java.lang.String resourceUri)
resourceUri
- resourceUri or null
for nonepublic java.lang.String getToken()
null
for nonepublic Channel setToken(java.lang.String token)
token
- token or null
for nonepublic java.lang.String getType()
null
for nonepublic Channel setType(java.lang.String type)
type
- type or null
for nonepublic Channel set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Channel clone()
clone
in class com.google.api.client.json.GenericJson