관리-도구
편집 파일: service_reflection.cpython-311.pyc
� P�Dg�, � �~ � d Z dZ G d� de� � Z G d� de� � Z G d� de� � Z G d� d e� � Zd S )a* Contains metaclasses used to create protocol service and service stub classes from ServiceDescriptor objects at runtime. The GeneratedServiceType and GeneratedServiceStubType metaclasses are used to inject all useful functionality into the classes output by the protocol compiler at compile-time. zpetar@google.com (Petar Petrov)c � � e Zd ZdZdZd� ZdS )�GeneratedServiceTypea� Metaclass for service classes created at runtime from ServiceDescriptors. Implementations for all methods described in the Service class are added here by this class. We also create properties to allow getting/setting all fields in the protocol message. The protocol compiler currently uses this metaclass to create protocol service classes at runtime. Clients can also manually create their own classes at runtime, as in this example:: mydescriptor = ServiceDescriptor(.....) class MyProtoService(service.Service): __metaclass__ = GeneratedServiceType DESCRIPTOR = mydescriptor myservice_instance = MyProtoService() # ... � DESCRIPTORc � � t j |vrdS |t j }t |� � }|� | � � || _ dS )a� Creates a message service class. Args: name: Name of the class (ignored, but required by the metaclass protocol). bases: Base classes of the class being constructed. dictionary: The class dictionary of the class being constructed. dictionary[_DESCRIPTOR_KEY] must contain a ServiceDescriptor object describing this protocol service type. N)r �_DESCRIPTOR_KEY�_ServiceBuilder�BuildServicer )�cls�name�bases� dictionary� descriptor�service_builders ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/google/protobuf/service_reflection.py�__init__zGeneratedServiceType.__init__@ sQ � � �+�:�=�=��f��0�@�A�J�%�j�1�1�O�� � ��%�%�%��C�N�N�N� N)�__name__� __module__�__qualname__�__doc__r r � r r r r * s4 � � � � � �� �$ !�/� � � � � r r c �&