
    ci8+                        d dl mZ d dlmZ d dlZej                  Zej                  dk\  rd dlm	Z	 nd dl
Z	ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z  ddlm!Z! ddlm"Z" ddlm#Z# ddlm$Z$ ddlm%Z% ddlm&Z& ddlm'Z' ddlm(Z( dd lm)Z) dd!lm*Z* dd"lm+Z+ dd#lm,Z, dd$lm-Z- dd%lm.Z. dd&lm/Z/ dd'lm0Z0 dd(lm1Z1 dd)lm2Z2 dd*lm3Z3 dd+lm4Z4 dd,lm5Z5 dd-lm6Z6 dd.lm7Z7 dd/lm8Z8 dd0lm9Z9 dd1lm:Z: dd2lm;Z; dd3lm<Z< dd4lm=Z= dd5lm>Z> dd6lm?Z? dd7lm@Z@ dd8lmAZA dd9lmBZB dd:lmCZC dd;lmDZD dd<lmEZE dd=lmFZF dd>lmGZG dd?lmHZH dd@lImJZJ ddAlImKZK ddBlImLZL ddClImMZM ddDlImNZN ddElImOZO ddFlImPZP ddGlImQZQ ddHlImRZR ddIlImSZS ddJlImTZT ddKlImUZU ddLlImVZV ddMlImWZW ddNlImXZX ddOlImYZY ddPlImZZZ  e[edQ      r0 e[edR      r' ej                  dS        ej                  dS       d~Zoy	 d dl^Z^d dlZej                  j                         d    ZadSZbej                  dTk  r+ e^j                  dUdVea dWz   dXeb dYz   dZz   d[eb d\z   ed       ej                  dd] dTk(  r. e^j                  d^ea d_d`eb daz   dbz   dcz   ddz   deeb d\z   ed       dfeefdgZfdh ZgdiZhdjZidkZjdlZk egeh      \  ZlZmelr^elejk  rY e^j                  dmeb dneh doz   em dpz   eb dqeh drz   dsei dtek d\z   duz   dvz   dweh dxz   eb dyz   dzz   d{ei d|z   eh d\z   ed       d~Zoy# en$ r  e^j                  d}       Y d~Zoyw xY w)    )gapic_versionN)      )metadata   )PublisherClient)PublisherAsyncClient)SchemaServiceClient)SchemaServiceAsyncClient)SubscriberClient)SubscriberAsyncClient)AcknowledgeRequest)AIInference)BigQueryConfig)CloudStorageConfig)CreateSnapshotRequest)DeadLetterPolicy)DeleteSnapshotRequest)DeleteSubscriptionRequest)DeleteTopicRequest)DetachSubscriptionRequest)DetachSubscriptionResponse)ExpirationPolicy)GetSnapshotRequest)GetSubscriptionRequest)GetTopicRequest)IngestionDataSourceSettings)IngestionFailureEvent)JavaScriptUDF)ListSnapshotsRequest)ListSnapshotsResponse)ListSubscriptionsRequest)ListSubscriptionsResponse)ListTopicSnapshotsRequest)ListTopicSnapshotsResponse)ListTopicsRequest)ListTopicsResponse)ListTopicSubscriptionsRequest)ListTopicSubscriptionsResponse)MessageStoragePolicy)MessageTransform)ModifyAckDeadlineRequest)ModifyPushConfigRequest)PlatformLogsSettings)PublishRequest)PublishResponse)PubsubMessage)PullRequest)PullResponse)
PushConfig)ReceivedMessage)RetryPolicy)SchemaSettings)SeekRequest)SeekResponse)Snapshot)StreamingPullRequest)StreamingPullResponse)Subscription)Topic)UpdateSnapshotRequest)UpdateSubscriptionRequest)UpdateTopicRequest)CommitSchemaRequest)CreateSchemaRequest)DeleteSchemaRequest)DeleteSchemaRevisionRequest)GetSchemaRequest)ListSchemaRevisionsRequest)ListSchemaRevisionsResponse)ListSchemasRequest)ListSchemasResponse)RollbackSchemaRequest)Schema)ValidateMessageRequest)ValidateMessageResponse)ValidateSchemaRequest)ValidateSchemaResponse)Encoding)
SchemaViewcheck_python_versioncheck_dependency_versionszgoogle.pubsub_v1)r   	   z-You are using a non-supported Python version (z%).  Google will not post any further zupdates to z! supporting this Python version. z3Please upgrade to the latest Python version, or at z%least to Python 3.9, and then update .   z You are using a Python version (z) z%which Google will stop supporting in z in zJanuary 2026. Please z,upgrade to the latest Python version, or at z'least to Python 3.10, before then, and zthen update version_stringc                     g }| j                  d      D ]  }	 |j                  t        |              t	        |      S # t        $ r Y  t	        |      S w xY w)a  Safely converts a semantic version string to a comparable tuple of integers.
            Example: "4.25.8" -> (4, 25, 8)
            Ignores non-numeric parts and handles common version formats.
            Args:
                version_string: Version string in the format "x.y.z" or "x.y.z<suffix>"
            Returns:
                Tuple of integers for the parsed version string.
            rW   )splitappendint
ValueErrortuple)rY   partsparts      @/tmp/pip-target-z3e9_cxr/lib/python/google/pubsub_v1/__init__.pyparse_version_to_tuplerc      sd     E&,,S1 LLT+ < "  <s   ?	AAc                 j    	 t        j                  |       }t        |      }||fS # t        $ r Y yw xY w)N)Nz--)r   versionrc   	Exception)dependency_namerY   parsed_versions      rb   _get_versionri      s@    $&.&6&6&G!7!G&77 $ $$s   #& 	22zgoogle.protobufz4.25.8)      r   z (we recommend 6.x)zPackage z depends on z!, currently installed at version z. Future updates to z will require z at zversion z
 or higherz Please ensure z8that either (a) your Python environment doesn't pin the zversion of z, so that updates to z$ can require the higher version, or z:(b) you manually update your Python environment to use at zleast version z of zCould not determine the version of Python currently being used. To continue receiving updates for {_package_label}, ensure you are using a supported version of Python; see https://devguide.python.org/versions/)Kr	   r   r   r   r   r   r   rB   rC   r   r   rD   rE   r   r   r   r   r   rQ   r   rF   r   r   r   r   r   r   rG   rH   rI   rJ   r    r!   r"   r#   r$   r%   r(   r)   r&   r'   r*   r+   r,   r-   r.   r/   r0   r   r1   r2   r3   r4   r5   r6   rK   rL   r
   r7   rR   r8   r9   r:   r;   r<   r   r=   r>   r?   r@   rA   rM   rN   rO   rP   )pgoogle.pubsub_v1r   package_versiongoogle.api_coreapi_coresys__version__version_info	importlibr   importlib_metadataservices.publisherr   r	   services.schema_servicer
   r   services.subscriberr   r   types.pubsubr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   types.schemarB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   hasattrrS   rT   warningsre   r[   _py_version_str_package_labelwarnFutureWarningstrrc   ri   _dependency_package_next_supported_version_next_supported_version_tuple_recommendation_version_used_version_used_stringrf   __all__     rb   <module>r      s    > " 
))v" * 0 4 8 = 1 6 , % ( , / * / 3 , 3 4 * , 0 ) 5 / ' . / 2 3 3 4 + , 7 8 . * 2 1 . ( ) ' % & $ ) % ( % & " . / &  / 3 , - - - 5 * 4 5 , - /   0 1 / 0 " $
8+,)2 "H!!"45&H&&'9:tLmT
++++-a0+f$HMM?o&&KLM//PQR HH :.9IK	L
  BQ6)HMM2?2C2F9.9INO)* AA <	<
 ! 023 	 3 	 (	$ 0"*(2%/0<=P0Q-,]-JJHMM>*,7())JKL)**>?@ $$N3F2GtLM 45Z?PPQR	S
 $$ MM   344IJK $$$HIJ O	O ##:";4@
A ))+, 0L  
6	
L
s   3DM M/.M/