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) |
com.google.pubsub.v1.Topic |
createTopic(com.google.pubsub.v1.Topic request)
Creates the given topic with the given name.
|
com.google.protobuf.Empty |
deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request)
Deletes the topic with the given name.
|
com.google.pubsub.v1.Topic |
getTopic(com.google.pubsub.v1.GetTopicRequest request)
Gets the configuration of a topic.
|
com.google.pubsub.v1.ListTopicsResponse |
listTopics(com.google.pubsub.v1.ListTopicsRequest request)
Lists matching topics.
|
com.google.pubsub.v1.ListTopicSubscriptionsResponse |
listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request)
Lists the name of the subscriptions for this topic.
|
com.google.pubsub.v1.PublishResponse |
publish(com.google.pubsub.v1.PublishRequest request)
Adds one or more messages to the topic.
|
protected PublisherGrpc.PublisherBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<PublisherGrpc.PublisherBlockingStub>public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request)
Creates the given topic with the given name.
public com.google.pubsub.v1.PublishResponse publish(com.google.pubsub.v1.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 com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest request)
Gets the configuration of a topic.
public com.google.pubsub.v1.ListTopicsResponse listTopics(com.google.pubsub.v1.ListTopicsRequest request)
Lists matching topics.
public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request)
Lists the name of the subscriptions for this topic.
public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.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_`.