
    ZTh֋                     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)	rules_pb2c                       e Zd ZdZd Zy)RuleServiceStub8Missing associated documentation comment in .proto file.c                 l   |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        j2                  j                  t        j4                  j
                        | _        |j                  d
t        j8                  j                  t        j:                  j
                        | _        |j                  dt        j>                  j                  t        j@                  j
                        | _!        |j                  dt        jD                  j                  t        jF                  j
                        | _$        |j                  dt        jJ                  j                  t        jL                  j
                        | _'        |j                  dt        jP                  j                  t        jR                  j
                        | _*        |j                  dt        jV                  j                  t        jX                  j
                        | _-        |j                  dt        j\                  j                  t        j^                  j
                        | _0        |j                  dt        jb                  j                  t        jd                  j
                        | _3        |j                  dt        jh                  j                  t        jj                  j
                        | _6        |j                  dt        jn                  j                  t        jp                  j
                        | _9        |j                  dt        jt                  j                  t        jv                  j
                        | _<        |j                  dt        jz                  j                  t        j|                  j
                        | _?        y)zIConstructor.

        Args:
            channel: A grpc.Channel.
        &/sift.rules.v1.RuleService/SearchRules)request_serializerresponse_deserializer"/sift.rules.v1.RuleService/GetRule(/sift.rules.v1.RuleService/BatchGetRules%/sift.rules.v1.RuleService/CreateRule%/sift.rules.v1.RuleService/UpdateRule+/sift.rules.v1.RuleService/BatchUpdateRules%/sift.rules.v1.RuleService/DeleteRule+/sift.rules.v1.RuleService/BatchDeleteRules'/sift.rules.v1.RuleService/UndeleteRule-/sift.rules.v1.RuleService/BatchUndeleteRules(/sift.rules.v1.RuleService/EvaluateRules1/sift.rules.v1.RuleService/ViewHumanFriendlyRules(/sift.rules.v1.RuleService/ViewJsonRules3/sift.rules.v1.RuleService/UpdateHumanFriendlyRules,/sift.rules.v1.RuleService/ValidateJsonRules*/sift.rules.v1.RuleService/UpdateJsonRules$/sift.rules.v1.RuleService/ListRules+/sift.rules.v1.RuleService/ListRuleVersions)/sift.rules.v1.RuleService/GetRuleVersion//sift.rules.v1.RuleService/BatchGetRuleVersionsN)@unary_unary$sift_dot_rules_dot_v1_dot_rules__pb2SearchRulesRequestSerializeToStringSearchRulesResponse
