
    ZThP                     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)	users_pb2c                       e Zd ZdZd Zy)UserServiceStub8Missing 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
                        | _        y)zIConstructor.

        Args:
            channel: A grpc.Channel.
        7/sift.users.v2.UserService/UpdateUserOrganizationActive)request_serializerresponse_deserializer"/sift.users.v2.UserService/GetUser*/sift.users.v2.UserService/ListActiveUsersN)unary_unary$sift_dot_users_dot_v2_dot_users__pb2#UpdateUserOrganizationActiveRequestSerializeToString$UpdateUserOrganizationActiveResponse
FromStringUpdateUserOrganizationActiveGetUserRequestGetUserResponseGetUserListActiveUsersRequestListActiveUsersResponseListActiveUsers)selfchannels     a/home/www/backend.miabetepe.com/venv/lib/python3.12/site-packages/sift/users/v2/users_pb2_grpc.py__init__zUserServiceStub.__init__   s     -4,?,?I#G#k#k#}#}&J&o&o&z&z -@ -)
 **4#G#V#V#h#h&J&Z&Z&e&e + 
  '22<#G#^#^#p#p&J&b&b&m&m  3      N)__name__
__module____qualname____doc__r    r   r   r   r      s
    Br   r   c                   "    e Zd ZdZd Zd Zd Zy)UserServiceServicerr   c                     |j                  t        j                  j                         |j	                  d       t        d      )zIUsed to toggle a user's active status within their organization.
        Method not implemented!set_codegrpc
StatusCodeUNIMPLEMENTEDset_detailsNotImplementedErrorr   requestcontexts      r   r   z0UserServiceServicer.UpdateUserOrganizationActive%   7     	66756!";<<r   c                     |j                  t        j                  j                         |j	                  d       t        d      )z!Retrieves a user object.
        r'   r(   r/   s      r   r   zUserServiceServicer.GetUser,   r2   r   c                     |j                  t        j                  j                         |j	                  d       t        d      )zList active users.
        r'   r(   r/   s      r   r   z#UserServiceServicer.ListActiveUsers3   r2   r   N)r   r    r!   r"   r   r   r   r#   r   r   r%   r%   "   s    B===r   r%   c                 @   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                        d}t        j                  d|      }|j                  |f       y )N)request_deserializerresponse_serializer)r   r   r   zsift.users.v2.UserService)r*   unary_unary_rpc_method_handlerr   r   r   r   r   r   r   r   r   r   r   r   method_handlers_generic_handleradd_generic_rpc_handlers)servicerserverrpc_method_handlersgeneric_handlers       r   !add_UserServiceServicer_to_serverr?   ;   s    ,0,O,O99)M)q)q)|)|(L(q(q  )D  )D-
 ::$$)M)\)\)g)g(L(\(\(n(n
  $BB,,)M)d)d)o)o(L(d(d(v(v " ::')<>O
##_$67r   c                   v    e Zd ZdZe	 	 	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 	 	 dd       Ze	 	 	 	 	 	 	 	 dd       Zy)UserServicer   Nc
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )r*   experimentalr   r   r   r   r   r   
r0   targetoptionschannel_credentialscall_credentialsinsecurecompressionwait_for_readytimeoutmetadatas
             r   r   z(UserService.UpdateUserOrganizationActiveV   sX       ,,Wf>w0TTff0UU``(&^Wh	X 	Xr   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )r*   rC   r   r   r   r   r   r   rD   s
             r   r   zUserService.GetUserg   sX       ,,Wf>b0??QQ0@@KK(&^Wh	X 	Xr   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )r*   rC   r   r   r   r   r   r   rD   s
             r   r   zUserService.ListActiveUsersx   sX       ,,Wf>j0GGYY0HHSS(&^Wh	X 	Xr   )r#   NNFNNNN)r   r    r!   r"   staticmethodr   r   r   r#   r   r   rA   rA   S   s    B  $!X X    $!X X    $!X Xr   rA   )
r"   r*   sift.users.v2r   r   objectr   r%   r?   rA   r#   r   r   <module>rS      s9    K  Kf 4=& =2804X& 4Xr   