From 73baa907000d50d32a3d913a175ccbf3ab732e70 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 May 2021 17:00:11 +0000 Subject: [PATCH] chore: new owl bot post processor docker image (#507) gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f --- .../protos/protos.d.ts | 18 +++++----- .../protos/protos.js | 36 +++++++++---------- .../src/v1/text_to_speech_client.ts | 15 ++++---- .../src/v1beta1/text_to_speech_client.ts | 15 ++++---- .../test/gapic_text_to_speech_v1.ts | 17 ++++----- .../test/gapic_text_to_speech_v1beta1.ts | 17 ++++----- 6 files changed, 57 insertions(+), 61 deletions(-) diff --git a/packages/google-cloud-texttospeech/protos/protos.d.ts b/packages/google-cloud-texttospeech/protos/protos.d.ts index e4e6fa95319..36e6bc17e40 100644 --- a/packages/google-cloud-texttospeech/protos/protos.d.ts +++ b/packages/google-cloud-texttospeech/protos/protos.d.ts @@ -518,10 +518,10 @@ export namespace google { constructor(properties?: google.cloud.texttospeech.v1.ISynthesisInput); /** SynthesisInput text. */ - public text: string; + public text?: (string|null); /** SynthesisInput ssml. */ - public ssml: string; + public ssml?: (string|null); /** SynthesisInput inputSource. */ public inputSource?: ("text"|"ssml"); @@ -1423,10 +1423,10 @@ export namespace google { constructor(properties?: google.cloud.texttospeech.v1beta1.ISynthesisInput); /** SynthesisInput text. */ - public text: string; + public text?: (string|null); /** SynthesisInput ssml. */ - public ssml: string; + public ssml?: (string|null); /** SynthesisInput inputSource. */ public inputSource?: ("text"|"ssml"); @@ -2071,19 +2071,19 @@ export namespace google { public selector: string; /** HttpRule get. */ - public get: string; + public get?: (string|null); /** HttpRule put. */ - public put: string; + public put?: (string|null); /** HttpRule post. */ - public post: string; + public post?: (string|null); /** HttpRule delete. */ - public delete: string; + public delete?: (string|null); /** HttpRule patch. */ - public patch: string; + public patch?: (string|null); /** HttpRule custom. */ public custom?: (google.api.ICustomHttpPattern|null); diff --git a/packages/google-cloud-texttospeech/protos/protos.js b/packages/google-cloud-texttospeech/protos/protos.js index c9e97df8397..b30545271de 100644 --- a/packages/google-cloud-texttospeech/protos/protos.js +++ b/packages/google-cloud-texttospeech/protos/protos.js @@ -1166,19 +1166,19 @@ /** * SynthesisInput text. - * @member {string} text + * @member {string|null|undefined} text * @memberof google.cloud.texttospeech.v1.SynthesisInput * @instance */ - SynthesisInput.prototype.text = ""; + SynthesisInput.prototype.text = null; /** * SynthesisInput ssml. - * @member {string} ssml + * @member {string|null|undefined} ssml * @memberof google.cloud.texttospeech.v1.SynthesisInput * @instance */ - SynthesisInput.prototype.ssml = ""; + SynthesisInput.prototype.ssml = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -3355,19 +3355,19 @@ /** * SynthesisInput text. - * @member {string} text + * @member {string|null|undefined} text * @memberof google.cloud.texttospeech.v1beta1.SynthesisInput * @instance */ - SynthesisInput.prototype.text = ""; + SynthesisInput.prototype.text = null; /** * SynthesisInput ssml. - * @member {string} ssml + * @member {string|null|undefined} ssml * @memberof google.cloud.texttospeech.v1beta1.SynthesisInput * @instance */ - SynthesisInput.prototype.ssml = ""; + SynthesisInput.prototype.ssml = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -4940,43 +4940,43 @@ /** * HttpRule get. - * @member {string} get + * @member {string|null|undefined} get * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.get = ""; + HttpRule.prototype.get = null; /** * HttpRule put. - * @member {string} put + * @member {string|null|undefined} put * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.put = ""; + HttpRule.prototype.put = null; /** * HttpRule post. - * @member {string} post + * @member {string|null|undefined} post * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.post = ""; + HttpRule.prototype.post = null; /** * HttpRule delete. - * @member {string} delete + * @member {string|null|undefined} delete * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype["delete"] = ""; + HttpRule.prototype["delete"] = null; /** * HttpRule patch. - * @member {string} patch + * @member {string|null|undefined} patch * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.patch = ""; + HttpRule.prototype.patch = null; /** * HttpRule custom. diff --git a/packages/google-cloud-texttospeech/src/v1/text_to_speech_client.ts b/packages/google-cloud-texttospeech/src/v1/text_to_speech_client.ts index c38165d29ea..ddb64e6213b 100644 --- a/packages/google-cloud-texttospeech/src/v1/text_to_speech_client.ts +++ b/packages/google-cloud-texttospeech/src/v1/text_to_speech_client.ts @@ -200,13 +200,14 @@ export class TextToSpeechClient { const textToSpeechStubMethods = ['listVoices', 'synthesizeSpeech']; for (const methodName of textToSpeechStubMethods) { const callPromise = this.textToSpeechStub.then( - stub => (...args: Array<{}>) => { - if (this._terminated) { - return Promise.reject('The client has already been closed.'); - } - const func = stub[methodName]; - return func.apply(stub, args); - }, + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, (err: Error | null | undefined) => () => { throw err; } diff --git a/packages/google-cloud-texttospeech/src/v1beta1/text_to_speech_client.ts b/packages/google-cloud-texttospeech/src/v1beta1/text_to_speech_client.ts index 3e6e8b6be0c..6fc96d6c55a 100644 --- a/packages/google-cloud-texttospeech/src/v1beta1/text_to_speech_client.ts +++ b/packages/google-cloud-texttospeech/src/v1beta1/text_to_speech_client.ts @@ -200,13 +200,14 @@ export class TextToSpeechClient { const textToSpeechStubMethods = ['listVoices', 'synthesizeSpeech']; for (const methodName of textToSpeechStubMethods) { const callPromise = this.textToSpeechStub.then( - stub => (...args: Array<{}>) => { - if (this._terminated) { - return Promise.reject('The client has already been closed.'); - } - const func = stub[methodName]; - return func.apply(stub, args); - }, + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, (err: Error | null | undefined) => () => { throw err; } diff --git a/packages/google-cloud-texttospeech/test/gapic_text_to_speech_v1.ts b/packages/google-cloud-texttospeech/test/gapic_text_to_speech_v1.ts index 7240d41029a..dc20c16c335 100644 --- a/packages/google-cloud-texttospeech/test/gapic_text_to_speech_v1.ts +++ b/packages/google-cloud-texttospeech/test/gapic_text_to_speech_v1.ts @@ -26,10 +26,9 @@ import * as texttospeechModule from '../src'; import {protobuf} from 'google-gax'; function generateSampleMessage(instance: T) { - const filledObject = (instance.constructor as typeof protobuf.Message).toObject( - instance as protobuf.Message, - {defaults: true} - ); + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); return (instance.constructor as typeof protobuf.Message).fromObject( filledObject ) as T; @@ -168,9 +167,8 @@ describe('v1.TextToSpeechClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.texttospeech.v1.ListVoicesResponse() ); - client.innerApiCalls.listVoices = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listVoices = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listVoices( request, @@ -256,9 +254,8 @@ describe('v1.TextToSpeechClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.texttospeech.v1.SynthesizeSpeechResponse() ); - client.innerApiCalls.synthesizeSpeech = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.synthesizeSpeech = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.synthesizeSpeech( request, diff --git a/packages/google-cloud-texttospeech/test/gapic_text_to_speech_v1beta1.ts b/packages/google-cloud-texttospeech/test/gapic_text_to_speech_v1beta1.ts index 4646d53a33a..496ad07fbaf 100644 --- a/packages/google-cloud-texttospeech/test/gapic_text_to_speech_v1beta1.ts +++ b/packages/google-cloud-texttospeech/test/gapic_text_to_speech_v1beta1.ts @@ -26,10 +26,9 @@ import * as texttospeechModule from '../src'; import {protobuf} from 'google-gax'; function generateSampleMessage(instance: T) { - const filledObject = (instance.constructor as typeof protobuf.Message).toObject( - instance as protobuf.Message, - {defaults: true} - ); + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); return (instance.constructor as typeof protobuf.Message).fromObject( filledObject ) as T; @@ -170,9 +169,8 @@ describe('v1beta1.TextToSpeechClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.texttospeech.v1beta1.ListVoicesResponse() ); - client.innerApiCalls.listVoices = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listVoices = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listVoices( request, @@ -258,9 +256,8 @@ describe('v1beta1.TextToSpeechClient', () => { const expectedResponse = generateSampleMessage( new protos.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse() ); - client.innerApiCalls.synthesizeSpeech = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.synthesizeSpeech = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.synthesizeSpeech( request,