public static final class PublisherGrpc.PublisherBlockingV2Stub extends AbstractBlockingStub<PublisherGrpc.PublisherBlockingV2Stub>A stub to allow clients to do synchronous rpc calls to service Publisher.
The service that an application uses to manipulate topics, and to send messages to a topic.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > PublisherGrpc.PublisherBlockingV2StubMethods
build(Channel channel, CallOptions callOptions)
protected PublisherGrpc.PublisherBlockingV2Stub build(Channel channel, CallOptions callOptions)| Parameters | |
|---|---|
| Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
| Returns | |
|---|---|
| Type | Description |
PublisherGrpc.PublisherBlockingV2Stub |
|
createTopic(Topic request)
public Topic createTopic(Topic request)Creates the given topic with the given name. See the resource name rules.
| Parameter | |
|---|---|
| Name | Description |
request |
Topic |
| Returns | |
|---|---|
| Type | Description |
Topic |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
deleteTopic(DeleteTopicRequest request)
public 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.
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteTopicRequest |
| Returns | |
|---|---|
| Type | Description |
Empty |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
detachSubscription(DetachSubscriptionRequest request)
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.
| Parameter | |
|---|---|
| Name | Description |
request |
DetachSubscriptionRequest |
| Returns | |
|---|---|
| Type | Description |
DetachSubscriptionResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
getTopic(GetTopicRequest request)
public Topic getTopic(GetTopicRequest request)Gets the configuration of a topic.
| Parameter | |
|---|---|
| Name | Description |
request |
GetTopicRequest |
| Returns | |
|---|---|
| Type | Description |
Topic |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
listTopicSnapshots(ListTopicSnapshotsRequest request)
public ListTopicSnapshotsResponse listTopicSnapshots(ListTopicSnapshotsRequest request)Lists the names of the snapshots on this topic. Snapshots are used in Seek 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.
| Parameter | |
|---|---|
| Name | Description |
request |
ListTopicSnapshotsRequest |
| Returns | |
|---|---|
| Type | Description |
ListTopicSnapshotsResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
listTopicSubscriptions(ListTopicSubscriptionsRequest request)
public ListTopicSubscriptionsResponse listTopicSubscriptions(ListTopicSubscriptionsRequest request)Lists the names of the attached subscriptions on this topic.
| Parameter | |
|---|---|
| Name | Description |
request |
ListTopicSubscriptionsRequest |
| Returns | |
|---|---|
| Type | Description |
ListTopicSubscriptionsResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
listTopics(ListTopicsRequest request)
public ListTopicsResponse listTopics(ListTopicsRequest request)Lists matching topics.
| Parameter | |
|---|---|
| Name | Description |
request |
ListTopicsRequest |
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
publish(PublishRequest request)
public PublishResponse publish(PublishRequest request) Adds one or more messages to the topic. Returns NOT_FOUND if the topic
does not exist.
| Parameter | |
|---|---|
| Name | Description |
request |
PublishRequest |
| Returns | |
|---|---|
| Type | Description |
PublishResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|
updateTopic(UpdateTopicRequest request)
public Topic updateTopic(UpdateTopicRequest request)Updates an existing topic by updating the fields specified in the update mask. Note that certain properties of a topic are not modifiable.
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateTopicRequest |
| Returns | |
|---|---|
| Type | Description |
Topic |
|
| Exceptions | |
|---|---|
| Type | Description |
io.grpc.StatusException |
|