
    sOiEZ                     d    d Z ddlZddlmZ  G d de      Z G d de      Zd	 Z G d
 de      Z	y)zEClient and server classes corresponding to protobuf-defined services.    N   )collections_pb2c                       e Zd ZdZd Zy)CollectionsStub8Missing associated documentation comment in .proto file.c                     |j                  dt        j                  j                  t        j                  j
                        | _        |j                  dt        j                  j                  t        j                  j
                        | _	        |j                  dt        j                  j                  t        j                  j
                        | _        |j                  dt        j                  j                  t        j                  j
                        | _        |j                  dt        j                  j                  t        j                  j
                        | _        |j                  dt        j"                  j                  t        j                  j
                        | _        |j                  dt        j&                  j                  t        j(                  j
                        | _        |j                  d	t        j,                  j                  t        j(                  j
                        | _        |j                  d
t        j0                  j                  t        j2                  j
                        | _        |j                  dt        j6                  j                  t        j8                  j
                        | _        |j                  dt        j<                  j                  t        j>                  j
                        | _         |j                  dt        jB                  j                  t        jD                  j
                        | _#        |j                  dt        jH                  j                  t        jJ                  j
                        | _&        |j                  dt        jN                  j                  t        jP                  j
                        | _)        y)zIConstructor.

        Args:
            channel: A grpc.Channel.
        /qdrant.Collections/Get)request_serializerresponse_deserializer/qdrant.Collections/List/qdrant.Collections/Create/qdrant.Collections/Update/qdrant.Collections/Delete!/qdrant.Collections/UpdateAliases)/qdrant.Collections/ListCollectionAliases/qdrant.Collections/ListAliases)/qdrant.Collections/CollectionClusterInfo$/qdrant.Collections/CollectionExists0/qdrant.Collections/UpdateCollectionClusterSetup"/qdrant.Collections/CreateShardKey"/qdrant.Collections/DeleteShardKey!/qdrant.Collections/ListShardKeysN)*unary_unarycollections__pb2GetCollectionInfoRequestSerializeToStringGetCollectionInfoResponse
FromStringGetListCollectionsRequestListCollectionsResponseListCreateCollectionCollectionOperationResponseCreateUpdateCollectionUpdateDeleteCollectionDeleteChangeAliasesUpdateAliasesListCollectionAliasesRequestListAliasesResponseListCollectionAliasesListAliasesRequestListAliasesCollectionClusterInfoRequestCollectionClusterInfoResponseCollectionClusterInfoCollectionExistsRequestCollectionExistsResponseCollectionExists#UpdateCollectionClusterSetupRequest$UpdateCollectionClusterSetupResponseUpdateCollectionClusterSetupCreateShardKeyRequestCreateShardKeyResponseCreateShardKeyDeleteShardKeyRequestDeleteShardKeyResponseDeleteShardKeyListShardKeysRequestListShardKeysResponseListShardKeys)selfchannels     v/volume1/homes/robertsu/coba/app/.venv/lib/python3.12/site-packages/qdrant_client/grpc/collections_service_pb2_grpc.py__init__zCollectionsStub.__init__   s8    &&)#3#L#L#^#^&6&P&P&[&[ ' 
 ''*#3#J#J#\#\&6&N&N&Y&Y ( 	
 )),#3#D#D#V#V&6&R&R&]&] * 
 )),#3#D#D#V#V&6&R&R&]&] * 
 )),#3#D#D#V#V&6&R&R&]&] * 
 %003#3#A#A#S#S&6&R&R&]&] 1 
 &-%8%8;#3#P#P#b#b&6&J&J&U&U &9 &"
 #..1#3#F#F#X#X&6&J&J&U&U / 
 &-%8%8;#3#P#P#b#b&6&T&T&_&_ &9 &"
 !( 3 36#3#K#K#]#]&6&O&O&Z&Z !4 !
 -4,?,?B#3#W#W#i#i&6&[&[&f&f -@ -)
 &114#3#I#I#[#[&6&M&M&X&X 2 
 &114#3#I#I#[#[&6&M&M&X&X 2 
 %003#3#H#H#Z#Z&6&L&L&W&W 1     N)__name__
__module____qualname____doc__rF    rG   rE   r   r      s    BKrG   r   c                   d    e Zd ZdZd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Zd Zd Zd Zd Zy)CollectionsServicerr   c                     |j                  t        j                  j                         |j	                  d       t        d      )zEGet detailed information about specified existing collection
        Method not implemented!set_codegrpc
