File manager - Edit - /usr/local/CyberCP/lib/python3.10/site-packages/proto/marshal/rules/__pycache__/wrappers.cpython-310.pyc
Back
o �h� � @ 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�defdd�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)�absentr c C s t || j�r |r d S |jS |S )N)� isinstance�_proto_type�value)�selfr r � r �O/usr/local/CyberCP/lib/python3.10/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 @ � e Zd ZejZeZdS )�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 >