Class AdminServiceGrpc.AdminServiceStub (1.5.5) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 1.5.5keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   static   final   class  AdminServiceGrpc . AdminServiceStub   extends   AbstractAsyncStub<AdminServiceGrpc . AdminServiceStub > 
   
   The service that a client application uses to manage topics and
 subscriptions, such creating, listing, and deleting topics and subscriptions.
 
  
    Inheritance 
    java.lang.Object    >  
    io.grpc.stub.AbstractStub    >  
    io.grpc.stub.AbstractAsyncStub    >  
    AdminServiceGrpc.AdminServiceStub 
   
  
    Inherited Members 
    
      io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel) 
    
    
      io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions) 
    
    
      io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T) 
    
    
      io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions) 
    
    
      io.grpc.stub.AbstractStub.getCallOptions() 
    
    
      io.grpc.stub.AbstractStub.getChannel() 
    
    
      io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials) 
    
    
      io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel) 
    
    
      io.grpc.stub.AbstractStub.withCompression(java.lang.String) 
    
    
      io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline) 
    
    
      io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit) 
    
    
      io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor) 
    
    
      io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...) 
    
    
      io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int) 
    
    
      io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int) 
    
    
      io.grpc.stub.AbstractStub.withWaitForReady() 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Methods
   
   
  build(Channel channel, CallOptions callOptions) 
  
    
protected   AdminServiceGrpc . AdminServiceStub   build ( Channel   channel ,   CallOptions   callOptions )  
   
  Parameters 
  
    
      
        Name  
        Description  
       
      
        channel  
        io.grpc.Channel  
       
      
        callOptions  
        io.grpc.CallOptions  
       
     
  
  Returns 
  
  Overrides 
  io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions) 
   
  createReservation(CreateReservationRequest request, StreamObserver<Reservation> responseObserver) 
  
    
public   void   createReservation ( CreateReservationRequest   request ,   StreamObserver<Reservation>   responseObserver )  
   
   Creates a new reservation.
 
  Parameters 
  
   
  createSubscription(CreateSubscriptionRequest request, StreamObserver<Subscription> responseObserver) 
  
    
public   void   createSubscription ( CreateSubscriptionRequest   request ,   StreamObserver<Subscription>   responseObserver )  
   
   Creates a new subscription.
 
  Parameters 
  
   
  createTopic(CreateTopicRequest request, StreamObserver<Topic> responseObserver) 
  
    
public   void   createTopic ( CreateTopicRequest   request ,   StreamObserver<Topic>   responseObserver )  
   
  
  Parameters 
  
   
  deleteReservation(DeleteReservationRequest request, StreamObserver<Empty> responseObserver) 
  
    
public   void   deleteReservation ( DeleteReservationRequest   request ,   StreamObserver<Empty>   responseObserver )  
   
   Deletes the specified reservation.
 
  Parameters 
  
   
  deleteSubscription(DeleteSubscriptionRequest request, StreamObserver<Empty> responseObserver) 
  
    
public   void   deleteSubscription ( DeleteSubscriptionRequest   request ,   StreamObserver<Empty>   responseObserver )  
   
   Deletes the specified subscription.
 
  Parameters 
  
   
  deleteTopic(DeleteTopicRequest request, StreamObserver<Empty> responseObserver) 
  
    
public   void   deleteTopic ( DeleteTopicRequest   request ,   StreamObserver<Empty>   responseObserver )  
   
   Deletes the specified topic.
 
  Parameters 
  
   
  getReservation(GetReservationRequest request, StreamObserver<Reservation> responseObserver) 
  
    
public   void   getReservation ( GetReservationRequest   request ,   StreamObserver<Reservation>   responseObserver )  
   
   Returns the reservation configuration.
 
  Parameters 
  
   
  getSubscription(GetSubscriptionRequest request, StreamObserver<Subscription> responseObserver) 
  
    
public   void   getSubscription ( GetSubscriptionRequest   request ,   StreamObserver<Subscription>   responseObserver )  
   
   Returns the subscription configuration.
 
  Parameters 
  
   
  getTopic(GetTopicRequest request, StreamObserver<Topic> responseObserver) 
  
    
public   void   getTopic ( GetTopicRequest   request ,   StreamObserver<Topic>   responseObserver )  
   
   Returns the topic configuration.
 
  Parameters 
  
   
  getTopicPartitions(GetTopicPartitionsRequest request, StreamObserver<TopicPartitions> responseObserver) 
  
    
public   void   getTopicPartitions ( GetTopicPartitionsRequest   request ,   StreamObserver<TopicPartitions>   responseObserver )  
   
   Returns the partition information for the requested topic.
 
  Parameters 
  
   
  listReservationTopics(ListReservationTopicsRequest request, StreamObserver<ListReservationTopicsResponse> responseObserver) 
  
    
public   void   listReservationTopics ( ListReservationTopicsRequest   request ,   StreamObserver<ListReservationTopicsResponse>   responseObserver )  
   
   Lists the topics attached to the specified reservation.
 
  Parameters 
  
   
  listReservations(ListReservationsRequest request, StreamObserver<ListReservationsResponse> responseObserver) 
  
    
public   void   listReservations ( ListReservationsRequest   request ,   StreamObserver<ListReservationsResponse>   responseObserver )  
   
   Returns the list of reservations for the given project.
 
  Parameters 
  
   
  listSubscriptions(ListSubscriptionsRequest request, StreamObserver<ListSubscriptionsResponse> responseObserver) 
  
    
public   void   listSubscriptions ( ListSubscriptionsRequest   request ,   StreamObserver<ListSubscriptionsResponse>   responseObserver )  
   
   Returns the list of subscriptions for the given project.
 
  Parameters 
  
   
  listTopicSubscriptions(ListTopicSubscriptionsRequest request, StreamObserver<ListTopicSubscriptionsResponse> responseObserver) 
  
    
public   void   listTopicSubscriptions ( ListTopicSubscriptionsRequest   request ,   StreamObserver<ListTopicSubscriptionsResponse>   responseObserver )  
   
   Lists the subscriptions attached to the specified topic.
 
  Parameters 
  
   
  listTopics(ListTopicsRequest request, StreamObserver<ListTopicsResponse> responseObserver) 
  
    
public   void   listTopics ( ListTopicsRequest   request ,   StreamObserver<ListTopicsResponse>   responseObserver )  
   
   Returns the list of topics for the given project.
 
  Parameters 
  
   
  seekSubscription(SeekSubscriptionRequest request, StreamObserver<Operation> responseObserver) 
  
    
public   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 
  
   
  updateReservation(UpdateReservationRequest request, StreamObserver<Reservation> responseObserver) 
  
    
public   void   updateReservation ( UpdateReservationRequest   request ,   StreamObserver<Reservation>   responseObserver )  
   
   Updates properties of the specified reservation.
 
  Parameters 
  
   
  updateSubscription(UpdateSubscriptionRequest request, StreamObserver<Subscription> responseObserver) 
  
    
public   void   updateSubscription ( UpdateSubscriptionRequest   request ,   StreamObserver<Subscription>   responseObserver )  
   
   Updates properties of the specified subscription.
 
  Parameters 
  
   
  updateTopic(UpdateTopicRequest request, StreamObserver<Topic> responseObserver) 
  
    
public   void   updateTopic ( UpdateTopicRequest   request ,   StreamObserver<Topic>   responseObserver )  
   
   Updates properties of the specified topic.
 
  Parameters 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]