public class Pubsub.Topics
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Pubsub.Topics.Create |
class |
Pubsub.Topics.Delete |
class |
Pubsub.Topics.Get |
class |
Pubsub.Topics.List |
class |
Pubsub.Topics.Publish |
class |
Pubsub.Topics.PublishBatch |
| Constructor and Description |
|---|
Topics() |
| Modifier and Type | Method and Description |
|---|---|
Pubsub.Topics.Create |
create(Topic content)
Creates the given topic with the given name.
|
Pubsub.Topics.Delete |
delete(java.lang.String topic)
Deletes the topic with the given name.
|
Pubsub.Topics.Get |
get(java.lang.String topic)
Gets the configuration of a topic.
|
Pubsub.Topics.List |
list()
Lists matching topics.
|
Pubsub.Topics.Publish |
publish(PublishRequest content)
Adds a message to the topic.
|
Pubsub.Topics.PublishBatch |
publishBatch(PublishBatchRequest content)
Adds one or more messages to the topic.
|
public Pubsub.Topics.Create create(Topic content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the Topicjava.io.IOExceptionpublic Pubsub.Topics.Delete delete(java.lang.String topic) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.topic - Name of the topic to delete.java.io.IOExceptionpublic Pubsub.Topics.Get get(java.lang.String topic) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.topic - The name of the topic to get.java.io.IOExceptionpublic Pubsub.Topics.List list() throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.java.io.IOExceptionpublic Pubsub.Topics.Publish publish(PublishRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the PublishRequestjava.io.IOExceptionpublic Pubsub.Topics.PublishBatch publishBatch(PublishBatchRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the PublishBatchRequestjava.io.IOException