public final class PublishRequest
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 Google Cloud Pub/Sub 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 |
---|
PublishRequest() |
Modifier and Type | Method and Description |
---|---|
PublishRequest |
clone() |
PubsubMessage |
getMessage()
The message to publish.
|
java.lang.String |
getTopic()
The message in the request will be published on this topic.
|
PublishRequest |
set(java.lang.String fieldName,
java.lang.Object value) |
PublishRequest |
setMessage(PubsubMessage message)
The message to publish.
|
PublishRequest |
setTopic(java.lang.String topic)
The message in the request will be published on this topic.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public PubsubMessage getMessage()
null
for nonepublic PublishRequest setMessage(PubsubMessage message)
message
- message or null
for nonepublic java.lang.String getTopic()
null
for nonepublic PublishRequest setTopic(java.lang.String topic)
topic
- topic or null
for nonepublic PublishRequest set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public PublishRequest clone()
clone
in class com.google.api.client.json.GenericJson