Skip to content

Commit

Permalink
fix: render subresponse_field as string if it is not null (#346)
Browse files Browse the repository at this point in the history
* add quote to subresponse_field

* feedback
  • Loading branch information
xiaozhenliu-gg5 authored Mar 20, 2020
1 parent 7c90095 commit a0e7b40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ export class LoggingServiceV2Client {
this._descriptors.batching = {
WriteLogEntries: new this._gaxModule.BundleDescriptor(
'entries',
['log_name','resource','labels'],null,
['log_name','resource','labels'],
null,
gax.createByteLengthFunction(
// tslint:disable-next-line no-any
protoFilesRoot.lookupType('google.logging.v2.LogEntry') as any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ export class {{ service.name }}Client {
'{{ field }}'
{%- endfor -%}
],
{{- method.bundleConfig.batchDescriptor.subresponse_field }},
{%- if method.bundleConfig.batchDescriptor.subresponse_field === 'null' %}
null,
{%- else %}
'{{- method.bundleConfig.batchDescriptor.subresponse_field }}',
{%- endif %}
gax.createByteLengthFunction(
// tslint:disable-next-line no-any
protoFilesRoot.lookupType('{{ method.bundleConfig.repeatedField }}') as any
Expand Down

0 comments on commit a0e7b40

Please sign in to comment.