public final class Channel 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 Cloud Storage API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json
Upgrade warning: starting with version 1.12 getResponseHeaders()
is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Channel() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 |
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.
|
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.
|
clone, getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getAddress()
null
.public Channel setAddress(String address)
null
.public Long getExpiration()
null
.public Channel setExpiration(Long expiration)
null
.public String getId()
null
.public Channel setId(String id)
null
.public String getKind()
null
.public Channel setKind(String kind)
null
.public Map<String,String> getParams()
null
.public Channel setParams(Map<String,String> params)
null
.public Boolean getPayload()
null
.public Channel setPayload(Boolean payload)
null
.public String getResourceId()
null
.public Channel setResourceId(String resourceId)
null
.public String getResourceUri()
null
.public Channel setResourceUri(String resourceUri)
null
.public String getToken()
null
.public Channel setToken(String token)
null
.public String getType()
null
.