Interface AdminServiceGrpc.AsyncService (1.12.15)

public static interface AdminServiceGrpc.AsyncService

The service that a client application uses to manage topics and subscriptions, such creating, listing, and deleting topics and subscriptions.

Methods

createReservation(CreateReservationRequest request, StreamObserver<Reservation> responseObserver)

public default void createReservation(CreateReservationRequest request, StreamObserver<Reservation> responseObserver)

Creates a new reservation.

Parameters
NameDescription
requestCreateReservationRequest
responseObserverio.grpc.stub.StreamObserver<Reservation>

createSubscription(CreateSubscriptionRequest request, StreamObserver<Subscription> responseObserver)

public default void createSubscription(CreateSubscriptionRequest request, StreamObserver<Subscription> responseObserver)

Creates a new subscription.

Parameters
NameDescription
requestCreateSubscriptionRequest
responseObserverio.grpc.stub.StreamObserver<Subscription>

createTopic(CreateTopicRequest request, StreamObserver<Topic> responseObserver)

public default void createTopic(CreateTopicRequest request, StreamObserver<Topic> responseObserver)

Creates a new topic.

Parameters
NameDescription
requestCreateTopicRequest
responseObserverio.grpc.stub.StreamObserver<Topic>

deleteReservation(DeleteReservationRequest request, StreamObserver<Empty> responseObserver)

public default void deleteReservation(DeleteReservationRequest request, StreamObserver<Empty> responseObserver)

Deletes the specified reservation.

Parameters
NameDescription
requestDeleteReservationRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteSubscription(DeleteSubscriptionRequest request, StreamObserver<Empty> responseObserver)

public default void deleteSubscription(DeleteSubscriptionRequest request, StreamObserver<Empty> responseObserver)

Deletes the specified subscription.

Parameters
NameDescription
requestDeleteSubscriptionRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteTopic(DeleteTopicRequest request, StreamObserver<Empty> responseObserver)

public default void deleteTopic(DeleteTopicRequest request, StreamObserver<Empty> responseObserver)

Deletes the specified topic.

Parameters
NameDescription
requestDeleteTopicRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getReservation(GetReservationRequest request, StreamObserver<Reservation> responseObserver)

public default void getReservation(GetReservationRequest request, StreamObserver<Reservation> responseObserver)

Returns the reservation configuration.

Parameters
NameDescription
requestGetReservationRequest
responseObserverio.grpc.stub.StreamObserver<Reservation>

getSubscription(GetSubscriptionRequest request, StreamObserver<Subscription> responseObserver)

public default void getSubscription(GetSubscriptionRequest request, StreamObserver<Subscription> responseObserver)

Returns the subscription configuration.

Parameters
NameDescription
requestGetSubscriptionRequest
responseObserverio.grpc.stub.StreamObserver<Subscription>

getTopic(GetTopicRequest request, StreamObserver<Topic> responseObserver)

public default void getTopic(GetTopicRequest request, StreamObserver<Topic> responseObserver)

Returns the topic configuration.

Parameters
NameDescription
requestGetTopicRequest
responseObserverio.grpc.stub.StreamObserver<Topic>

getTopicPartitions(GetTopicPartitionsRequest request, StreamObserver<TopicPartitions> responseObserver)

public default void getTopicPartitions(GetTopicPartitionsRequest request, StreamObserver<TopicPartitions> responseObserver)

Returns the partition information for the requested topic.

Parameters
NameDescription
requestGetTopicPartitionsRequest
responseObserverio.grpc.stub.StreamObserver<TopicPartitions>

listReservationTopics(ListReservationTopicsRequest request, StreamObserver<ListReservationTopicsResponse> responseObserver)

public default void listReservationTopics(ListReservationTopicsRequest request, StreamObserver<ListReservationTopicsResponse> responseObserver)

Lists the topics attached to the specified reservation.

Parameters
NameDescription
requestListReservationTopicsRequest
responseObserverio.grpc.stub.StreamObserver<ListReservationTopicsResponse>

