From 768a427da3d909d14d4236ae27cf523de1ffea4c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 23 Sep 2022 14:26:46 -0700 Subject: [PATCH] test: use fully qualified request type name in tests (#114) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../test/gapic_service_usage_v1.ts | 181 ++++---- .../test/gapic_service_usage_v1beta1.ts | 398 ++++++++++-------- 2 files changed, 334 insertions(+), 245 deletions(-) diff --git a/packages/google-api-serviceusage/test/gapic_service_usage_v1.ts b/packages/google-api-serviceusage/test/gapic_service_usage_v1.ts index 43146cf775b..3c114e6c872 100644 --- a/packages/google-api-serviceusage/test/gapic_service_usage_v1.ts +++ b/packages/google-api-serviceusage/test/gapic_service_usage_v1.ts @@ -267,7 +267,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.GetServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServiceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.GetServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -295,7 +298,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.GetServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServiceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.GetServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -339,7 +345,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.GetServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServiceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.GetServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -367,7 +376,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.GetServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServiceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.GetServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -385,9 +397,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.BatchGetServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchGetServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.BatchGetServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -415,9 +428,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.BatchGetServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchGetServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.BatchGetServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -461,9 +475,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.BatchGetServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchGetServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.BatchGetServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -491,9 +506,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.BatchGetServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchGetServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.BatchGetServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -511,9 +527,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.EnableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('EnableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.EnableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -543,9 +560,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.EnableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('EnableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.EnableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -596,9 +614,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.EnableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('EnableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.EnableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -626,9 +645,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.EnableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('EnableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.EnableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -701,9 +721,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.DisableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('DisableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.DisableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -733,9 +754,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.DisableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('DisableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.DisableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -786,9 +808,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.DisableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('DisableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.DisableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -816,9 +839,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.DisableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('DisableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.DisableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -891,9 +915,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.BatchEnableServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchEnableServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.BatchEnableServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -923,9 +948,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.BatchEnableServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchEnableServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.BatchEnableServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -976,9 +1002,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.BatchEnableServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchEnableServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.BatchEnableServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1006,9 +1033,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.BatchEnableServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchEnableServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.BatchEnableServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1081,9 +1109,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1113,9 +1142,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1161,9 +1191,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1191,9 +1222,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1244,9 +1276,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1294,9 +1327,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1336,9 +1370,10 @@ describe('v1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-api-serviceusage/test/gapic_service_usage_v1beta1.ts b/packages/google-api-serviceusage/test/gapic_service_usage_v1beta1.ts index ecc058cb092..c7d772c6d85 100644 --- a/packages/google-api-serviceusage/test/gapic_service_usage_v1beta1.ts +++ b/packages/google-api-serviceusage/test/gapic_service_usage_v1beta1.ts @@ -270,7 +270,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.GetServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServiceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.GetServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -300,7 +303,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.GetServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServiceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.GetServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -346,7 +352,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.GetServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServiceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.GetServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -376,7 +385,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.GetServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServiceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.GetServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -396,7 +408,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetConsumerQuotaMetricRequest', + '.google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest', ['name'] ); request.name = defaultValue1; @@ -428,7 +440,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetConsumerQuotaMetricRequest', + '.google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest', ['name'] ); request.name = defaultValue1; @@ -475,7 +487,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetConsumerQuotaMetricRequest', + '.google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest', ['name'] ); request.name = defaultValue1; @@ -509,7 +521,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetConsumerQuotaMetricRequest', + '.google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest', ['name'] ); request.name = defaultValue1; @@ -533,7 +545,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetConsumerQuotaLimitRequest', + '.google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest', ['name'] ); request.name = defaultValue1; @@ -565,7 +577,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetConsumerQuotaLimitRequest', + '.google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest', ['name'] ); request.name = defaultValue1; @@ -612,7 +624,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetConsumerQuotaLimitRequest', + '.google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest', ['name'] ); request.name = defaultValue1; @@ -646,7 +658,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetConsumerQuotaLimitRequest', + '.google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest', ['name'] ); request.name = defaultValue1; @@ -670,9 +682,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.EnableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('EnableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.EnableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -704,9 +717,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.EnableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('EnableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.EnableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -759,9 +773,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.EnableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('EnableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.EnableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -791,9 +806,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.EnableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('EnableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.EnableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -872,9 +888,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.DisableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('DisableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.DisableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -906,9 +923,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.DisableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('DisableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.DisableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -961,9 +979,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.DisableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('DisableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.DisableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -993,9 +1012,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.DisableServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('DisableServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.DisableServiceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1074,9 +1094,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.BatchEnableServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchEnableServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.BatchEnableServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1108,9 +1129,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.BatchEnableServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchEnableServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.BatchEnableServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1163,9 +1185,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.BatchEnableServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchEnableServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.BatchEnableServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1195,9 +1218,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.BatchEnableServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('BatchEnableServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.BatchEnableServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1275,9 +1299,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.CreateAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateAdminOverrideRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.CreateAdminOverrideRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1307,9 +1332,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.CreateAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateAdminOverrideRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.CreateAdminOverrideRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1360,9 +1386,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.CreateAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateAdminOverrideRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.CreateAdminOverrideRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1390,9 +1417,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.CreateAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateAdminOverrideRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.CreateAdminOverrideRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1465,9 +1493,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateAdminOverrideRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1497,9 +1526,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateAdminOverrideRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1550,9 +1580,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateAdminOverrideRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1580,9 +1611,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateAdminOverrideRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1655,9 +1687,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAdminOverrideRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1687,9 +1720,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAdminOverrideRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1740,9 +1774,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAdminOverrideRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1770,9 +1805,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteAdminOverrideRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1845,9 +1881,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ImportAdminOverridesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportAdminOverridesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ImportAdminOverridesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1877,9 +1914,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ImportAdminOverridesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportAdminOverridesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ImportAdminOverridesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1930,9 +1968,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ImportAdminOverridesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportAdminOverridesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ImportAdminOverridesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1960,9 +1999,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ImportAdminOverridesRequest() ); - const defaultValue1 = getTypeDefaultValue('ImportAdminOverridesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ImportAdminOverridesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2036,7 +2076,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest', ['parent'] ); request.parent = defaultValue1; @@ -2069,7 +2109,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest', ['parent'] ); request.parent = defaultValue1; @@ -2123,7 +2163,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest', ['parent'] ); request.parent = defaultValue1; @@ -2157,7 +2197,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest', ['parent'] ); request.parent = defaultValue1; @@ -2233,7 +2273,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'UpdateConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest', ['name'] ); request.name = defaultValue1; @@ -2266,7 +2306,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'UpdateConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest', ['name'] ); request.name = defaultValue1; @@ -2320,7 +2360,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'UpdateConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest', ['name'] ); request.name = defaultValue1; @@ -2354,7 +2394,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'UpdateConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest', ['name'] ); request.name = defaultValue1; @@ -2430,7 +2470,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest', ['name'] ); request.name = defaultValue1; @@ -2463,7 +2503,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest', ['name'] ); request.name = defaultValue1; @@ -2517,7 +2557,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest', ['name'] ); request.name = defaultValue1; @@ -2551,7 +2591,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteConsumerOverrideRequest', + '.google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest', ['name'] ); request.name = defaultValue1; @@ -2627,7 +2667,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportConsumerOverridesRequest', + '.google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest', ['parent'] ); request.parent = defaultValue1; @@ -2660,7 +2700,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportConsumerOverridesRequest', + '.google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest', ['parent'] ); request.parent = defaultValue1; @@ -2714,7 +2754,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportConsumerOverridesRequest', + '.google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest', ['parent'] ); request.parent = defaultValue1; @@ -2748,7 +2788,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ImportConsumerOverridesRequest', + '.google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest', ['parent'] ); request.parent = defaultValue1; @@ -2825,7 +2865,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GenerateServiceIdentityRequest', + '.google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest', ['parent'] ); request.parent = defaultValue1; @@ -2858,7 +2898,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GenerateServiceIdentityRequest', + '.google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest', ['parent'] ); request.parent = defaultValue1; @@ -2912,7 +2952,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GenerateServiceIdentityRequest', + '.google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest', ['parent'] ); request.parent = defaultValue1; @@ -2946,7 +2986,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GenerateServiceIdentityRequest', + '.google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest', ['parent'] ); request.parent = defaultValue1; @@ -3023,9 +3063,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3063,9 +3104,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3119,9 +3161,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3151,9 +3194,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3212,9 +3256,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3264,9 +3309,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3314,9 +3360,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListServicesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListServicesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListServicesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3357,7 +3404,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerQuotaMetricsRequest', + '.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest', ['parent'] ); request.parent = defaultValue1; @@ -3397,7 +3444,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerQuotaMetricsRequest', + '.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest', ['parent'] ); request.parent = defaultValue1; @@ -3454,7 +3501,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerQuotaMetricsRequest', + '.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest', ['parent'] ); request.parent = defaultValue1; @@ -3488,7 +3535,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerQuotaMetricsRequest', + '.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest', ['parent'] ); request.parent = defaultValue1; @@ -3557,7 +3604,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerQuotaMetricsRequest', + '.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest', ['parent'] ); request.parent = defaultValue1; @@ -3615,7 +3662,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerQuotaMetricsRequest', + '.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest', ['parent'] ); request.parent = defaultValue1; @@ -3669,7 +3716,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerQuotaMetricsRequest', + '.google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest', ['parent'] ); request.parent = defaultValue1; @@ -3715,9 +3762,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListAdminOverridesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAdminOverridesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListAdminOverridesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3754,9 +3802,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListAdminOverridesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAdminOverridesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListAdminOverridesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3810,9 +3859,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListAdminOverridesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAdminOverridesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListAdminOverridesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3840,9 +3890,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListAdminOverridesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAdminOverridesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListAdminOverridesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3900,9 +3951,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListAdminOverridesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAdminOverridesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListAdminOverridesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3949,9 +4001,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListAdminOverridesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAdminOverridesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListAdminOverridesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3998,9 +4051,10 @@ describe('v1beta1.ServiceUsageClient', () => { const request = generateSampleMessage( new protos.google.api.serviceusage.v1beta1.ListAdminOverridesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAdminOverridesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.api.serviceusage.v1beta1.ListAdminOverridesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4041,7 +4095,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerOverridesRequest', + '.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4081,7 +4135,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerOverridesRequest', + '.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4138,7 +4192,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerOverridesRequest', + '.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4172,7 +4226,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerOverridesRequest', + '.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4239,7 +4293,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerOverridesRequest', + '.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4295,7 +4349,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerOverridesRequest', + '.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest', ['parent'] ); request.parent = defaultValue1; @@ -4349,7 +4403,7 @@ describe('v1beta1.ServiceUsageClient', () => { new protos.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListConsumerOverridesRequest', + '.google.api.serviceusage.v1beta1.ListConsumerOverridesRequest', ['parent'] ); request.parent = defaultValue1;