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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Channel() |
Modifier and Type | Method and Description |
---|---|
Channel |
clone() |
String |
getAddress()
The address of the receiving entity where events are delivered.
|
Long |
getExpiration()
The expiration instant for this channel if it is defined.
|
String |
getId()
A UUID for the channel
|
String |
getKind()
A channel watching an API resource
|
Map<String,String> |
getParams()
Additional parameters controlling delivery channel behavior
|
String |
getResourceId()
An opaque id that identifies the resource that is being watched.
|
String |
getResourceUri()
The canonicalized ID of the watched resource.
|
String |
getToken()
An arbitrary string associated with the channel that is delivered to the target address with
each event delivered over this channel.
|
String |
getType()
The type of delivery mechanism used by this channel
|
Channel |
set(String fieldName,
Object value) |
Channel |
setAddress(String address)
The address of the receiving entity where events are delivered.
|
Channel |
setExpiration(Long expiration)
The expiration instant for this channel if it is defined.
|
Channel |
setId(String id)
A UUID for the channel
|
Channel |
setKind(String kind)
A channel watching an API resource
|
Channel |
setParams(Map<String,String> params)
Additional parameters controlling delivery channel behavior
|
Channel |
setResourceId(String resourceId)
An opaque id that identifies the resource that is being watched.
|
Channel |
setResourceUri(String resourceUri)
The canonicalized ID of the watched resource.
|
Channel |
setToken(String token)
An arbitrary string associated with the channel that is delivered to the target address with
each event delivered over this channel.
|
Channel |
setType(String type)
The type of delivery mechanism used by this channel
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public 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 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 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 GenericJson
public Channel clone()
clone
in class GenericJson