public abstract static class PublisherGrpc.PublisherImplBase
extends java.lang.Object
implements io.grpc.BindableService
The service that an application uses to manipulate topics, and to send messages to a topic.
| Constructor and Description |
|---|
PublisherImplBase() |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.ServerServiceDefinition |
bindService() |
void |
createTopic(com.google.pubsub.v1.Topic request,
io.grpc.stub.StreamObserver<com.google.pubsub.v1.Topic> responseObserver)
Creates the given topic with the given name.
|
void |
deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the topic with the given name.
|
void |
getTopic(com.google.pubsub.v1.GetTopicRequest request,
io.grpc.stub.StreamObserver<com.google.pubsub.v1.Topic> responseObserver)
Gets the configuration of a topic.
|
void |
listTopics(com.google.pubsub.v1.ListTopicsRequest request,
io.grpc.stub.StreamObserver<com.google.pubsub.v1.ListTopicsResponse> responseObserver)
Lists matching topics.
|
void |
listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request,
io.grpc.stub.StreamObserver<com.google.pubsub.v1.ListTopicSubscriptionsResponse> responseObserver)
Lists the name of the subscriptions for this topic.
|
void |
publish(com.google.pubsub.v1.PublishRequest request,
io.grpc.stub.StreamObserver<com.google.pubsub.v1.PublishResponse> responseObserver)
Adds one or more messages to the topic.
|
public void createTopic(com.google.pubsub.v1.Topic request,
io.grpc.stub.StreamObserver<com.google.pubsub.v1.Topic> responseObserver)
Creates the given topic with the given name.
public void publish(com.google.pubsub.v1.PublishRequest request,
io.grpc.stub.StreamObserver<com.google.pubsub.v1.PublishResponse> responseObserver)
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 void getTopic(com.google.pubsub.v1.GetTopicRequest request,
io.grpc.stub.StreamObserver<com.google.pubsub.v1.Topic> responseObserver)
Gets the configuration of a topic.
public void listTopics(com.google.pubsub.v1.ListTopicsRequest request,
io.grpc.stub.StreamObserver<com.google.pubsub.v1.ListTopicsResponse> responseObserver)
Lists matching topics.
public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request,
io.grpc.stub.StreamObserver<com.google.pubsub.v1.ListTopicSubscriptionsResponse> responseObserver)
Lists the name of the subscriptions for this topic.
public void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
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 final io.grpc.ServerServiceDefinition bindService()
bindService in interface io.grpc.BindableService