public static final class AdminServiceGrpc.AdminServiceStub extends io.grpc.stub.AbstractAsyncStub<AdminServiceGrpc.AdminServiceStub>
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.AdminServiceStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
createSubscription(CreateSubscriptionRequest request,
io.grpc.stub.StreamObserver<Subscription> responseObserver)
Creates a new subscription.
|
void |
createTopic(CreateTopicRequest request,
io.grpc.stub.StreamObserver<Topic> responseObserver)
Creates a new topic.
|
void |
deleteSubscription(DeleteSubscriptionRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified subscription.
|
void |
deleteTopic(DeleteTopicRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified topic.
|
void |
getSubscription(GetSubscriptionRequest request,
io.grpc.stub.StreamObserver<Subscription> responseObserver)
Returns the subscription configuration.
|
void |
getTopic(GetTopicRequest request,
io.grpc.stub.StreamObserver<Topic> responseObserver)
Returns the topic configuration.
|
void |
getTopicPartitions(GetTopicPartitionsRequest request,
io.grpc.stub.StreamObserver<TopicPartitions> responseObserver)
Returns the partition information for the requested topic.
|
void |
listSubscriptions(ListSubscriptionsRequest request,
io.grpc.stub.StreamObserver<ListSubscriptionsResponse> responseObserver)
Returns the list of subscriptions for the given project.
|
void |
listTopics(ListTopicsRequest request,
io.grpc.stub.StreamObserver<ListTopicsResponse> responseObserver)
Returns the list of topics for the given project.
|
void |
listTopicSubscriptions(ListTopicSubscriptionsRequest request,
io.grpc.stub.StreamObserver<ListTopicSubscriptionsResponse> responseObserver)
Lists the subscriptions attached to the specified topic.
|
void |
updateSubscription(UpdateSubscriptionRequest request,
io.grpc.stub.StreamObserver<Subscription> responseObserver)
Updates properties of the specified subscription.
|
void |
updateTopic(UpdateTopicRequest request,
io.grpc.stub.StreamObserver<Topic> responseObserver)
Updates properties of the specified topic.
|
protected AdminServiceGrpc.AdminServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<AdminServiceGrpc.AdminServiceStub>public void createTopic(CreateTopicRequest request, io.grpc.stub.StreamObserver<Topic> responseObserver)
Creates a new topic.
public void getTopic(GetTopicRequest request, io.grpc.stub.StreamObserver<Topic> responseObserver)
Returns the topic configuration.
public void getTopicPartitions(GetTopicPartitionsRequest request, io.grpc.stub.StreamObserver<TopicPartitions> responseObserver)
Returns the partition information for the requested topic.
public void listTopics(ListTopicsRequest request, io.grpc.stub.StreamObserver<ListTopicsResponse> responseObserver)
Returns the list of topics for the given project.
public void updateTopic(UpdateTopicRequest request, io.grpc.stub.StreamObserver<Topic> responseObserver)
Updates properties of the specified topic.
public void deleteTopic(DeleteTopicRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified topic.
public void listTopicSubscriptions(ListTopicSubscriptionsRequest request, io.grpc.stub.StreamObserver<ListTopicSubscriptionsResponse> responseObserver)
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 void createSubscription(CreateSubscriptionRequest request, io.grpc.stub.StreamObserver<Subscription> responseObserver)
Creates a new subscription.
public void getSubscription(GetSubscriptionRequest request, io.grpc.stub.StreamObserver<Subscription> responseObserver)
Returns the subscription configuration.
public void listSubscriptions(ListSubscriptionsRequest request, io.grpc.stub.StreamObserver<ListSubscriptionsResponse> responseObserver)
Returns the list of subscriptions for the given project.
public void updateSubscription(UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver<Subscription> responseObserver)
Updates properties of the specified subscription.
public void deleteSubscription(DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified subscription.
Copyright © 2020 Google LLC. All rights reserved.