class_docstr: A collection of protobufs dynamically constructed by descriptor protos.
class_docstr_tok: ["A","collection","of","protobufs","dynamically","constructed","by","descriptor","protos","."]
docstr: Creates a method descriptor from a MethodDescriptorProto.
  
  Args:
    method_proto: The proto describing the method.
    service_name: The name of the containing service.
    package: Optional package name to look up for types.
    scope: Scope containing available types.
    index: Index of the method in the service.
  
  Returns:
    An initialized MethodDescriptor object.
code: def _MakeMethodDescriptor(
      self, method_proto, service_name, package, scope, index
  ):
      """Creates a method descriptor from a MethodDescriptorProto.
  
      Args:
        method_proto: The proto describing the method.
        service_name: The name of the containing service.
        package: Optional package name to look up for types.
        scope: Scope containing available types.
        index: Index of the method in the service.
  
      Returns:
        An initialized MethodDescriptor object.
      """
      full_name = ".".join((service_name, method_proto.name))
      input_type = self._GetTypeFromScope(
          package, method_proto.input_type, scope
      )
      output_type = self._GetTypeFromScope(
          package, method_proto.output_type, scope
      )
      return descriptor.MethodDescriptor(
          name=method_proto.name,
          full_name=full_name,
          index=index,
          containing_service=None,
          input_type=input_type,
          output_type=output_type,
          options=_OptionsOrNone(method_proto),
          # pylint: disable=protected-access
          create_key=descriptor._internal_create_key,
      )
  
imports: import collections
  import warnings
  from google.protobuf import descriptor
  from google.protobuf import descriptor_database
  from google.protobuf import text_encoding
label_desc: Use image node_id 38 for calling the DescriptorPool obj's underlying member method code with example usage: obj._MakeMethodDescriptor(method_proto, service_name, package, scope, index) and returns: descriptor