#NEWLINE# def _GetRequestClass( self , method_descriptor ) : #NEWLINE# #INDENT# 'Returns the class of the request protocol message.\n\n    Args:\n      method_descriptor: Descriptor of the method for which to return the\n        request protocol message class.\n\n    Returns:\n      A class that represents the input protocol message of the specified\n      method.\n    ' #NEWLINE# if ( method_descriptor . containing_service != method_descriptor . descriptor ) : #NEWLINE# #INDENT# raise RuntimeError ( 'GetRequestClass() given method descriptor for wrong service type.' ) #NEWLINE# #UNINDENT# return method_descriptor . input_type . _concrete_class