
                             d dl mZmZmZ d dlmZmZ  ed      Z ed      Z G d ded   eeef   e      Z	 G d d	eeef   e      Z
y
)    )GenericTypeVarAsyncContextManager)abstractmethodABCMetaRequestResponsec                   @    e Zd ZdZededdfd       Zedefd       Zy)
Connectionze
    A connection to an underlying stream. Only one call to 'read' may be outstanding at a time.
    requestreturnNc                    K   t               w)z
        Write a message to the stream.

        Raises:
          GoogleAPICallError: When the connection terminates in failure.
        NotImplementedError)selfr   s     Clib/third_party/google/cloud/pubsublite/internal/wire/connection.pywritezConnection.write         "##   c                    K   t               w)z
        Read a message off of the stream.

        Raises:
          GoogleAPICallError: When the connection terminates in failure.
        r   r   s    r   readzConnection.read'   r   r   )	__name__
__module____qualname____doc__r   r   r   r	   r        r   r   r      sD     $7 $t $ $ $H $ $r   r   )	metaclassc                   0    e Zd ZdZedeeef   fd       Zy)ConnectionFactoryz$A factory for producing Connections.r   c                    K   t               w)Nr   r   s    r   newzConnectionFactory.new5   s     !##r   N)	r   r   r   r   r   r   r   r	   r#   r   r   r   r!   r!   2   s(    .$:gx&78 $ $r   r!   N)typingr   r   r   abcr   r   r   r	   r   r!   r   r   r   <module>r&      s\    9 8 '
)
:$%ww/@'AW$8$ 12g $r   