StatusCodeUNIMPLEMENTEDset_detailsNotImplementedErrorrC   requestcontexts      rE   r   zCollectionsServicer.Get\   7     	66756!";<<rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )z6Get list of names of all existing collections
        rP   rQ   rX   s      rE   r"   zCollectionsServicer.Listc   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )z4Create new collection with given parameters
        rP   rQ   rX   s      rE   r%   zCollectionsServicer.Createj   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )z5Update parameters of the existing collection
        rP   rQ   rX   s      rE   r'   zCollectionsServicer.Updateq   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )z0Drop collection and all associated data
        rP   rQ   rX   s      rE   r)   zCollectionsServicer.Deletex   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )z2Update Aliases of the existing collection
        rP   rQ   rX   s      rE   r+   z!CollectionsServicer.UpdateAliases   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )z1Get list of all aliases for a collection
        rP   rQ   rX   s      rE   r.   z)CollectionsServicer.ListCollectionAliases   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )z=Get list of all aliases for all existing collections
        rP   rQ   rX   s      rE   r0   zCollectionsServicer.ListAliases   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )z1Get cluster information for a collection
        rP   rQ   rX   s      rE   r3   z)CollectionsServicer.CollectionClusterInfo   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )z,Check the existence of a collection
        rP   rQ   rX   s      rE   r6   z$CollectionsServicer.CollectionExists   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )z.Update cluster setup for a collection
        rP   rQ   rX   s      rE   r9   z0CollectionsServicer.UpdateCollectionClusterSetup   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )zCreate shard key
        rP   rQ   rX   s      rE   r<   z"CollectionsServicer.CreateShardKey   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )zDelete shard key
        rP   rQ   rX   s      rE   r?   z"CollectionsServicer.DeleteShardKey   r[   rG   c                     |j                  t        j                  j                         |j	                  d       t        d      )zList shard keys
        rP   rQ   rX   s      rE   rB   z!CollectionsServicer.ListShardKeys   r[   rG   N)rH   rI   rJ   rK   r   r"   r%   r'   r)   r+   r.   r0   r3   r6   r9   r<   r?   rB   rL   rG   rE   rN   rN   Y   sK    B==============rG   rN   c                 6	   t        j                  | j                  t        j                  j
                  t        j                  j                        t        j                  | j                  t        j                  j
                  t        j                  j                        t        j                  | j                  t        j                  j
                  t        j                  j                        t        j                  | j                  t        j                  j
                  t        j                  j                        t        j                  | j                   t        j"                  j
                  t        j                  j                        t        j                  | j$                  t        j&                  j
                  t        j                  j                        t        j                  | j(                  t        j*                  j
                  t        j,                  j                        t        j                  | j.                  t        j0                  j
                  t        j,                  j                        t        j                  | j2                  t        j4                  j
                  t        j6                  j                        t        j                  | j8                  t        j:                  j
                  t        j<                  j                        t        j                  | j>                  t        j@                  j
                  t        jB                  j                        t        j                  | jD                  t        jF                  j
                  t        jH                  j                        t        j                  | jJ                  t        jL                  j
                  t        jN                  j                        t        j                  | jP                  t        jR                  j
                  t        jT                  j                        d}t        jV                  d|      }|jY                  |f       y )N)request_deserializerresponse_serializer)r   r"   r%   r'   r)   r+   r.   r0   r3   r6   r9   r<   r?   rB   zqdrant.Collections)-rS   unary_unary_rpc_method_handlerr   r   r   r   r   r   r"   r    r!   r%   r#   r$   r'   r&   r)   r(   r+   r*   r.   r,   r-   r0   r/   r3   r1   r2   r6   r4   r5   r9   r7   r8   r<   r:   r;   r?   r=   r>   rB   r@   rA   method_handlers_generic_handleradd_generic_rpc_handlers)servicerserverrpc_method_handlersgeneric_handlers       rE   !add_CollectionsServicer_to_serverrs      s,   66LL)9)R)R)])](8(R(R(d(d
 77MM)9)P)P)[)[(8(P(P(b(b
 99OO)9)J)J)U)U(8(T(T(f(f
 99OO)9)J)J)U)U(8(T(T(f(f
 99OO)9)J)J)U)U(8(T(T(f(f
 "@@**)9)G)G)R)R(8(T(T(f(f
 &*%H%H22)9)V)V)a)a(8(L(L(^(^&
  >>(()9)L)L)W)W(8(L(L(^(^
 &*%H%H22)9)V)V)a)a(8(V(V(h(h&
 !% C C--)9)Q)Q)\)\(8(Q(Q(c(c!
 -1,O,O99)9)])])h)h(8(](](o(o-
 #AA++)9)O)O)Z)Z(8(O(O(a(a
 #AA++)9)O)O)Z)Z(8(O(O(a(a
 "@@**)9)N)N)Y)Y(8(N(N(`(`EGP :: "57O
##_$67rG   c                      e Zd ZdZe	 	 	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 	 	 dd       Z	e	 	 	 	 	 	 	 	 dd       Z
e	 	 	 	 	 	 	 	 dd	       Ze	 	 	 	 	 	 	 	 dd
       Ze	 	 	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 	 	 dd       Zy)Collectionsr   Nc
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr	   )rS   experimentalr   r   r   r   r   r   
rY   targetoptionschannel_credentialscall_credentialsinsecurecompressionwait_for_readytimeoutmetadatas
             rE   r   zCollections.Get  sX       ,,Wf>W55GG66AA(&^Wh	X 	XrG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r    r   r!   r   rx   s
             rE   r"   zCollections.List"  sX       ,,Wf>X33EE44??(&^Wh	X 	XrG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r#   r   r$   r   rx   s
             rE   r%   zCollections.Create3  X       ,,Wf>Z--??88CC(&^Wh	X 	XrG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r&   r   r$   r   rx   s
             rE   r'   zCollections.UpdateD  r   rG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r(   r   r$   r   rx   s
             rE   r)   zCollections.DeleteU  r   rG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r*   r   r$   r   rx   s
             rE   r+   zCollections.UpdateAliasesf  sX       ,,Wf>a**<<88CC(&^Wh	X 	XrG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r,   r   r-   r   rx   s
             rE   r.   z!Collections.ListCollectionAliasesw  sX       ,,Wf>i99KK00;;(&^Wh	X 	XrG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r/   r   r-   r   rx   s
             rE   r0   zCollections.ListAliases  sX       ,,Wf>_//AA00;;(&^Wh	X 	XrG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r1   r   r2   r   rx   s
             rE   r3   z!Collections.CollectionClusterInfo  sX       ,,Wf>i99KK::EE(&^Wh	X 	XrG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r4   r   r5   r   rx   s
             rE   r6   zCollections.CollectionExists  sX       ,,Wf>d44FF55@@(&^Wh	X 	XrG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r7   r   r8   r   rx   s
             rE   r9   z(Collections.UpdateCollectionClusterSetup  sX       ,,Wf>p@@RRAALL(&^Wh	X 	XrG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r:   r   r;   r   rx   s
             rE   r<   zCollections.CreateShardKey  X       ,,Wf>b22DD33>>(&^Wh	X 	XrG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r=   r   r>   r   rx   s
             rE   r?   zCollections.DeleteShardKey  r   rG   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rS   rw   r   r   r@   r   rA   r   rx   s
             rE   rB   zCollections.ListShardKeys  sX       ,,Wf>a11CC22==(&^Wh	X 	XrG   )rL   NNFNNNN)rH   rI   rJ   rK   staticmethodr   r"   r%   r'   r)   r+   r.   r0   r3   r6   r9   r<   r?   rB   rL   rG   rE   ru   ru     s   B  $!X X    $!X X    $!X X    $!X X    $!X X    $!X X    $!X X    $!X X    $!X X    $!X X    $!X X    $!X X    $!X X    $!X XrG   ru   )
rK   rS    r   r   objectr   rN   rs   ru   rL   rG   rE   <module>r      sC    K  1Nf Nbc=& c=LK8^oX& oXrG   