
    xnh                         d dl mZ  G d d      Z G d de      Z G d de      Z G d d	e      Z G d
 de      Z G d de      Z G d de      Z G d de      Z	 G d de      Z
 G d de      Zy)    )wrappers_pb2c                   (    e Zd ZdZdddefdZd Zy)WrapperRuleaU  A marshal for converting the protobuf wrapper classes to Python.

    This class converts between ``google.protobuf.BoolValue``,
    ``google.protobuf.StringValue``, and their siblings to the appropriate
    Python equivalents.

    These are effectively similar to the protobuf primitives except
    that None becomes a possible value.
    N)absentr   c                P    t        || j                        r|ry |j                  S |S )N)
isinstance_proto_typevalue)selfr
   r   s      ]/var/www/html/profi_bot/bot/venv/lib/python3.12/site-packages/proto/marshal/rules/wrappers.py	to_pythonzWrapperRule.to_python   s'    eT--.;;    c                 V    t        || j                        r| j                  |      S |S )N)r
   )r   _python_typer	   )r   r
   s     r   to_protozWrapperRule.to_proto$   s+    eT../##%#00r   )__name__
__module____qualname____doc__boolr   r    r   r   r   r      s     26 $ r   r   c                   (    e Zd Zej                  ZeZy)DoubleValueRuleN)r   r   r   r   DoubleValuer	   floatr   r   r   r   r   r   *   s    **KLr   r   c                   (    e Zd Zej                  ZeZy)FloatValueRuleN)r   r   r   r   
FloatValuer	   r   r   r   r   r   r   r   /       ))KLr   r   c                   (    e Zd Zej                  ZeZy)Int64ValueRuleN)r   r   r   r   
Int64Valuer	   intr   r   r   r   r!   r!   4       ))KLr   r!   c                   (    e Zd Zej                  ZeZy)UInt64ValueRuleN)r   r   r   r   UInt64Valuer	   r#   r   r   r   r   r&   r&   9       **KLr   r&   c                   (    e Zd Zej                  ZeZy)Int32ValueRuleN)r   r   r   r   
Int32Valuer	   r#   r   r   r   r   r*   r*   >   r$   r   r*   c                   (    e Zd Zej                  ZeZy)UInt32ValueRuleN)r   r   r   r   UInt32Valuer	   r#   r   r   r   r   r-   r-   C   r(   r   r-   c                   (    e Zd Zej                  ZeZy)BoolValueRuleN)r   r   r   r   	BoolValuer	   r   r   r   r   r   r0   r0   H   s    ((KLr   r0   c                   (    e Zd Zej                  ZeZy)StringValueRuleN)r   r   r   r   StringValuer	   strr   r   r   r   r3   r3   M   r(   r   r3   c                   (    e Zd Zej                  ZeZy)BytesValueRuleN)r   r   r   r   
BytesValuer	   bytesr   r   r   r   r7   r7   R   r   r   r7   N)google.protobufr   r   r   r   r!   r&   r*   r-   r0   r3   r7   r   r   r   <module>r;      s    ) 0k 
[ 
[ 
k 
[ 
k 
K 
k 
[ r   