o
    ýÞhè  ã                   @   s®   d dl mZ G dd„ dƒZG dd„ deƒZG dd„ deƒZG dd	„ d	eƒZG d
d„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZ	G dd„ deƒZ
G dd„ deƒZdS )é    )Úwrappers_pb2c                   @   s,   e Zd ZdZddœdefdd„Zdd„ ZdS )	Ú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                C   s   t || jƒr|r
d S |jS |S )N)Ú
isinstanceÚ_proto_typeÚvalue)Úselfr   r   © r	   ú\/var/www/html/premium_crap/venv/lib/python3.10/site-packages/proto/marshal/rules/wrappers.pyÚ	to_python   s
   zWrapperRule.to_pythonc                 C   s   t || jƒr| j|d�S |S )N)r   )r   Ú_python_typer   )r   r   r	   r	   r
   Úto_proto$   s   zWrapperRule.to_proto)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úboolr   r   r	   r	   r	   r
   r      s    
r   c                   @   ó   e Zd ZejZeZdS )ÚDoubleValueRuleN)r   r   r   r   ÚDoubleValuer   Úfloatr   r	   r	   r	   r
   r   *   ó    r   c                   @   r   )ÚFloatValueRuleN)r   r   r   r   Ú
FloatValuer   r   r   r	   r	   r	   r
   r   /   r   r   c                   @   r   )ÚInt64ValueRuleN)r   r   r   r   Ú
Int64Valuer   Úintr   r	   r	   r	   r
   r   4   r   r   c                   @   r   )ÚUInt64ValueRuleN)r   r   r   r   ÚUInt64Valuer   r   r   r	   r	   r	   r
   r   9   r   r   c                   @   r   )ÚInt32ValueRuleN)r   r   r   r   Ú
Int32Valuer   r   r   r	   r	   r	   r
   r   >   r   r   c                   @   r   )ÚUInt32ValueRuleN)r   r   r   r   ÚUInt32Valuer   r   r   r	   r	   r	   r
   r!   C   r   r!   c                   @   r   )ÚBoolValueRuleN)r   r   r   r   Ú	BoolValuer   r   r   r	   r	   r	   r
   r#   H   r   r#   c                   @   r   )ÚStringValueRuleN)r   r   r   r   ÚStringValuer   Ústrr   r	   r	   r	   r
   r%   M   r   r%   c                   @   r   )ÚBytesValueRuleN)r   r   r   r   Ú
BytesValuer   Úbytesr   r	   r	   r	   r
   r(   R   r   r(   N)Úgoogle.protobufr   r   r   r   r   r   r   r!   r#   r%   r(   r	   r	   r	   r
   Ú<module>   s   