| Server IP : 162.19.112.25 / Your IP : 216.73.216.88 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3.9/site-packages/google/protobuf/__pycache__/ |
Upload File : |
a
Ԝi� � @ sz d Z dZddlmZ ddlmZ ddlmZ e�� dkrFddlm Z
nddlmZ
e
jZ
G d d
� d
e�Ze� Zdd� Zd
S )ao Provides a factory class for generating dynamic messages.
The easiest way to use this class is if you have access to the FileDescriptor
protos containing the messages you want to create you can just do the following:
message_classes = message_factory.GetMessages(iterable_of_file_descriptors)
my_proto_instance = message_classes['some.proto.package.MessageName']()
z"matthewtoia@google.com (Matt Toia)� )�api_implementation)�descriptor_pool)�messageZcpp)�cpp_message)�python_messagec @ s* e Zd ZdZd dd�Zdd� Zdd� ZdS )
�MessageFactoryz@Factory for creating Proto2 messages from descriptors in a pool.Nc C s |p
t �� | _i | _dS )zInitializes a new factory.N)r ZDescriptorPool�pool�_classes)�selfr � r �C/usr/lib/python3.9/site-packages/google/protobuf/message_factory.py�__init__; s zMessageFactory.__init__c C s� || j vr�|j}ttu r&|j�dd�}t|tjf|dd��}| |_|| j |<