38
38
"{{ method.route }}",
39
39
{{ method.py_input_message_type }}.SerializeToString,
40
40
{{ method.py_output_message_type }}.FromString,
41
- )({{ method.py_input_message_param }}_iterator ):
41
+ )(messages ):
42
42
yield response
43
43
{% else %}
44
44
{% if method .is_input_msg_empty %}
45
- if {{ method.py_input_message_param }} is None:
46
- {{ method.py_input_message_param }} = {{ method.py_input_message_type }}()
45
+ if message is None:
46
+ message = {{ method.py_input_message_type }}()
47
47
48
48
{% endif %}
49
49
for response in self._channel.unary_stream(
50
50
"{{ method.route }}",
51
51
{{ method.py_input_message_type }}.SerializeToString,
52
52
{{ method.py_output_message_type }}.FromString,
53
- )({{ method.py_input_message_param }} ):
53
+ )(message ):
54
54
yield response
55
55
56
56
{% endif %}
60
60
"{{ method.route }}",
61
61
{{ method.py_input_message_type }}.SerializeToString,
62
62
{{ method.py_output_message_type }}.FromString,
63
- )({{ method.py_input_message_param }}_iterator )
63
+ )(messages )
64
64
{% else %}
65
65
{% if method .is_input_msg_empty %}
66
- if {{ method.py_input_message_param }} is None:
67
- {{ method.py_input_message_param }} = {{ method.py_input_message_type }}()
66
+ if message is None:
67
+ message = {{ method.py_input_message_type }}()
68
68
69
69
{% endif %}
70
70
return self._channel.unary_unary(
71
71
"{{ method.route }}",
72
72
{{ method.py_input_message_type }}.SerializeToString,
73
73
{{ method.py_output_message_type }}.FromString,
74
- )({{ method.py_input_message_param }} )
74
+ )(message )
75
75
{% endif %}
76
76
{% endif %}
77
77
{% endblock %}
0 commit comments