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(Topic request,
io.grpc.stub.StreamObserver<Topic> responseObserver)
Creates the given topic with the given name.
|
void |
deleteTopic(DeleteTopicRequest request,
io.grpc.stub.StreamObserver<Empty> responseObserver)
Deletes the topic with the given name.
|
void |
getTopic(GetTopicRequest request,
io.grpc.stub.StreamObserver<Topic> responseObserver)
Gets the configuration of a topic.
|
void |
listTopics(ListTopicsRequest request,
io.grpc.stub.StreamObserver<ListTopicsResponse> responseObserver)
Lists matching topics.
|
void |
listTopicSubscriptions(ListTopicSubscriptionsRequest request,
io.grpc.stub.StreamObserver<ListTopicSubscriptionsResponse> responseObserver)
Lists the name of the subscriptions for this topic.
|
void |
publish(PublishRequest request,
io.grpc.stub.StreamObserver<PublishResponse> responseObserver)
Adds one or more messages to the topic.
|
void |
updateTopic(UpdateTopicRequest request,
io.grpc.stub.StreamObserver<Topic> responseObserver)
Updates an existing topic.
|
public void createTopic(Topic request, io.grpc.stub.StreamObserver<Topic> responseObserver)
Creates the given topic with the given name.
public void updateTopic(UpdateTopicRequest request, io.grpc.stub.StreamObserver<Topic> responseObserver)
Updates an existing topic. Note that certain properties of a topic are not modifiable. Options settings follow the style guide: NOTE: The style guide requires body: "topic" instead of body: "*". Keeping the latter for internal consistency in V1, however it should be corrected in V2. See https://cloud.google.com/apis/design/standard_methods#update for details.
public void publish(PublishRequest request, io.grpc.stub.StreamObserver<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(GetTopicRequest request, io.grpc.stub.StreamObserver<Topic> responseObserver)
Gets the configuration of a topic.
public void listTopics(ListTopicsRequest request, io.grpc.stub.StreamObserver<ListTopicsResponse> responseObserver)
Lists matching topics.
public void listTopicSubscriptions(ListTopicSubscriptionsRequest request, io.grpc.stub.StreamObserver<ListTopicSubscriptionsResponse> responseObserver)
Lists the name of the subscriptions for this topic.
public void deleteTopic(DeleteTopicRequest request, io.grpc.stub.StreamObserver<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