class_docstr: Descriptor for a method in a service.
  
  Attributes:
    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 (Descriptor): The descriptor of the message that this method
      accepts.
    output_type (Descriptor): The descriptor of the message that this method
      returns.
    options (descriptor_pb2.MethodOptions or None): Method options message, or
      None to use default method options.
class_docstr_tok: ["Descriptor","for","a","method","in","a","service",".","Attributes",":","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","(","Descriptor",")",":","The","descriptor","of","the","message","that","this","method","accepts",".","output_type","(","Descriptor",")",":","The","descriptor","of","the","message","that","this","method","returns",".","options","(","descriptor_pb2.MethodOptions","or","None",")",":","Method","options","message",",","or","None","to","use","default","method","options","."]
docstr: 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.
code: def __init__(
      self,
      name,
      full_name,
      index,
      containing_service,
      input_type,
      output_type,
      options=None,
      serialized_options=None,
      create_key=None,
  ):
      """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.
      """
      if create_key is not _internal_create_key:
          _Deprecated("MethodDescriptor")
  
      super(MethodDescriptor, self).__init__(
          options, serialized_options, "MethodOptions"
      )
      self.name = name
      self.full_name = full_name
      self.index = index
      self.containing_service = containing_service
      self.input_type = input_type
      self.output_type = output_type
  
imports: import threading
  import warnings
  import six
  from google.protobuf.internal import api_implementation
label_desc: Use image node_id 1 to create a new MethodDescriptor object from inherited base classes: DescriptorBase with example: obj = MethodDescriptor(name, full_name, index, containing_service, input_type, output_type, options, serialized_options, create_key)