You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/gapic-generator/gapic/ads-templates/%namespace/%name/%version/%sub/services/%service/client.py.j2
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -341,17 +341,17 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
341
341
raise ValueError('If the `request` argument is set, then none of '
342
342
'the individual field arguments should be set.')
343
343
344
-
{%endif -%}
344
+
{%endif -%}{# method.flattened_fields #}
345
345
{%ifmethod.input.ident.package != method.ident.package -%}{# request lives in a different package, so there is no proto wrapper #}
346
-
# The request isn't a proto-plus wrapped type,
346
+
# The request isn't a proto-plus wrapped type.
347
347
# so it must be constructed via keyword expansion.
348
348
if isinstance(request, dict):
349
349
request = {{ method.input.ident }}(**request)
350
350
{%ifmethod.flattened_fields -%}{# Cross-package req and flattened fields #}
0 commit comments