U
    #FZh่  ใ                   @   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ed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)ฺabsentc                C   s   t || jr|rd S |jS |S )N)ฺ
isinstanceฺ_proto_typeฺvalue)ฺselfr   r   ฉ r	   ๚c/home/aprabhat/apps/x.techxrdev.in/venv/lib/python3.8/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                   @   s   e Zd ZejZeZdS )ฺDoubleValueRuleN)r   r   r   r   ZDoubleValuer   ฺfloatr   r	   r	   r	   r
   r   *   s   r   c                   @   s   e Zd ZejZeZdS )ฺFloatValueRuleN)r   r   r   r   Z
FloatValuer   r   r   r	   r	   r	   r
   r   /   s   r   c                   @   s   e Zd ZejZeZdS )ฺInt64ValueRuleN)r   r   r   r   Z
Int64Valuer   ฺintr   r	   r	   r	   r
   r   4   s   r   c                   @   s   e Zd ZejZeZdS )ฺUInt64ValueRuleN)r   r   r   r   ZUInt64Valuer   r   r   r	   r	   r	   r
   r   9   s   r   c                   @   s   e Zd ZejZeZdS )ฺInt32ValueRuleN)r   r   r   r   Z
Int32Valuer   r   r   r	   r	   r	   r
   r   >   s   r   c                   @   s   e Zd ZejZeZdS )ฺUInt32ValueRuleN)r   r   r   r   ZUInt32Valuer   r   r   r	   r	   r	   r
   r   C   s   r   c                   @   s   e Zd ZejZeZdS )ฺBoolValueRuleN)r   r   r   r   Z	BoolValuer   r   r   r	   r	   r	   r
   r   H   s   r   c                   @   s   e Zd ZejZeZdS )ฺStringValueRuleN)r   r   r   r   ZStringValuer   ฺstrr   r	   r	   r	   r
   r   M   s   r   c                   @   s   e Zd ZejZeZdS )ฺBytesValueRuleN)r   r   r   r   Z
BytesValuer   ฺbytesr   r	   r	   r	   r
   r   R   s   r   N)Zgoogle.protobufr   r   r   r   r   r   r   r   r   r   r   r	   r	   r	   r
   ฺ<module>   s   