public static final class AdminServiceGrpc.AdminServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<AdminServiceGrpc.AdminServiceBlockingStub>
The service that a client application uses to manage topics and subscriptions, such creating, listing, and deleting topics and subscriptions.
| Modifier and Type | Method and Description |
|---|---|
protected AdminServiceGrpc.AdminServiceBlockingStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
Subscription |
createSubscription(CreateSubscriptionRequest request)
Creates a new subscription.
|
Topic |
createTopic(CreateTopicRequest request)
Creates a new topic.
|
com.google.protobuf.Empty |
deleteSubscription(DeleteSubscriptionRequest request)
Deletes the specified subscription.
|
com.google.protobuf.Empty |
deleteTopic(DeleteTopicRequest request)
Deletes the specified topic.
|
Subscription |
getSubscription(GetSubscriptionRequest request)
Returns the subscription configuration.
|
Topic |
getTopic(GetTopicRequest request)
Returns the topic configuration.
|
TopicPartitions |
getTopicPartitions(GetTopicPartitionsRequest request)
Returns the partition information for the requested topic.
|
ListSubscriptionsResponse |
listSubscriptions(ListSubscriptionsRequest request)
Returns the list of subscriptions for the given project.
|
ListTopicsResponse |
listTopics(ListTopicsRequest request)
Returns the list of topics for the given project.
|
ListTopicSubscriptionsResponse |
listTopicSubscriptions(ListTopicSubscriptionsRequest request)
Lists the subscriptions attached to the specified topic.
|
Subscription |
updateSubscription(UpdateSubscriptionRequest request)
Updates properties of the specified subscription.
|
Topic |
updateTopic(UpdateTopicRequest request)
Updates properties of the specified topic.
|
protected AdminServiceGrpc.AdminServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<AdminServiceGrpc.AdminServiceBlockingStub>public Topic createTopic(CreateTopicRequest request)
Creates a new topic.
public Topic getTopic(GetTopicRequest request)
Returns the topic configuration.
public TopicPartitions getTopicPartitions(GetTopicPartitionsRequest request)
Returns the partition information for the requested topic.
public ListTopicsResponse listTopics(ListTopicsRequest request)
Returns the list of topics for the given project.
public Topic updateTopic(UpdateTopicRequest request)
Updates properties of the specified topic.
public com.google.protobuf.Empty deleteTopic(DeleteTopicRequest request)
Deletes the specified topic.
public ListTopicSubscriptionsResponse listTopicSubscriptions(ListTopicSubscriptionsRequest request)
Lists the subscriptions attached to the specified topic. (-- aip.dev/not-precedent: ListTopicSubscriptions returns only a list of names rather than full Subscription messages, as ListSubscriptions does. This is consistent with the Cloud Pub/Sub API. --)
public Subscription createSubscription(CreateSubscriptionRequest request)
Creates a new subscription.
public Subscription getSubscription(GetSubscriptionRequest request)
Returns the subscription configuration.
public ListSubscriptionsResponse listSubscriptions(ListSubscriptionsRequest request)
Returns the list of subscriptions for the given project.
public Subscription updateSubscription(UpdateSubscriptionRequest request)
Updates properties of the specified subscription.
public com.google.protobuf.Empty deleteSubscription(DeleteSubscriptionRequest request)
Deletes the specified subscription.
Copyright © 2020 Google LLC. All rights reserved.