File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
gapic/templates/%namespace/%name_%version/%sub/services/%service Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -338,12 +338,12 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
338338 # If we have keyword arguments corresponding to fields on the
339339 # request, apply these.
340340 {% endif -%}
341- {% - for key , field in method .flattened_fields .items () if not (field .repeated and method .input .ident .package != method .ident .package ) %}
341+ {% - for key , field in method .flattened_fields .items () if not (field .repeated or method .input .ident .package != method .ident .package ) %}
342342 if {{ field.name }} is not None:
343343 request.{{ key }} = {{ field.name }}
344344 {% - endfor %}
345345 {# They can be _extended_, however -#}
346- {% - for key , field in method .flattened_fields .items () if ( field .repeated and method . input . ident . package != method . ident . package ) %}
346+ {% - for key , field in method .flattened_fields .items () if field .repeated %}
347347 if {{ field.name }}:
348348 request.{{ key }}.extend({{ field.name }})
349349 {% - endfor %}
You can’t perform that action at this time.
0 commit comments