
    (ph                         S SK Jr   " S S5      r " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r " S S\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      rg)    )wrappers_pb2c                   4    \ rS rSrSrSS.S\4S jjrS rSrg)	WrapperRule   a=  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                b    [        XR                  5      (       a  U(       a  g UR                  $ U$ )N)
isinstance_proto_typevalue)selfr   r   s      O/var/www/html/venv/lib/python3.13/site-packages/proto/marshal/rules/wrappers.py	to_pythonWrapperRule.to_python   s(    e--..;;    c                 X    [        XR                  5      (       a  U R                  US9$ U$ )N)r   )r	   _python_typer
   )r   r   s     r   to_protoWrapperRule.to_proto$   s,    e..//##%#00r    )	__name__
__module____qualname____firstlineno____doc__boolr   r   __static_attributes__r   r   r   r   r      s     26 $ r   r   c                   0    \ rS rSr\R
                  r\rSr	g)DoubleValueRule*   r   N)
r   r   r   r   r   DoubleValuer
   floatr   r   r   r   r   r   r   *   s    **KLr   r   c                   0    \ rS rSr\R
                  r\rSr	g)FloatValueRule/   r   N)
r   r   r   r   r   
FloatValuer
   r!   r   r   r   r   r   r#   r#   /       ))KLr   r#   c                   0    \ rS rSr\R
                  r\rSr	g)Int64ValueRule4   r   N)
r   r   r   r   r   
Int64Valuer
   intr   r   r   r   r   r(   r(   4       ))KLr   r(   c                   0    \ rS rSr\R
                  r\rSr	g)UInt64ValueRule9   r   N)
r   r   r   r   r   UInt64Valuer
   r+   r   r   r   r   r   r.   r.   9       **KLr   r.   c                   0    \ rS rSr\R
                  r\rSr	g)Int32ValueRule>   r   N)
r   r   r   r   r   
Int32Valuer
   r+   r   r   r   r   r   r3   r3   >   r,   r   r3   c                   0    \ rS rSr\R
                  r\rSr	g)UInt32ValueRuleC   r   N)
r   r   r   r   r   UInt32Valuer
   r+   r   r   r   r   r   r7   r7   C   r1   r   r7   c                   0    \ rS rSr\R
                  r\rSr	g)BoolValueRuleH   r   N)
r   r   r   r   r   	BoolValuer
   r   r   r   r   r   r   r;   r;   H   s    ((KLr   r;   c                   0    \ rS rSr\R
                  r\rSr	g)StringValueRuleM   r   N)
r   r   r   r   r   StringValuer
   strr   r   r   r   r   r?   r?   M   r1   r   r?   c                   0    \ rS rSr\R
                  r\rSr	g)BytesValueRuleR   r   N)
r   r   r   r   r   
BytesValuer
   bytesr   r   r   r   r   rD   rD   R   r&   r   rD   N)google.protobufr   r   r   r#   r(   r.   r3   r7   r;   r?   rD   r   r   r   <module>rI      s    ) 0k 
[ 
[ 
k 
[ 
k 
K 
k 
[ r   