| Server IP : 66.29.153.156 / Your IP : 216.73.216.151 Web Server : LiteSpeed System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64 User : lastyfjz ( 1521) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /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 |<