public static final class PublisherGrpc.PublisherBlockingStub extends io.grpc.stub.AbstractStub<PublisherGrpc.PublisherBlockingStub>
The service that an application uses to manipulate topics, and to send messages to a topic.
| Modifier and Type | Method and Description |
|---|---|
protected PublisherGrpc.PublisherBlockingStub |
build(io.grpc.Channel channel,
io.grpc.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.
|
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.<br><br>
<b>ALPHA:</b> This feature is part of an alpha release.
|
ListTopicSubscriptionsResponse |
listTopicSubscriptions(ListTopicSubscriptionsRequest request)
Lists the names of the subscriptions on this topic.
|
PublishResponse |
publish(PublishRequest request)
Adds one or more messages to the topic.
|
Topic |
updateTopic(UpdateTopicRequest request)
Updates an existing topic.
|
protected PublisherGrpc.PublisherBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<PublisherGrpc.PublisherBlockingStub>public Topic createTopic(Topic request)
Creates the given topic with the given name. See the <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
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. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute.
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 subscriptions on this topic.
public ListTopicSnapshotsResponse listTopicSnapshots(ListTopicSnapshotsRequest request)
Lists the names of the snapshots on this topic.<br><br> <b>ALPHA:</b> This feature is part of an alpha release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
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_`.
Copyright © 2018 Google LLC. All rights reserved.