public static final class PublisherGrpc.PublisherBlockingStub extends AbstractBlockingStub<PublisherGrpc.PublisherBlockingStub>
The service that an application uses to manipulate topics, and to send messages to a topic.
AbstractStub.StubFactory<T extends AbstractStub<T>>
Modifier and Type | Method and Description |
---|---|
protected PublisherGrpc.PublisherBlockingStub |
build(Channel channel,
CallOptions callOptions) |
Topic |
createTopic(Topic request)
Creates the given topic with the given name.
|
com.google.protobuf.Empty |
deleteTopic(DeleteTopicRequest request)
Deletes the topic with the given name.
|
DetachSubscriptionResponse |
detachSubscription(DetachSubscriptionRequest request)
Detaches a subscription from this topic.
|
Topic |
getTopic(GetTopicRequest request)
Gets the configuration of a topic.
|
ListTopicsResponse |
listTopics(ListTopicsRequest request)
Lists matching topics.
|
ListTopicSnapshotsResponse |
listTopicSnapshots(ListTopicSnapshotsRequest request)
Lists the names of the snapshots on this topic.
|
ListTopicSubscriptionsResponse |
listTopicSubscriptions(ListTopicSubscriptionsRequest request)
Lists the names of the attached subscriptions on this topic.
|
PublishResponse |
publish(PublishRequest request)
Adds one or more messages to the topic.
|
Topic |
updateTopic(UpdateTopicRequest request)
Updates an existing topic.
|
newStub, newStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
protected PublisherGrpc.PublisherBlockingStub build(Channel channel, CallOptions callOptions)
build
in class AbstractStub<PublisherGrpc.PublisherBlockingStub>
public Topic createTopic(Topic request)
Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/admin#resource_names).
public Topic updateTopic(UpdateTopicRequest request)
Updates an existing topic. Note that certain properties of a topic are not modifiable.
public PublishResponse publish(PublishRequest request)
Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.
public Topic getTopic(GetTopicRequest request)
Gets the configuration of a topic.
public ListTopicsResponse listTopics(ListTopicsRequest request)
Lists matching topics.
public ListTopicSubscriptionsResponse listTopicSubscriptions(ListTopicSubscriptionsRequest request)
Lists the names of the attached subscriptions on this topic.
public ListTopicSnapshotsResponse listTopicSnapshots(ListTopicSnapshotsRequest request)
Lists the names of the snapshots on this topic. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.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_`.
public DetachSubscriptionResponse detachSubscription(DetachSubscriptionRequest request)
Detaches a subscription from this topic. All messages retained in the subscription are dropped. Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the subscription is a push subscription, pushes to the endpoint will stop.
Copyright © 2023 Google LLC. All rights reserved.