관리-도구
편집 파일: message_factory.cpython-311.pyc
� C-$;5��� � � d Z dZddlZddlmZ ddlmZ ddlmZ ej � � dk rddlm Z ndd lmZ e j Zd � Zd� Zd� Z G d � de� � Zdd�ZdS )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)� N)�api_implementation)�descriptor_pool)�message�python)�python_message)�cpp_messagec �J � t | dd� � }|r|S t | � � S )a7 Obtains a proto2 message class based on the passed in descriptor. Passing a descriptor with a fully qualified name matching a previous invocation will cause the same class to be returned. Args: descriptor: The descriptor to build from. Returns: A class describing the passed in descriptor. �_concrete_classN)�getattr�_InternalCreateMessageClass)� descriptor�concrete_classs ��/builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib64/python3.11/site-packages/google/protobuf/message_factory.py�GetMessageClassr : s2 � � �:�'8�$�?�?�.�� ��� $�Z� 0� 0�0� c �d � i }| D ]�}|� |� � }|j � � � D ]}t |� � ||j <