Public Member Functions | Public Attributes | Static Private Attributes | List of all members
google.protobuf.descriptor.MethodDescriptor Class Reference
Inheritance diagram for google.protobuf.descriptor.MethodDescriptor:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, name, full_name, index, containing_service, input_type, output_type, options=None, serialized_options=None)
 
def __init__ (self, name, full_name, index, containing_service, input_type, output_type, options=None, serialized_options=None, create_key=None)
 
def __new__ (cls, name, full_name, index, containing_service, input_type, output_type, options=None, serialized_options=None)
 
def __new__ (cls, name, full_name, index, containing_service, input_type, output_type, options=None, serialized_options=None, create_key=None)
 
def CopyToProto (self, proto)
 
- Public Member Functions inherited from google.protobuf.descriptor.DescriptorBase
def __init__ (self, options, serialized_options, options_class_name)
 
def __init__ (self, options, serialized_options, options_class_name)
 
def GetOptions (self)
 
def GetOptions (self)
 
- Public Member Functions inherited from google.protobuf.descriptor.DescriptorMetaclass
def __instancecheck__ (cls, obj)
 
def __instancecheck__ (cls, obj)
 

Public Attributes

 containing_service
 
 full_name
 
 index
 
 input_type
 
 name
 
 output_type
 
- Public Attributes inherited from google.protobuf.descriptor.DescriptorBase
 has_options
 

Static Private Attributes

 _C_DESCRIPTOR_CLASS = _message.MethodDescriptor
 

Detailed Description

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.
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.

Definition at line 804 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def google.protobuf.descriptor.MethodDescriptor.__init__ (   self,
  name,
  full_name,
  index,
  containing_service,
  input_type,
  output_type,
  options = None,
  serialized_options = 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.

Definition at line 827 of file bloaty/third_party/protobuf/python/google/protobuf/descriptor.py.

◆ __init__() [2/2]

def google.protobuf.descriptor.MethodDescriptor.__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.

Definition at line 895 of file protobuf/python/google/protobuf/descriptor.py.

Member Function Documentation

◆ __new__() [1/2]

def google.protobuf.descriptor.MethodDescriptor.__new__ (   cls,
  name,
  full_name,
  index,
  containing_service,
  input_type,
  output_type,
  options = None,
  serialized_options = None 
)

◆ __new__() [2/2]

def google.protobuf.descriptor.MethodDescriptor.__new__ (   cls,
  name,
  full_name,
  index,
  containing_service,
  input_type,
  output_type,
  options = None,
  serialized_options = None,
  create_key = None 
)

◆ CopyToProto()

def google.protobuf.descriptor.MethodDescriptor.CopyToProto (   self,
  proto 
)
Copies this to a descriptor_pb2.MethodDescriptorProto.

Args:
  proto (descriptor_pb2.MethodDescriptorProto): An empty descriptor proto.

Raises:
  Error: If self couldn't be serialized, due to too few constructor
arguments.

Definition at line 915 of file protobuf/python/google/protobuf/descriptor.py.

Member Data Documentation

◆ _C_DESCRIPTOR_CLASS

google.protobuf.descriptor.MethodDescriptor._C_DESCRIPTOR_CLASS = _message.MethodDescriptor
staticprivate

◆ containing_service

google.protobuf.descriptor.MethodDescriptor.containing_service

◆ full_name

google.protobuf.descriptor.MethodDescriptor.full_name

◆ index

google.protobuf.descriptor.MethodDescriptor.index

◆ input_type

google.protobuf.descriptor.MethodDescriptor.input_type

◆ name

google.protobuf.descriptor.MethodDescriptor.name

◆ output_type

google.protobuf.descriptor.MethodDescriptor.output_type

The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:23