Package google :: Package protobuf :: Module descriptor :: Class MethodDescriptor
[frames] | no frames]

Class MethodDescriptor

source code

    object --+    
             |    
DescriptorBase --+
                 |
                MethodDescriptor

Descriptor for a method in a service.

name: (str) Name of the method within the service.
full_name: (str) Full name of method.
index: (int) 0-indexed index of the method inside the service.
containing_service: (ServiceDescriptor) The service that contains this
  method.
input_type: The descriptor of the message that this method accepts.
output_type: The descriptor of the message that this method returns.
options: (descriptor_pb2.MethodOptions) Method options message or
  None to use default method options.

Instance Methods
a new object with type S, a subtype of T
__new__(cls, name, full_name, index, containing_service, input_type, output_type, options=None) source code
 
__init__(self, name, full_name, index, containing_service, input_type, output_type, options=None)
The arguments are as described in the description of MethodDescriptor attributes above.
source code

Inherited from DescriptorBase: GetOptions

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__new__(cls, name, full_name, index, containing_service, input_type, output_type, options=None)

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__init__(self, name, full_name, index, containing_service, input_type, output_type, options=None)
(Constructor)

source code 

The arguments are as described in the description of MethodDescriptor attributes above.

Note that containing_service may be None, and may be set later if necessary.

Overrides: object.__init__