public static final class PublisherGrpc.PublisherFutureStub extends io.grpc.stub.AbstractStub<PublisherGrpc.PublisherFutureStub>
The service that an application uses to manipulate topics, and to send messages to a topic.
| Modifier and Type | Method and Description |
|---|---|
protected PublisherGrpc.PublisherFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<Topic> |
createTopic(Topic request)
Creates the given topic with the given name.
|
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> |
deleteTopic(DeleteTopicRequest request)
Deletes the topic with the given name.
|
com.google.common.util.concurrent.ListenableFuture<Topic> |
getTopic(GetTopicRequest request)
Gets the configuration of a topic.
|
com.google.common.util.concurrent.ListenableFuture<ListTopicsResponse> |
listTopics(ListTopicsRequest request)
Lists matching topics.
|
com.google.common.util.concurrent.ListenableFuture<ListTopicSnapshotsResponse> |
listTopicSnapshots(ListTopicSnapshotsRequest request)
Lists the names of the snapshots on this topic.
|
com.google.common.util.concurrent.ListenableFuture<ListTopicSubscriptionsResponse> |
listTopicSubscriptions(ListTopicSubscriptionsRequest request)
Lists the names of the subscriptions on this topic.
|
com.google.common.util.concurrent.ListenableFuture<PublishResponse> |
publish(PublishRequest request)
Adds one or more messages to the topic.
|
com.google.common.util.concurrent.ListenableFuture<Topic> |
updateTopic(UpdateTopicRequest request)
Updates an existing topic.
|
protected PublisherGrpc.PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<PublisherGrpc.PublisherFutureStub>public com.google.common.util.concurrent.ListenableFuture<Topic> createTopic(Topic request)
Creates the given topic with the given name. See the <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name rules</a>.
public com.google.common.util.concurrent.ListenableFuture<Topic> updateTopic(UpdateTopicRequest request)
Updates an existing topic. Note that certain properties of a topic are not modifiable.
public com.google.common.util.concurrent.ListenableFuture<PublishResponse> publish(PublishRequest request)
Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.
public com.google.common.util.concurrent.ListenableFuture<Topic> getTopic(GetTopicRequest request)
Gets the configuration of a topic.
public com.google.common.util.concurrent.ListenableFuture<ListTopicsResponse> listTopics(ListTopicsRequest request)
Lists matching topics.
public com.google.common.util.concurrent.ListenableFuture<ListTopicSubscriptionsResponse> listTopicSubscriptions(ListTopicSubscriptionsRequest request)
Lists the names of the subscriptions on this topic.
public com.google.common.util.concurrent.ListenableFuture<ListTopicSnapshotsResponse> listTopicSnapshots(ListTopicSnapshotsRequest request)
Lists the names of the snapshots on this topic. Snapshots are used in <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteTopic(DeleteTopicRequest request)
Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a topic is deleted, a new topic may be created with the same name; this is an entirely new topic with none of the old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their `topic` field is set to `_deleted-topic_`.
Copyright © 2019 Google LLC. All rights reserved.