From 741453861f719f7600acd541e148b32901e3bb92 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 22 Sep 2022 20:08:16 +0000 Subject: [PATCH] test: use fully qualified request type name in tests (#930) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 475956674 Source-Link: https://github.com/googleapis/googleapis/commit/210422e82d7077829aa5270a9894fa667782182d Source-Link: https://github.com/googleapis/googleapis-gen/commit/43a371600cebdecaa8186f47920a9a471182dd5b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDNhMzcxNjAwY2ViZGVjYWE4MTg2ZjQ3OTIwYTlhNDcxMTgyZGQ1YiJ9 test: use fully qualified request type name in tests PiperOrigin-RevId: 475685359 Source-Link: https://github.com/googleapis/googleapis/commit/7a129736313ceb1f277c3b7f7e16d2e04cc901dd Source-Link: https://github.com/googleapis/googleapis-gen/commit/370c729e2ba062a167449c27882ba5f379c5c34d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzcwYzcyOWUyYmEwNjJhMTY3NDQ5YzI3ODgyYmE1ZjM3OWM1YzM0ZCJ9 feat: added Speech-to-Text V2 API proto The next generation Speech-to-Text V2 API provides the same features clients are familiar with in the existing Speech-to-Text API, while modernizing and simplifying the API using API best practices, resourceful methods, and updated infrastructure. Although this proto is published, the service is not yet available. PiperOrigin-RevId: 474926510 Source-Link: https://github.com/googleapis/googleapis/commit/bb4d7f49441884fdfffa2d7552254d8540a597e2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/9ecdb75038b10cfe4685d8a301e2abf8e4dfaa48 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWVjZGI3NTAzOGIxMGNmZTQ2ODVkOGEzMDFlMmFiZjhlNGRmYWE0OCJ9 --- test/gapic_adaptation_v1.ts | 330 ++++++++++++++++------------- test/gapic_adaptation_v1p1beta1.ts | 330 ++++++++++++++++------------- 2 files changed, 368 insertions(+), 292 deletions(-) diff --git a/test/gapic_adaptation_v1.ts b/test/gapic_adaptation_v1.ts index 62d7debc..b623764d 100644 --- a/test/gapic_adaptation_v1.ts +++ b/test/gapic_adaptation_v1.ts @@ -235,9 +235,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.CreatePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.CreatePhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -265,9 +266,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.CreatePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.CreatePhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -311,9 +313,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.CreatePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.CreatePhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -341,9 +344,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.CreatePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.CreatePhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -361,9 +365,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.GetPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.GetPhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -391,9 +396,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.GetPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.GetPhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -437,9 +443,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.GetPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.GetPhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -467,9 +474,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.GetPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.GetPhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -488,10 +496,10 @@ describe('v1.AdaptationClient', () => { new protos.google.cloud.speech.v1.UpdatePhraseSetRequest() ); request.phraseSet ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePhraseSetRequest', [ - 'phraseSet', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.UpdatePhraseSetRequest', + ['phraseSet', 'name'] + ); request.phraseSet.name = defaultValue1; const expectedHeaderRequestParams = `phrase_set.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -520,10 +528,10 @@ describe('v1.AdaptationClient', () => { new protos.google.cloud.speech.v1.UpdatePhraseSetRequest() ); request.phraseSet ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePhraseSetRequest', [ - 'phraseSet', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.UpdatePhraseSetRequest', + ['phraseSet', 'name'] + ); request.phraseSet.name = defaultValue1; const expectedHeaderRequestParams = `phrase_set.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -568,10 +576,10 @@ describe('v1.AdaptationClient', () => { new protos.google.cloud.speech.v1.UpdatePhraseSetRequest() ); request.phraseSet ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePhraseSetRequest', [ - 'phraseSet', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.UpdatePhraseSetRequest', + ['phraseSet', 'name'] + ); request.phraseSet.name = defaultValue1; const expectedHeaderRequestParams = `phrase_set.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -600,10 +608,10 @@ describe('v1.AdaptationClient', () => { new protos.google.cloud.speech.v1.UpdatePhraseSetRequest() ); request.phraseSet ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePhraseSetRequest', [ - 'phraseSet', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.UpdatePhraseSetRequest', + ['phraseSet', 'name'] + ); request.phraseSet.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -621,9 +629,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.DeletePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.DeletePhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -651,9 +660,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.DeletePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.DeletePhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -697,9 +707,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.DeletePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.DeletePhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -727,9 +738,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.DeletePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.DeletePhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -747,9 +759,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.CreateCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomClassRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.CreateCustomClassRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -777,9 +790,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.CreateCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomClassRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.CreateCustomClassRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -823,9 +837,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.CreateCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomClassRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.CreateCustomClassRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -853,9 +868,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.CreateCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomClassRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.CreateCustomClassRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -873,9 +889,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.GetCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.GetCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -903,9 +920,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.GetCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.GetCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -949,9 +967,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.GetCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.GetCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -979,9 +998,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.GetCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.GetCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1000,10 +1020,10 @@ describe('v1.AdaptationClient', () => { new protos.google.cloud.speech.v1.UpdateCustomClassRequest() ); request.customClass ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomClassRequest', [ - 'customClass', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.UpdateCustomClassRequest', + ['customClass', 'name'] + ); request.customClass.name = defaultValue1; const expectedHeaderRequestParams = `custom_class.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1032,10 +1052,10 @@ describe('v1.AdaptationClient', () => { new protos.google.cloud.speech.v1.UpdateCustomClassRequest() ); request.customClass ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomClassRequest', [ - 'customClass', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.UpdateCustomClassRequest', + ['customClass', 'name'] + ); request.customClass.name = defaultValue1; const expectedHeaderRequestParams = `custom_class.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1080,10 +1100,10 @@ describe('v1.AdaptationClient', () => { new protos.google.cloud.speech.v1.UpdateCustomClassRequest() ); request.customClass ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomClassRequest', [ - 'customClass', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.UpdateCustomClassRequest', + ['customClass', 'name'] + ); request.customClass.name = defaultValue1; const expectedHeaderRequestParams = `custom_class.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1112,10 +1132,10 @@ describe('v1.AdaptationClient', () => { new protos.google.cloud.speech.v1.UpdateCustomClassRequest() ); request.customClass ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomClassRequest', [ - 'customClass', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.UpdateCustomClassRequest', + ['customClass', 'name'] + ); request.customClass.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1133,9 +1153,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.DeleteCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.DeleteCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1163,9 +1184,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.DeleteCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.DeleteCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1209,9 +1231,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.DeleteCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.DeleteCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1239,9 +1262,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.DeleteCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.DeleteCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1259,9 +1283,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1291,9 +1316,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1339,9 +1365,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1369,9 +1396,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1422,9 +1450,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1470,9 +1499,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1512,9 +1542,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1553,9 +1584,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1585,9 +1617,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1633,9 +1666,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1663,9 +1697,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1716,9 +1751,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1764,9 +1800,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1806,9 +1843,10 @@ describe('v1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/test/gapic_adaptation_v1p1beta1.ts b/test/gapic_adaptation_v1p1beta1.ts index 54b4c86f..4c749174 100644 --- a/test/gapic_adaptation_v1p1beta1.ts +++ b/test/gapic_adaptation_v1p1beta1.ts @@ -237,9 +237,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -267,9 +268,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -313,9 +315,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -343,9 +346,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('CreatePhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -363,9 +367,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.GetPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.GetPhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -393,9 +398,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.GetPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.GetPhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -439,9 +445,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.GetPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.GetPhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -469,9 +476,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.GetPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('GetPhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.GetPhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -490,10 +498,10 @@ describe('v1p1beta1.AdaptationClient', () => { new protos.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest() ); request.phraseSet ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePhraseSetRequest', [ - 'phraseSet', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest', + ['phraseSet', 'name'] + ); request.phraseSet.name = defaultValue1; const expectedHeaderRequestParams = `phrase_set.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -522,10 +530,10 @@ describe('v1p1beta1.AdaptationClient', () => { new protos.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest() ); request.phraseSet ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePhraseSetRequest', [ - 'phraseSet', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest', + ['phraseSet', 'name'] + ); request.phraseSet.name = defaultValue1; const expectedHeaderRequestParams = `phrase_set.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -570,10 +578,10 @@ describe('v1p1beta1.AdaptationClient', () => { new protos.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest() ); request.phraseSet ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePhraseSetRequest', [ - 'phraseSet', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest', + ['phraseSet', 'name'] + ); request.phraseSet.name = defaultValue1; const expectedHeaderRequestParams = `phrase_set.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -602,10 +610,10 @@ describe('v1p1beta1.AdaptationClient', () => { new protos.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest() ); request.phraseSet ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdatePhraseSetRequest', [ - 'phraseSet', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest', + ['phraseSet', 'name'] + ); request.phraseSet.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -623,9 +631,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -653,9 +662,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -699,9 +709,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -729,9 +740,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('DeletePhraseSetRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -749,9 +761,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.CreateCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomClassRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.CreateCustomClassRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -779,9 +792,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.CreateCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomClassRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.CreateCustomClassRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -825,9 +839,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.CreateCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomClassRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.CreateCustomClassRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -855,9 +870,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.CreateCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateCustomClassRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.CreateCustomClassRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -875,9 +891,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.GetCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.GetCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -905,9 +922,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.GetCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.GetCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -951,9 +969,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.GetCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.GetCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -981,9 +1000,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.GetCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('GetCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.GetCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1002,10 +1022,10 @@ describe('v1p1beta1.AdaptationClient', () => { new protos.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest() ); request.customClass ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomClassRequest', [ - 'customClass', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest', + ['customClass', 'name'] + ); request.customClass.name = defaultValue1; const expectedHeaderRequestParams = `custom_class.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1034,10 +1054,10 @@ describe('v1p1beta1.AdaptationClient', () => { new protos.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest() ); request.customClass ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomClassRequest', [ - 'customClass', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest', + ['customClass', 'name'] + ); request.customClass.name = defaultValue1; const expectedHeaderRequestParams = `custom_class.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1082,10 +1102,10 @@ describe('v1p1beta1.AdaptationClient', () => { new protos.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest() ); request.customClass ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomClassRequest', [ - 'customClass', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest', + ['customClass', 'name'] + ); request.customClass.name = defaultValue1; const expectedHeaderRequestParams = `custom_class.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1114,10 +1134,10 @@ describe('v1p1beta1.AdaptationClient', () => { new protos.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest() ); request.customClass ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateCustomClassRequest', [ - 'customClass', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest', + ['customClass', 'name'] + ); request.customClass.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1135,9 +1155,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1165,9 +1186,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1211,9 +1233,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1241,9 +1264,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteCustomClassRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1261,9 +1285,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1299,9 +1324,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1353,9 +1379,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1383,9 +1410,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1442,9 +1470,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1490,9 +1519,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1538,9 +1568,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListPhraseSetRequest() ); - const defaultValue1 = getTypeDefaultValue('ListPhraseSetRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListPhraseSetRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1579,9 +1610,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1617,9 +1649,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1671,9 +1704,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1701,9 +1735,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1761,9 +1796,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1810,9 +1846,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1858,9 +1895,10 @@ describe('v1p1beta1.AdaptationClient', () => { const request = generateSampleMessage( new protos.google.cloud.speech.v1p1beta1.ListCustomClassesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListCustomClassesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.speech.v1p1beta1.ListCustomClassesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected');