Ë
    ö%9j  ã                   óD   — d Z ddlmZ ddlmZ  e«       Z G d„ de«      Zy)zFA client for interacting with Google Cloud Storage using the gRPC API.é    )ÚClientWithProject)Ú_storage_v2c                   óT   ‡ — e Zd ZdZedddfdddœˆ fd„Z	 	 	 	 dd„Zed„ «       Zˆ xZ	S )	Ú
GrpcClienta  A client for interacting with Google Cloud Storage using the gRPC API.

    :type project: str or None
    :param project: The project which the client acts on behalf of. If not
                    passed, falls back to the default inferred from the
                    environment.

    :type credentials: :class:`~google.auth.credentials.Credentials`
    :param credentials: (Optional) The OAuth2 Credentials to use for this
                        client. If not passed, falls back to the default
                        inferred from the environment.

    :type client_info: :class:`~google.api_core.client_info.ClientInfo`
    :param client_info:
        The client info used to send a user-agent string along with API
        requests. If ``None``, then default info will be used. Generally,
        you only need to set this if you're developing your own library
        or partner tool.

    :type client_options: :class:`~google.api_core.client_options.ClientOptions` or :class:`dict`
    :param client_options: (Optional) Client options used to set user options
        on the client. A non-default universe domain or API endpoint should be
        set through client_options.

    :type api_key: string
    :param api_key:
        (Optional) An API key. Mutually exclusive with any other credentials.
        This parameter is an alias for setting `client_options.api_key` and
        will supersede any API key set in the `client_options` parameter.

    :type attempt_direct_path: bool
    :param attempt_direct_path:
        (Optional) Whether to attempt to use DirectPath for gRPC connections.
        This provides a direct, unproxied connection to GCS for lower latency
        and higher throughput, and is highly recommended when running on Google
        Cloud infrastructure. Defaults to ``True``.
    NT)Úapi_keyÚattempt_direct_pathc                ó¼   •— t         t        | �  ||¬«       t        |t        «      r|r||d<   n|€	|si nd|i}n	|r||_        | j                  ||||¬«      | _        y )N)ÚprojectÚcredentialsr   )r   Úclient_infoÚclient_optionsr   )Úsuperr   Ú__init__Ú
isinstanceÚdictr   Ú_create_gapic_clientÚ_grpc_client)Úselfr
   r   r   r   r   r   Ú	__class__s          €ú\/var/www/html/truck-me/venv/lib/python3.12/site-packages/google/cloud/storage/grpc_client.pyr   zGrpcClient.__init__?   ss   ø€ ô 	Œj˜$Ñ(°ÀkÐ(ÔRä�n¤dÔ+ÙØ,3�˜yÒ)ØÐ#Ù'.™R°YÀÐ4H‰NÙØ%,ˆNÔ"à ×5Ñ5Ø#Ø#Ø)Ø 3ð	 6ó 
ˆÕó    c                 óª   — t         j                  j                  d«      }|j                  |¬«      } |||¬«      }t        j                  ||||¬«      S )z?Creates and configures the low-level GAPIC `storage_v2` client.Úgrpc)r   )r   Úchannel)r   Ú	transportr   r   )Ú
storage_v2ÚStorageClientÚget_transport_classÚcreate_channel)r   r   r   r   r   Útransport_clsr   r   s           r   r   zGrpcClient._create_gapic_clientZ   sY   € ô #×0Ñ0×DÑDÀVÓLˆà×.Ñ.ÐCVÐ.ÓWˆá!¨kÀ7ÔKˆ	ä×'Ñ'Ø#ØØ#Ø)ô	
ð 	
r   c                 ó   — | j                   S )az  The underlying gRPC client.

        This property gives users direct access to the `storage_v2.StorageClient`
         instance. This can be useful for accessing
        newly added or experimental RPCs that are not yet exposed through
        the high-level GrpcClient.

        Returns:
            google.cloud.storage_v2.StorageClient: The configured GAPIC client.
        )r   )r   s    r   Úgrpc_clientzGrpcClient.grpc_cliento   s   € ð × Ñ Ð r   )NNNT)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú_markerr   r   Úpropertyr"   Ú__classcell__)r   s   @r   r   r      sP   ø„ ñ$ðP ØØØð
ð Ø ö
ð: ØØØ ó
ð* ñ!ó ô!r   r   N)	r&   Úgoogle.cloud.clientr   Úgoogle.cloudr   r   Úobjectr'   r   © r   r   ú<module>r.      s'   ðñ Må 1å 2á
‹(€ôc!Ð"õ c!r   