
                             d dl mZmZ d dlmZmZmZmZmZ d dl	m
Z
 d dlmZmZmZ  G d dee      Zeeeee      egef   Zy)	    )abstractmethodABCMeta)AsyncContextManagerCallableListSetOptional)Message)SubscriptionPathFlowControlSettings	Partitionc                   ,    e Zd ZdZedee   fd       Zy)AsyncSingleSubscriberz
    A Cloud Pub/Sub asynchronous subscriber.

    Must be used in an `async with` block or have __aenter__() awaited before use.
    returnc                    K   t               w)a  
        Read the next batch off of the stream.

        Returns:
          The next batch of messages. ack() or nack() must eventually be called
          exactly once on each message.

          Pub/Sub Lite does not support nack() by default- if you do call nack(), it will immediately fail the client
          unless you have a NackHandler installed.

        Raises:
          GoogleAPICallError: On a permanent error.
        )NotImplementedError)selfs    Qlib/third_party/google/cloud/pubsublite/cloudpubsub/internal/single_subscriber.pyreadzAsyncSingleSubscriber.read"   s      "##s   N)__name__
__module____qualname____doc__r   r   r
   r        r   r   r      s&     $DM $ $r   r   )	metaclassN)abcr   r   typingr   r   r   r   r	   )google.cloud.pubsub_v1.subscriber.messager
   google.cloud.pubsublite.typesr   r   r   r   AsyncSubscriberFactoryr   r   r   <module>r"      sU    ( E E = $/7 $2 "xI/1DE r   