
    	                     \    S SK JrJr  S SKJrJrJr  S SKJr   " S S\\S9r	 " S S\\S9r
g	)
    )abstractmethodABCMeta)AsyncContextManagerMappingContextManager)futuresc            
       L    \ rS rSrSr\ S
S\S\S\\\4   S\4S jj5       r	Sr
g	)AsyncSinglePublisher   z
An AsyncPublisher publishes messages similar to Google Pub/Sub, but must be used in an
async context. Any publish failures are permanent.

Must be used in an `async with` block or have __aenter__() awaited before use.
dataordering_keyattrsreturnc                    #    [        5       e7f)a;  
Publish a message.

Args:
  data: The bytestring payload of the message
  ordering_key: The key to enforce ordering on, or "" for no ordering.
  **attrs: Additional attributes to send.

Returns:
  An ack id, which can be decoded using MessageMetadata.decode.

Raises:
  GoogleApiCallError: On a permanent failure.
NotImplementedErrorselfr   r   r   s       Plib/third_party/google/cloud/pubsublite/cloudpubsub/internal/single_publisher.pypublishAsyncSinglePublisher.publish   s     $ "##s    N __name__
__module____qualname____firstlineno____doc__r   bytesstrr   r   __static_attributes__r       r   r
   r
      sG     /1$$),$<CCH<M$	$ $r$   r
   )	metaclassc            
       L    \ rS rSrSr\ SS\S\S\\\4   SS4S jj5       r	S	r
g
)SinglePublisher1   z
A Publisher publishes messages similar to Google Pub/Sub. Any publish failures are permanent.

Must be used in a `with` block or have __enter__() called before use.
r   r   r   r   zfutures.Future[str]c                     [        5       e)aS  
Publish a message.

Args:
  data: The bytestring payload of the message
  ordering_key: The key to enforce ordering on, or "" for no ordering.
  **attrs: Additional attributes to send.

Returns:
  A future completed with an ack id, which can be decoded using MessageMetadata.decode.

Raises:
  GoogleApiCallError: On a permanent failure.
r   r   s       r   r   SinglePublisher.publish8   s    $ "##r$   r   Nr   r   r   r$   r   r'   r'   1   sG     /1$$),$<CCH<M$	$ $r$   r'   N)abcr   r   typingr   r   r   
concurrentr   r
   r'   r   r$   r   <module>r.      s0    ( ? ? $.' $:$n $r$   