Package google :: Package protobuf :: Module service_reflection :: Class GeneratedServiceStubType
[frames] | no frames]

Type GeneratedServiceStubType

source code

      object --+        
               |        
            type --+    
                   |    
GeneratedServiceType --+
                       |
                      GeneratedServiceStubType

Metaclass for service stubs created at runtime from ServiceDescriptors.

This class has similar responsibilities as GeneratedServiceType, except that it creates the service stub classes.

Instance Methods
the object's type
__init__(cls, name, bases, dictionary)
Creates a message service stub class.
source code

Inherited from type: __call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __instancecheck__, __le__, __lt__, __ne__, __new__, __repr__, __setattr__, __subclasscheck__, __subclasses__, mro

Inherited from object: __format__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from type: __abstractmethods__, __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __itemsize__, __mro__, __name__, __weakrefoffset__

Inherited from object: __class__

Method Details

__init__(cls, name, bases, dictionary)
(Constructor)

source code 
Creates a message service stub class.

Args:
  name: Name of the class (ignored, here).
  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.

Returns: the object's type
Overrides: object.__init__