FromStringSearchRulesGetRuleRequestGetRuleResponseGetRuleBatchGetRulesRequestBatchGetRulesResponseBatchGetRulesCreateRuleRequestCreateRuleResponse
CreateRuleUpdateRuleRequestUpdateRuleResponse
UpdateRuleBatchUpdateRulesRequestBatchUpdateRulesResponseBatchUpdateRulesDeleteRuleRequestDeleteRuleResponse
DeleteRuleBatchDeleteRulesRequestBatchDeleteRulesResponseBatchDeleteRulesUndeleteRuleRequestUndeleteRuleResponseUndeleteRuleBatchUndeleteRulesRequestBatchUndeleteRulesResponseBatchUndeleteRulesEvaluateRulesRequestEvaluateRulesResponseEvaluateRulesViewHumanFriendlyRulesRequestViewHumanFriendlyRulesResponseViewHumanFriendlyRulesViewJsonRulesRequestViewJsonRulesResponseViewJsonRulesUpdateHumanFriendlyRulesRequest UpdateHumanFriendlyRulesResponseUpdateHumanFriendlyRulesValidateJsonRulesRequestValidateJsonRulesResponseValidateJsonRulesUpdateJsonRulesRequestUpdateJsonRulesResponseUpdateJsonRulesListRulesRequestListRulesResponse	ListRulesListRuleVersionsRequestListRuleVersionsResponseListRuleVersionsGetRuleVersionRequestGetRuleVersionResponseGetRuleVersionBatchGetRuleVersionsRequestBatchGetRuleVersionsResponseBatchGetRuleVersions)selfchannels     a/home/www/backend.miabetepe.com/venv/lib/python3.12/site-packages/sift/rules/v1/rules_pb2_grpc.py__init__zRuleServiceStub.__init__   s    #..8#G#Z#Z#l#l&J&^&^&i&i / 
 **4#G#V#V#h#h&J&Z&Z&e&e + 
 %00:#G#\#\#n#n&J&`&`&k&k 1 
 "--7#G#Y#Y#k#k&J&]&]&h&h . 
 "--7#G#Y#Y#k#k&J&]&]&h&h . 
 !( 3 3=#G#_#_#q#q&J&c&c&n&n !4 !
 "--7#G#Y#Y#k#k&J&]&]&h&h . 
 !( 3 3=#G#_#_#q#q&J&c&c&n&n !4 !
 $//9#G#[#[#m#m&J&_&_&j&j 0 
 #*"5"5?#G#a#a#s#s&J&e&e&p&p #6 #
 %00:#G#\#\#n#n&J&`&`&k&k 1 
 '.&9&9C#G#e#e#w#w&J&i&i&t&t ': '#
 %00:#G#\#\#n#n&J&`&`&k&k 1 
 )0(;(;E#G#g#g#y#y&J&k&k&v&v )< )%
 ")!4!4>#G#`#`#r#r&J&d&d&o&o "5 "
  '22<#G#^#^#p#p&J&b&b&m&m  3  
 !,,6#G#X#X#j#j&J&\&\&g&g - 
 !( 3 3=#G#_#_#q#q&J&c&c&n&n !4 !
 &11;#G#]#]#o#o&J&a&a&l&l 2 
 %,$7$7A#G#c#c#u#u&J&g&g&r&r %8 %!    N)__name__
__module____qualname____doc__ra    rb   r`   r   r      s    Birb   r   c                       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d Zd Zd Zd Zd Zd Zy)RuleServiceServicerr   c                     |j                  t        j                  j                         |j	                  d       t        d      )z;Queries rules based on provided search parameters.
        Method not implemented!set_codegrpc
StatusCodeUNIMPLEMENTEDset_detailsNotImplementedErrorr^   requestcontexts      r`   r$   zRuleServiceServicer.SearchRulesz   7     	66756!";<<rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )z0Retrieves the latest version of a rule.
        rk   rl   rs   s      r`   r'   zRuleServiceServicer.GetRule   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )z!Retrieve multiple rules.
        rk   rl   rs   s      r`   r*   z!RuleServiceServicer.BatchGetRules   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )zCreates a rule.
        rk   rl   rs   s      r`   r-   zRuleServiceServicer.CreateRule   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )z"Updates an existing rule.
        rk   rl   rs   s      r`   r0   zRuleServiceServicer.UpdateRule   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )zCUpdates existing rules or creates rules that do not exist.
        rk   rl   rs   s      r`   r3   z$RuleServiceServicer.BatchUpdateRules   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )zDeletes a rule
        rk   rl   rs   s      r`   r6   zRuleServiceServicer.DeleteRule   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )zDeletes multiple rules
        rk   rl   rs   s      r`   r9   z$RuleServiceServicer.BatchDeleteRules   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )zUndeletes a rule
        rk   rl   rs   s      r`   r<   z RuleServiceServicer.UndeleteRule   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )z!Undeletes multiple rules
        rk   rl   rs   s      r`   r?   z&RuleServiceServicer.BatchUndeleteRules   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )z8Deprecated - use RuleEvaluationService instead.
        rk   rl   rs   s      r`   rB   z!RuleServiceServicer.EvaluateRules   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )zvDeprecated - use ViewJsonRules instead. Retrieve a JSON object containing all of the rules for a given asset.
        rk   rl   rs   s      r`   rE   z*RuleServiceServicer.ViewHumanFriendlyRules   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )zvDeprecated - use BatchGetRules instead. Retrieve a JSON object containing all of the rules for a given asset.
        rk   rl   rs   s      r`   rH   z!RuleServiceServicer.ViewJsonRules   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      z|Deprecated - use BatchUpdateRules instead. Batch update rules given the `rules_json` which is a JSON list of rules.
        rk   rl   rs   s      r`   rK   z,RuleServiceServicer.UpdateHumanFriendlyRules   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )zDeprecated - use BatchUpdateRules with validate_only flag instead. Validate a batch update for rules given the `rules_json` which is a JSON list of rules. This is a dry-run operation.
        rk   rl   rs   s      r`   rN   z%RuleServiceServicer.ValidateJsonRules   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      r   rl   rs   s      r`   rQ   z#RuleServiceServicer.UpdateJsonRules   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )r   rk   rl   rs   s      r`   rT   zRuleServiceServicer.ListRules   s5    66756!";<<rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )z>Retrieves a list of rule versions for the given rule.
        rk   rl   rs   s      r`   rW   z$RuleServiceServicer.ListRuleVersions   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )z0Retrieves a specific version of a rule.
        rk   rl   rs   s      r`   rZ   z"RuleServiceServicer.GetRuleVersion   rv   rb   c                     |j                  t        j                  j                         |j	                  d       t        d      )z3Retrieves multiple rules by rule versions.
        rk   rl   rs   s      r`   r]   z(RuleServiceServicer.BatchGetRuleVersions   rv   rb   N)rc   rd   re   rf   r$   r'   r*   r-   r0   r3   r6   r9   r<   r?   rB   rE   rH   rK   rN   rQ   rT   rW   rZ   r]   rg   rb   r`   ri   ri   w   si    B====================rb   ri   c                 J   i dt        j                  | j                  t        j                  j
                  t        j                  j                        dt        j                  | j                  t        j                  j
                  t        j                  j                        dt        j                  | j                  t        j                  j
                  t        j                  j                        dt        j                  | j                  t        j                  j
                  t        j                   j                        dt        j                  | j"                  t        j$                  j
                  t        j&                  j                        dt        j                  | j(                  t        j*                  j
                  t        j,                  j                        dt        j                  | j.                  t        j0                  j
                  t        j2                  j                        d	t        j                  | j4                  t        j6                  j
                  t        j8                  j                        d
t        j                  | j:                  t        j<                  j
                  t        j>                  j                        dt        j                  | j@                  t        jB                  j
                  t        jD                  j                        dt        j                  | jF                  t        jH                  j
                  t        jJ                  j                        dt        j                  | jL                  t        jN                  j
                  t        jP                  j                        dt        j                  | jR                  t        jT                  j
                  t        jV                  j                        dt        j                  | jX                  t        jZ                  j
                  t        j\                  j                        dt        j                  | j^                  t        j`                  j
                  t        jb                  j                        dt        j                  | jd                  t        jf                  j
                  t        jh                  j                        dt        j                  | jj                  t        jl                  j
                  t        jn                  j                        t        j                  | jp                  t        jr                  j
                  t        jt                  j                        t        j                  | jv                  t        jx                  j
                  t        jz                  j                        t        j                  | j|                  t        j~                  j
                  t        j                  j                        d}t        j                  d|      }|j                  |f       y )Nr$   )request_deserializerresponse_serializerr'   r*   r-   r0   r3   r6   r9   r<   r?   rB   rE   rH   rK   rN   rQ   rT   )rW   rZ   r]   zsift.rules.v1.RuleService)Crn   unary_unary_rpc_method_handlerr$   r   r    r#   r"   r!   r'   r%   r&   r*   r(   r)   r-   r+   r,   r0   r.   r/   r3   r1   r2   r6   r4   r5   r9   r7   r8   r<   r:   r;   r?   r=   r>   rB   r@   rA   rE   rC   rD   rH   rF   rG   rK   rI   rJ   rN   rL   rM   rQ   rO   rP   rT   rR   rS   rW   rU   rV   rZ   rX   rY   r]   r[   r\   method_handlers_generic_handleradd_generic_rpc_handlers)servicerserverrpc_method_handlersgeneric_handlers       r`   !add_RuleServiceServicer_to_serverr     s#   e4>>(()M)`)`)k)k(L(`(`(r(re t::$$)M)\)\)g)g(L(\(\(n(ne T@@**)M)b)b)m)m(L(b(b(t(te  $=='')M)_)_)j)j(L(_(_(q(q!e* $=='')M)_)_)j)j(L(_(_(q(q+e4  C C--)M)e)e)p)p(L(e(e(w(w!5e> $=='')M)_)_)j)j(L(_(_(q(q?eH  C C--)M)e)e)p)p(L(e(e(w(w!IeR D??)))M)a)a)l)l(L(a(a(s(sSe\ !$"E"E//)M)g)g)r)r(L(g(g(y(y#]ef T@@**)M)b)b)m)m(L(b(b(t(tgep %d&I&I33)M)k)k)v)v(L(k(k(}(}'qez T@@**)M)b)b)m)m(L(b(b(t(t{eD '(K(K55)M)m)m)x)x(L(m(m(()EeN  !D!D..)M)f)f)q)q(L(f(f(x(x"OeX tBB,,)M)d)d)o)o(L(d(d(v(v Yeb <<&&)M)^)^)i)i(L(^(^(p(pcel !% C C--)M)e)e)p)p(L(e(e(w(w!
 #AA++)M)c)c)n)n(L(c(c(u(u
 %)$G$G11)M)i)i)t)t(L(i(i({({%AeL ::')<>O
##_$67rb   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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)RuleServicer   Nc
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   experimentalr   r   r    r!   r"   r#   
rt   targetoptionschannel_credentialscall_credentialsinsecurecompressionwait_for_readytimeoutmetadatas
             r`   r$   zRuleService.SearchRulesv  sX       ,,Wf>f0CCUU0DDOO(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   r%   r!   r&   r#   r   s
             r`   r'   zRuleService.GetRule  sX       ,,Wf>b0??QQ0@@KK(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   r(   r!   r)   r#   r   s
             r`   r*   zRuleService.BatchGetRules  X       ,,Wf>h0EEWW0FFQQ(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   r+   r!   r,   r#   r   s
             r`   r-   zRuleService.CreateRule  X       ,,Wf>e0BBTT0CCNN(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   r.   r!   r/   r#   r   s
             r`   r0   zRuleService.UpdateRule  r   rb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   r1   r!   r2   r#   r   s
             r`   r3   zRuleService.BatchUpdateRules  X       ,,Wf>k0HHZZ0IITT(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   r4   r!   r5   r#   r   s
             r`   r6   zRuleService.DeleteRule  r   rb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   r7   r!   r8   r#   r   s
             r`   r9   zRuleService.BatchDeleteRules  r   rb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   r:   r!   r;   r#   r   s
             r`   r<   zRuleService.UndeleteRule  sX       ,,Wf>g0DDVV0EEPP(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   r=   r!   r>   r#   r   s
             r`   r?   zRuleService.BatchUndeleteRules  sX       ,,Wf>m0JJ\\0KKVV(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   r@   r!   rA   r#   r   s
             r`   rB   zRuleService.EvaluateRules   r   rb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   rC   r!   rD   r#   r   s
             r`   rE   z"RuleService.ViewHumanFriendlyRules1  sX       ,,Wf>q0NN``0OOZZ(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   rF   r!   rG   r#   r   s
             r`   rH   zRuleService.ViewJsonRulesB  r   rb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   rI   r!   rJ   r#   r   s
             r`   rK   z$RuleService.UpdateHumanFriendlyRulesS  sX       ,,Wf>s0PPbb0QQ\\(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   rL   r!   rM   r#   r   s
             r`   rN   zRuleService.ValidateJsonRulesd  sX       ,,Wf>l0II[[0JJUU(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   rO   r!   rP   r#   r   s
             r`   rQ   zRuleService.UpdateJsonRulesu  sX       ,,Wf>j0GGYY0HHSS(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   rR   r!   rS   r#   r   s
             r`   rT   zRuleService.ListRules  sX       ,,Wf>d0AASS0BBMM(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   rU   r!   rV   r#   r   s
             r`   rW   zRuleService.ListRuleVersions  r   rb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   rX   r!   rY   r#   r   s
             r`   rZ   zRuleService.GetRuleVersion  sX       ,,Wf>i0FFXX0GGRR(&^Wh	X 	Xrb   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )rn   r   r   r   r[   r!   r\   r#   r   s
             r`   r]   z RuleService.BatchGetRuleVersions  sX       ,,Wf>o0LL^^0MMXX(&^Wh	X 	Xrb   )rg   NNFNNNN)rc   rd   re   rf   staticmethodr$   r'   r*   r-   r0   r3   r6   r9   r<   r?   rB   rE   rH   rK   rN   rQ   rT   rW   rZ   r]   rg   rb   r`   r   r   s  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    $!X X    $!X X    $!X X    $!X X    $!X X    $!X Xrb   r   )
rf   rn   sift.rules.v1r   r   objectr   ri   r   r   rg   rb   r`   <module>r      sC    K  Klf l^L=& L=^i8ZUX& UXrb   