o
    ¼>hÝ  ã                   @   sž   d dl Z d dlmZ eƒ ZG dd„ deƒZdd„ Zdd„ Zd	d
„ Zdd„ Z	dd„ Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd „ ZdS )!é    N)Úimport_numpyc                   @   sf   e Zd ZdgZeddd„ƒZeddd„ƒZdd„ Zd	d
„ Zdd„ Z	dd„ Z
dd„ Zdd„ Zdd„ ZdS )ÚCancelÚ_tabr   c                 C   s.   t j t jj||¡}tƒ }| ||| ¡ |S ©N)ÚflatbuffersÚencodeÚGetÚpackerÚuoffsetr   ÚInit)ÚclsÚbufÚoffsetÚnÚx© r   úƒ/var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-packages/autobahn/wamp/gen/wamp/proto/Cancel.pyÚ	GetRootAs   s   zCancel.GetRootAsc                 C   s   |   ||¡S )z6This method is deprecated. Please switch to GetRootAs.)r   )r   r   r   r   r   r   ÚGetRootAsCancel   s   zCancel.GetRootAsCancelc                 C   s   t j ||¡| _d S r   )r   ÚtableÚTabler   )Úselfr   Úposr   r   r   r      s   zCancel.Initc                 C   ó<   t jj | j d¡¡}|dkr| j t jj|| jj ¡S dS )Né   r   ©	r   Únumber_typesÚUOffsetTFlagsÚpy_typer   ÚOffsetr   ÚUint64FlagsÚPos©r   Úor   r   r   ÚSession   ó   zCancel.Sessionc                 C   r   )Né   r   r   r"   r   r   r   ÚRequest#   r%   zCancel.Requestc                 C   r   )Né   r   )	r   r   r   r   r   r   r   Ú
Uint8Flagsr!   r"   r   r   r   ÚMode*   r%   zCancel.Modec                 C   sj   t jj | j d¡¡}|dkr3| j |¡}|t jj |¡d 7 }ddlm} |ƒ }| 	| jj
|¡ |S d S )Né
   r   r(   )Ú	Principal)r   r   r   r   r   r   ÚVectorÚwamp.proto.Principalr,   r   ÚBytes)r   Újr#   r   r,   Úobjr   r   r   Ú
ForwardFor1   s   zCancel.ForwardForc                 C   s.   t jj | j d¡¡}|dkr| j |¡S dS ©Nr+   r   )r   r   r   r   r   r   Ú	VectorLenr"   r   r   r   ÚForwardForLength=   s   zCancel.ForwardForLengthc                 C   s   t jj | j d¡¡}|dkS r3   )r   r   r   r   r   r   r"   r   r   r   ÚForwardForIsNoneD   s   zCancel.ForwardForIsNoneN)r   )Ú__name__Ú
__module__Ú__qualname__Ú	__slots__Úclassmethodr   r   r   r$   r'   r*   r2   r5   r6   r   r   r   r   r   	   s    r   c                 C   s   |   d¡ d S )Nr   )ÚStartObject©Úbuilderr   r   r   ÚCancelStartH   ó    r?   c                 C   ó   t | ƒS r   )r?   r=   r   r   r   ÚStartI   ó   rB   c                 C   s   |   d|d¡ d S )Nr   ©ÚPrependUint64Slot©r>   Úsessionr   r   r   ÚCancelAddSessionK   ó    rH   c                 C   ó
   t | |ƒS r   )rH   rF   r   r   r   Ú
AddSessionL   ó   
rK   c                 C   ó   |   d|d¡ d S )Né   r   rD   ©r>   Úrequestr   r   r   ÚCancelAddRequestN   rI   rQ   c                 C   rJ   r   )rQ   rO   r   r   r   Ú
AddRequestO   rL   rR   c                 C   rM   )Né   r   )ÚPrependUint8Slot©r>   Úmoder   r   r   ÚCancelAddModeQ   rI   rW   c                 C   rJ   r   )rW   rU   r   r   r   ÚAddModeR   rL   rX   c                 C   s   |   dtjj |¡d¡ d S )Né   r   )ÚPrependUOffsetTRelativeSlotr   r   r   r   ©r>   Ú
forwardForr   r   r   ÚCancelAddForwardForT   s    r]   c                 C   rJ   r   )r]   r[   r   r   r   ÚAddForwardForU   rL   r^   c                 C   s   |   d|d¡S )Nr(   )ÚStartVector©r>   ÚnumElemsr   r   r   ÚCancelStartForwardForVectorW   r@   rb   c                 C   rJ   r   )rb   r`   r   r   r   ÚStartForwardForVectorX   rL   rc   c                 C   s   |   ¡ S r   )Ú	EndObjectr=   r   r   r   Ú	CancelEndZ   s    re   c                 C   rA   r   )re   r=   r   r   r   ÚEnd[   rC   rf   )r   Úflatbuffers.compatr   ÚnpÚobjectr   r?   rB   rH   rK   rQ   rR   rW   rX   r]   r^   rb   rc   re   rf   r   r   r   r   Ú<module>   s$   ?