Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

fix: GoogleAdsError missing using generator version after 1.3.0 #515

Merged
merged 3 commits into from Jun 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion protos/google/cloud/texttospeech/v1beta1/cloud_tts.proto
Expand Up @@ -21,7 +21,7 @@ import "google/api/client.proto";
import "google/api/field_behavior.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.TextToSpeech.V1beta1";
option csharp_namespace = "Google.Cloud.TextToSpeech.V1Beta1";
option go_package = "google.golang.org/genproto/googleapis/cloud/texttospeech/v1beta1;texttospeech";
option java_multiple_files = true;
option java_outer_classname = "TextToSpeechProto";
Expand Down
2 changes: 1 addition & 1 deletion protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/v1/text_to_speech_client.ts
Expand Up @@ -130,6 +130,8 @@ export class TextToSpeechClient {
}
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 src/v1beta1/text_to_speech_client.ts
Expand Up @@ -130,6 +130,8 @@ export class TextToSpeechClient {
}
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