listReservations(ListReservationsRequest request, StreamObserver<ListReservationsResponse> responseObserver)

public default void listReservations(ListReservationsRequest request, StreamObserver<ListReservationsResponse> responseObserver)

Returns the list of reservations for the given project.

Parameters
NameDescription
requestListReservationsRequest
responseObserverio.grpc.stub.StreamObserver<ListReservationsResponse>

listSubscriptions(ListSubscriptionsRequest request, StreamObserver<ListSubscriptionsResponse> responseObserver)

public default void listSubscriptions(ListSubscriptionsRequest request, StreamObserver<ListSubscriptionsResponse> responseObserver)

Returns the list of subscriptions for the given project.

Parameters
NameDescription
requestListSubscriptionsRequest
responseObserverio.grpc.stub.StreamObserver<ListSubscriptionsResponse>

listTopicSubscriptions(ListTopicSubscriptionsRequest request, StreamObserver<ListTopicSubscriptionsResponse> responseObserver)

public default void listTopicSubscriptions(ListTopicSubscriptionsRequest request, StreamObserver<ListTopicSubscriptionsResponse> responseObserver)

Lists the subscriptions attached to the specified topic.

Parameters
NameDescription
requestListTopicSubscriptionsRequest
responseObserverio.grpc.stub.StreamObserver<ListTopicSubscriptionsResponse>

listTopics(ListTopicsRequest request, StreamObserver<ListTopicsResponse> responseObserver)

public default void listTopics(ListTopicsRequest request, StreamObserver<ListTopicsResponse> responseObserver)

Returns the list of topics for the given project.

Parameters
NameDescription
requestListTopicsRequest
responseObserverio.grpc.stub.StreamObserver<ListTopicsResponse>

seekSubscription(SeekSubscriptionRequest request, StreamObserver<Operation> responseObserver)

public default void seekSubscription(SeekSubscriptionRequest request, StreamObserver<Operation> responseObserver)

Performs an out-of-band seek for a subscription to a specified target, which may be timestamps or named positions within the message backlog. Seek translates these targets to cursors for each partition and orchestrates subscribers to start consuming messages from these seek cursors. If an operation is returned, the seek has been registered and subscribers will eventually receive messages from the seek cursors (i.e. eventual consistency), as long as they are using a minimum supported client library version and not a system that tracks cursors independently of Pub/Sub Lite (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for unsupported clients. If clients would like to know when subscribers react to the seek (or not), they can poll the operation. The seek operation will succeed and complete once subscribers are ready to receive messages from the seek cursors for all partitions of the topic. This means that the seek operation will not complete until all subscribers come online. If the previous seek operation has not yet completed, it will be aborted and the new invocation of seek will supersede it.

Parameters
NameDescription
requestSeekSubscriptionRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateReservation(UpdateReservationRequest request, StreamObserver<Reservation> responseObserver)

public default void updateReservation(UpdateReservationRequest request, StreamObserver<Reservation> responseObserver)

Updates properties of the specified reservation.

Parameters
NameDescription
requestUpdateReservationRequest
responseObserverio.grpc.stub.StreamObserver<Reservation>

updateSubscription(UpdateSubscriptionRequest request, StreamObserver<Subscription> responseObserver)

public default void updateSubscription(UpdateSubscriptionRequest request, StreamObserver<Subscription> responseObserver)

Updates properties of the specified subscription.

Parameters
NameDescription
requestUpdateSubscriptionRequest
responseObserverio.grpc.stub.StreamObserver<Subscription>

updateTopic(UpdateTopicRequest request, StreamObserver<Topic> responseObserver)

public default void updateTopic(UpdateTopicRequest request, StreamObserver<Topic> responseObserver)

Updates properties of the specified topic.

Parameters
NameDescription
requestUpdateTopicRequest
responseObserverio.grpc.stub.StreamObserver<Topic>