| Server IP : 198.54.126.161 / Your IP : 216.73.217.37 Web Server : LiteSpeed System : Linux premium12.web-hosting.com 4.18.0-553.94.1.lve.el8.x86_64 #1 SMP Thu Jan 22 12:37:22 UTC 2026 x86_64 User : amerfigf ( 898) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3.6/site-packages/google/protobuf/__pycache__/ |
Upload File : |
3 ���h� � @ sN d Z dZddlmZ ddlmZ ddlmZ G dd� de�Ze� Zdd � Z d 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)� )�descriptor_pool)�message)� reflectionc @ s* e Zd ZdZd dd�Zdd� Zdd� ZdS ) �MessageFactoryz@Factory for creating Proto2 messages from descriptors in a pool.Nc C s |p t j� | _i | _dS )zInitializes a new factory.N)r ZDescriptorPool�pool�_classes)�selfr � r �%/usr/lib/python3.6/message_factory.py�__init__2 s zMessageFactory.__init__c C s� || j kr�|j}ttkr&|jjdd�}tj|tjf|dd��}|| j |<