
    ZTh0                     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)annotations_pb2c                       e Zd ZdZd Zy)AnnotationServiceStub8Missing associated documentation comment in .proto file.c                 p   |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
                        | _        y)	zIConstructor.

        Args:
            channel: A grpc.Channel.
        7/sift.annotations.v1.AnnotationService/CreateAnnotation)request_serializerresponse_deserializer7/sift.annotations.v1.AnnotationService/DeleteAnnotation=/sift.annotations.v1.AnnotationService/BatchDeleteAnnotations6/sift.annotations.v1.AnnotationService/ListAnnotations4/sift.annotations.v1.AnnotationService/GetAnnotation7/sift.annotations.v1.AnnotationService/UpdateAnnotationN)unary_unary0sift_dot_annotations_dot_v1_dot_annotations__pb2CreateAnnotationRequestSerializeToStringCreateAnnotationResponse
FromStringCreateAnnotationDeleteAnnotationRequestDeleteAnnotationResponseDeleteAnnotationBatchDeleteAnnotationsRequestBatchDeleteAnnotationsResponseBatchDeleteAnnotationsListAnnotationsRequestListAnnotationsResponseListAnnotationsGetAnnotationRequestGetAnnotationResponseGetAnnotationUpdateAnnotationRequestUpdateAnnotationResponseUpdateAnnotation)selfchannels     m/home/www/backend.miabetepe.com/venv/lib/python3.12/site-packages/sift/annotations/v1/annotations_pb2_grpc.py__init__zAnnotationServiceStub.__init__   sp    !( 3 3I#S#k#k#}#}&V&o&o&z&z !4 !
 !( 3 3I#S#k#k#}#}&V&o&o&z&z !4 !
 '.&9&9O#S#q#q  $D  $D&V&u&u  'A  'A ': '#
  '22H#S#j#j#|#|&V&n&n&y&y  3  
 %00F#S#h#h#z#z&V&l&l&w&w 1 
 !( 3 3I#S#k#k#}#}&V&o&o&z&z !4 !    N)__name__
__module____qualname____doc__r)    r*   r(   r   r      s
    B#r*   r   c                   4    e Zd ZdZd Zd Zd Zd Zd Zd Z	y)	AnnotationServiceServicerr   c                     |j                  t        j                  j                         |j	                  d       t        d      )zCreates an annotation.
        Method not implemented!set_codegrpc
StatusCodeUNIMPLEMENTEDset_detailsNotImplementedErrorr&   requestcontexts      r(   r   z*AnnotationServiceServicer.CreateAnnotation4   7     	66756!";<<r*   c                     |j                  t        j                  j                         |j	                  d       t        d      )a2  Delete Annotation is deprecated. Calling this will archive the annotation, which should be done using the
        UpdateAnnotation method with the delete date set to a non-null value. Restoring an annotation can be done
        by calling UpdateAnnotation with the delete date set to a null value.
        r3   r4   r;   s      r(   r   z*AnnotationServiceServicer.DeleteAnnotation;   s7    
 	66756!";<<r*   c                     |j                  t        j                  j                         |j	                  d       t        d      )zBatchDeleteAnnotations will archive the annotations specified in the request. These can be restored
        by calling UpdateAnnotation with the delete date set to a null value.
        r3   r4   r;   s      r(   r   z0AnnotationServiceServicer.BatchDeleteAnnotationsD   s7     	66756!";<<r*   c                     |j                  t        j                  j                         |j	                  d       t        d      )z8Retrieves annotations using an optional filter.
        r3   r4   r;   s      r(   r   z)AnnotationServiceServicer.ListAnnotationsL   r>   r*   c                     |j                  t        j                  j                         |j	                  d       t        d      )z Retrieves an annotation
        r3   r4   r;   s      r(   r"   z'AnnotationServiceServicer.GetAnnotationS   r>   r*   c                     |j                  t        j                  j                         |j	                  d       t        d      )zbUpdates an existing annotation using using the list of fields specified in `update_mask`.
        r3   r4   r;   s      r(   r%   z*AnnotationServiceServicer.UpdateAnnotationZ   r>   r*   N)
r+   r,   r-   r.   r   r   r   r   r"   r%   r/   r*   r(   r1   r1   1   s#    B======r*   r1   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                        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|      }|j1                  |f       y )N)request_deserializerresponse_serializer)r   r   r   r   r"   r%   z%sift.annotations.v1.AnnotationService)r6   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$   method_handlers_generic_handleradd_generic_rpc_handlers)servicerserverrpc_method_handlersgeneric_handlers       r(   'add_AnnotationServiceServicer_to_serverrN   b   s    $ C C--)Y)q)q)|)|(X(q(q  )D  )D!
 !% C C--)Y)q)q)|)|(X(q(q  )D  )D!
 '+&I&I33)Y)w)w  *C  *C(X(w(w  )J  )J'
  $BB,,)Y)p)p){){(X(p(p  )C  )C 
 "@@**)Y)n)n)y)y(X(n(n  )A  )A
 !% C C--)Y)q)q)|)|(X(q(q  )D  )D!5@ ::35HJO
##_$67r*   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
y)
AnnotationServicer   Nc
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )r6   experimentalr   r   r   r   r   r   
r<   targetoptionschannel_credentialscall_credentialsinsecurecompressionwait_for_readytimeoutmetadatas
             r(   r   z"AnnotationService.CreateAnnotation   X       ,,Wf>w<TTff<UU``(&^Wh	X 	Xr*   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )r6   rR   r   r   r   r   r   r   rS   s
             r(   r   z"AnnotationService.DeleteAnnotation   r]   r*   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )r6   rR   r   r   r   r   r   r   rS   s
             r(   r   z(AnnotationService.BatchDeleteAnnotations   sX       ,,Wf>}<ZZll<[[ff(&^Wh	X 	Xr*   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )r6   rR   r   r   r   r   r   r   rS   s
             r(   r   z!AnnotationService.ListAnnotations   sX       ,,Wf>v<SSee<TT__(&^Wh	X 	Xr*   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )r6   rR   r   r   r    r   r!   r   rS   s
             r(   r"   zAnnotationService.GetAnnotation   sX       ,,Wf>t<QQcc<RR]](&^Wh	X 	Xr*   c
                     t         j                  j                  | |dt        j                  j
                  t        j                  j                  ||||||||	      S )Nr   )r6   rR   r   r   r#   r   r$   r   rS   s
             r(   r%   z"AnnotationService.UpdateAnnotation   r]   r*   )r/   NNFNNNN)r+   r,   r-   r.   staticmethodr   r   r   r   r"   r%   r/   r*   r(   rP   rP      s#   B  $!X X    $!X X    $!X X    $!X X    $!X X    $!X Xr*   rP   )
r.   r6   sift.annotations.v1r   r   objectr   r1   rN   rP   r/   r*   r(   <module>rf      s>    K  c&F &R.= .=b#8NgX gXr*   