Skip to content

Commit

Permalink
fix: GoogleAdsError missing using generator version after 1.3.0 (#755)
Browse files Browse the repository at this point in the history
[PR](googleapis/gapic-generator-typescript#878) within
updated gapic-generator-typescript version 1.4.0

Committer: @summer-ji-eng
PiperOrigin-RevId: 375759421

Source-Link: googleapis/googleapis@95fa72f

Source-Link: googleapis/googleapis-gen@f40a343
  • Loading branch information
gcf-owl-bot[bot] committed May 25, 2021
1 parent 32b61f9 commit 9a5240b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/google-cloud-node/src/v1/speech_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ export class SpeechClient {
}
if (!opts.fallback) {
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
} else if (opts.fallback === 'rest') {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
}
if (opts.libName && opts.libVersion) {
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
Expand Down
2 changes: 2 additions & 0 deletions packages/google-cloud-node/src/v1p1beta1/adaptation_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ export class AdaptationClient {
}
if (!opts.fallback) {
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
} else if (opts.fallback === 'rest') {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
}
if (opts.libName && opts.libVersion) {
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
Expand Down
2 changes: 2 additions & 0 deletions packages/google-cloud-node/src/v1p1beta1/speech_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ export class SpeechClient {
}
if (!opts.fallback) {
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
} else if (opts.fallback === 'rest') {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
}
if (opts.libName && opts.libVersion) {
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
Expand Down

0 comments on commit 9a5240b

Please sign in to comment.