|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/site-packages/proto/marshal/rules/__pycache__/ |
U
O��g� � @ s� d dl mZ G dd� d�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d
d� de�ZG dd
� d
e�ZG dd� de�ZG dd� de�Z G dd� de�Z
G dd� de�ZdS )� )�wrappers_pb2c @ s, e Zd ZdZdd�ed�dd�Zdd� ZdS )�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|rd S |jS |S )N)�
isinstance�_proto_type�value)�selfr r � r �I/opt/cppython/lib/python3.8/site-packages/proto/marshal/rules/wrappers.py� to_python s
zWrapperRule.to_pythonc C s t || j�r| j|d�S |S )N)r )r �_python_typer )r r r r r
�to_proto$ s zWrapperRule.to_proto)�__name__�
__module__�__qualname__�__doc__�boolr r
r r r r
r s
r c @ s e Zd ZejZeZdS )�DoubleValueRuleN)r r r r ZDoubleValuer �floatr r r r r
r * s r c @ s e Zd ZejZeZdS )�FloatValueRuleN)r r r r Z
FloatValuer r r r r r r
r / s r c @ s e Zd ZejZeZdS )�Int64ValueRuleN)r r r r Z
Int64Valuer �intr r r r r
r 4 s r c @ s e Zd ZejZeZdS )�UInt64ValueRuleN)r r r r ZUInt64Valuer r r r r r r
r 9 s r c @ s e Zd ZejZeZdS )�Int32ValueRuleN)r r r r Z
Int32Valuer r r r r r r
r >