Linux server.a-j.media 5.14.0-570.44.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 17 10:32:11 EDT 2025 x86_64
Apache
75.119.137.219
Cant read /etc/named.conf
/
lib
/
python3.9
/
site-packages
/
google
/
protobuf
/
__pycache__
/
[
drwxr-xr-x
]
[ HOME ]
Exec
Submit
File Name : message_factory.cpython-39.pyc
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 |<