From 6912e77f3b8897ed7b90ece4d49d0f21b44418e8 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 15:19:25 -0700 Subject: [PATCH] build: use fully qualified request type name in tests (#168) 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 * 🦉 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_executions_v1.ts | 133 ++++++++------- .../test/gapic_executions_v1beta.ts | 133 ++++++++------- .../test/gapic_workflows_v1.ts | 157 ++++++++++-------- .../test/gapic_workflows_v1beta.ts | 157 ++++++++++-------- 4 files changed, 336 insertions(+), 244 deletions(-) diff --git a/packages/google-cloud-workflows-executions/test/gapic_executions_v1.ts b/packages/google-cloud-workflows-executions/test/gapic_executions_v1.ts index 8c1f7c14be5..1b43c253519 100644 --- a/packages/google-cloud-workflows-executions/test/gapic_executions_v1.ts +++ b/packages/google-cloud-workflows-executions/test/gapic_executions_v1.ts @@ -235,9 +235,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -265,9 +266,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -311,9 +313,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -341,9 +344,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -361,9 +365,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -391,9 +396,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -437,9 +443,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -467,9 +474,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -487,9 +495,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.CancelExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.CancelExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -517,9 +526,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.CancelExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.CancelExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -563,9 +573,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.CancelExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.CancelExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -593,9 +604,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.CancelExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.CancelExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -613,9 +625,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -651,9 +664,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -707,9 +721,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -737,9 +752,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -797,9 +813,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -846,9 +863,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -895,9 +913,10 @@ describe('v1.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-workflows-executions/test/gapic_executions_v1beta.ts b/packages/google-cloud-workflows-executions/test/gapic_executions_v1beta.ts index 14d3c36f1d3..90c25aab30e 100644 --- a/packages/google-cloud-workflows-executions/test/gapic_executions_v1beta.ts +++ b/packages/google-cloud-workflows-executions/test/gapic_executions_v1beta.ts @@ -235,9 +235,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -265,9 +266,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -311,9 +313,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -341,9 +344,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.CreateExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.CreateExecutionRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -361,9 +365,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -391,9 +396,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -437,9 +443,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -467,9 +474,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.GetExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.GetExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -487,9 +495,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.CancelExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.CancelExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -517,9 +526,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.CancelExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.CancelExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -563,9 +573,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.CancelExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.CancelExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -593,9 +604,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.CancelExecutionRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.CancelExecutionRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -613,9 +625,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -651,9 +664,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -707,9 +721,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -737,9 +752,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -799,9 +815,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -850,9 +867,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -899,9 +917,10 @@ describe('v1beta.ExecutionsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.executions.v1beta.ListExecutionsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.executions.v1beta.ListExecutionsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-workflows-executions/test/gapic_workflows_v1.ts b/packages/google-cloud-workflows-executions/test/gapic_workflows_v1.ts index 5ad380ba20a..2646c07be13 100644 --- a/packages/google-cloud-workflows-executions/test/gapic_workflows_v1.ts +++ b/packages/google-cloud-workflows-executions/test/gapic_workflows_v1.ts @@ -267,7 +267,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.GetWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('GetWorkflowRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.GetWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -295,7 +298,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.GetWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('GetWorkflowRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.GetWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -339,7 +345,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.GetWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('GetWorkflowRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.GetWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -367,7 +376,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.GetWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('GetWorkflowRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.GetWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -385,9 +397,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.CreateWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateWorkflowRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.CreateWorkflowRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -417,9 +430,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.CreateWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateWorkflowRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.CreateWorkflowRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -470,9 +484,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.CreateWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateWorkflowRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.CreateWorkflowRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -500,9 +515,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.CreateWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateWorkflowRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.CreateWorkflowRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -575,9 +591,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.DeleteWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteWorkflowRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.DeleteWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -607,9 +624,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.DeleteWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteWorkflowRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.DeleteWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -660,9 +678,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.DeleteWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteWorkflowRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.DeleteWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -690,9 +709,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.DeleteWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteWorkflowRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.DeleteWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -766,10 +786,10 @@ describe('v1.WorkflowsClient', () => { new protos.google.cloud.workflows.v1.UpdateWorkflowRequest() ); request.workflow ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateWorkflowRequest', [ - 'workflow', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.UpdateWorkflowRequest', + ['workflow', 'name'] + ); request.workflow.name = defaultValue1; const expectedHeaderRequestParams = `workflow.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -800,10 +820,10 @@ describe('v1.WorkflowsClient', () => { new protos.google.cloud.workflows.v1.UpdateWorkflowRequest() ); request.workflow ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateWorkflowRequest', [ - 'workflow', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.UpdateWorkflowRequest', + ['workflow', 'name'] + ); request.workflow.name = defaultValue1; const expectedHeaderRequestParams = `workflow.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -855,10 +875,10 @@ describe('v1.WorkflowsClient', () => { new protos.google.cloud.workflows.v1.UpdateWorkflowRequest() ); request.workflow ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateWorkflowRequest', [ - 'workflow', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.UpdateWorkflowRequest', + ['workflow', 'name'] + ); request.workflow.name = defaultValue1; const expectedHeaderRequestParams = `workflow.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -887,10 +907,10 @@ describe('v1.WorkflowsClient', () => { new protos.google.cloud.workflows.v1.UpdateWorkflowRequest() ); request.workflow ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateWorkflowRequest', [ - 'workflow', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.UpdateWorkflowRequest', + ['workflow', 'name'] + ); request.workflow.name = defaultValue1; const expectedHeaderRequestParams = `workflow.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -963,9 +983,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -995,9 +1016,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1043,9 +1065,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1073,9 +1096,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1126,9 +1150,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1174,9 +1199,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1216,9 +1242,10 @@ describe('v1.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-workflows-executions/test/gapic_workflows_v1beta.ts b/packages/google-cloud-workflows-executions/test/gapic_workflows_v1beta.ts index eacc97b856b..1c8dcc753b4 100644 --- a/packages/google-cloud-workflows-executions/test/gapic_workflows_v1beta.ts +++ b/packages/google-cloud-workflows-executions/test/gapic_workflows_v1beta.ts @@ -267,7 +267,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.GetWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('GetWorkflowRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.GetWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -295,7 +298,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.GetWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('GetWorkflowRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.GetWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -339,7 +345,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.GetWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('GetWorkflowRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.GetWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -367,7 +376,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.GetWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('GetWorkflowRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.GetWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -385,9 +397,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.CreateWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateWorkflowRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.CreateWorkflowRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -417,9 +430,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.CreateWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateWorkflowRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.CreateWorkflowRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -470,9 +484,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.CreateWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateWorkflowRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.CreateWorkflowRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -500,9 +515,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.CreateWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateWorkflowRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.CreateWorkflowRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -575,9 +591,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.DeleteWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteWorkflowRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.DeleteWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -607,9 +624,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.DeleteWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteWorkflowRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.DeleteWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -660,9 +678,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.DeleteWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteWorkflowRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.DeleteWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -690,9 +709,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.DeleteWorkflowRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteWorkflowRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.DeleteWorkflowRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -766,10 +786,10 @@ describe('v1beta.WorkflowsClient', () => { new protos.google.cloud.workflows.v1beta.UpdateWorkflowRequest() ); request.workflow ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateWorkflowRequest', [ - 'workflow', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.UpdateWorkflowRequest', + ['workflow', 'name'] + ); request.workflow.name = defaultValue1; const expectedHeaderRequestParams = `workflow.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -800,10 +820,10 @@ describe('v1beta.WorkflowsClient', () => { new protos.google.cloud.workflows.v1beta.UpdateWorkflowRequest() ); request.workflow ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateWorkflowRequest', [ - 'workflow', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.UpdateWorkflowRequest', + ['workflow', 'name'] + ); request.workflow.name = defaultValue1; const expectedHeaderRequestParams = `workflow.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -855,10 +875,10 @@ describe('v1beta.WorkflowsClient', () => { new protos.google.cloud.workflows.v1beta.UpdateWorkflowRequest() ); request.workflow ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateWorkflowRequest', [ - 'workflow', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.UpdateWorkflowRequest', + ['workflow', 'name'] + ); request.workflow.name = defaultValue1; const expectedHeaderRequestParams = `workflow.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -887,10 +907,10 @@ describe('v1beta.WorkflowsClient', () => { new protos.google.cloud.workflows.v1beta.UpdateWorkflowRequest() ); request.workflow ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateWorkflowRequest', [ - 'workflow', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.UpdateWorkflowRequest', + ['workflow', 'name'] + ); request.workflow.name = defaultValue1; const expectedHeaderRequestParams = `workflow.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -963,9 +983,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1001,9 +1022,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1055,9 +1077,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1085,9 +1108,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1144,9 +1168,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1192,9 +1217,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1240,9 +1266,10 @@ describe('v1beta.WorkflowsClient', () => { const request = generateSampleMessage( new protos.google.cloud.workflows.v1beta.ListWorkflowsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListWorkflowsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.workflows.v1beta.ListWorkflowsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected');