diff --git a/packages/google-cloud-securitycenter/test/gapic_security_center_v1.ts b/packages/google-cloud-securitycenter/test/gapic_security_center_v1.ts index 74c0d3efc84..31c5a95b23e 100644 --- a/packages/google-cloud-securitycenter/test/gapic_security_center_v1.ts +++ b/packages/google-cloud-securitycenter/test/gapic_security_center_v1.ts @@ -269,9 +269,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -299,9 +300,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -345,9 +347,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -375,9 +378,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -395,9 +399,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -425,9 +430,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -471,9 +477,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -501,9 +508,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -521,9 +529,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMuteConfigRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateMuteConfigRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -551,9 +560,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMuteConfigRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateMuteConfigRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -597,9 +607,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMuteConfigRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateMuteConfigRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -627,9 +638,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateMuteConfigRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateMuteConfigRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -648,7 +660,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.CreateNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateNotificationConfigRequest', + '.google.cloud.securitycenter.v1.CreateNotificationConfigRequest', ['parent'] ); request.parent = defaultValue1; @@ -680,7 +692,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.CreateNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateNotificationConfigRequest', + '.google.cloud.securitycenter.v1.CreateNotificationConfigRequest', ['parent'] ); request.parent = defaultValue1; @@ -727,7 +739,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.CreateNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateNotificationConfigRequest', + '.google.cloud.securitycenter.v1.CreateNotificationConfigRequest', ['parent'] ); request.parent = defaultValue1; @@ -761,7 +773,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.CreateNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateNotificationConfigRequest', + '.google.cloud.securitycenter.v1.CreateNotificationConfigRequest', ['parent'] ); request.parent = defaultValue1; @@ -784,9 +796,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.DeleteMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMuteConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteMuteConfigRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -814,9 +827,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.DeleteMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMuteConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteMuteConfigRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -860,9 +874,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.DeleteMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMuteConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteMuteConfigRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -890,9 +905,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.DeleteMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteMuteConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteMuteConfigRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -911,7 +927,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteNotificationConfigRequest', + '.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -943,7 +959,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteNotificationConfigRequest', + '.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -990,7 +1006,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteNotificationConfigRequest', + '.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -1024,7 +1040,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteNotificationConfigRequest', + '.google.cloud.securitycenter.v1.DeleteNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -1047,9 +1063,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBigQueryExportRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetBigQueryExportRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1077,9 +1094,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBigQueryExportRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetBigQueryExportRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1123,9 +1141,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBigQueryExportRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetBigQueryExportRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1153,9 +1172,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBigQueryExportRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetBigQueryExportRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1173,9 +1193,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1203,9 +1224,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1249,9 +1271,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1279,9 +1302,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1299,9 +1323,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMuteConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetMuteConfigRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1329,9 +1354,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMuteConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetMuteConfigRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1375,9 +1401,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMuteConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetMuteConfigRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1405,9 +1432,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetMuteConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('GetMuteConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetMuteConfigRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1426,7 +1454,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.GetNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetNotificationConfigRequest', + '.google.cloud.securitycenter.v1.GetNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -1458,7 +1486,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.GetNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetNotificationConfigRequest', + '.google.cloud.securitycenter.v1.GetNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -1505,7 +1533,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.GetNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetNotificationConfigRequest', + '.google.cloud.securitycenter.v1.GetNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -1539,7 +1567,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.GetNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetNotificationConfigRequest', + '.google.cloud.securitycenter.v1.GetNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -1563,7 +1591,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -1595,7 +1623,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -1642,7 +1670,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -1676,7 +1704,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -1699,7 +1727,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1727,7 +1758,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1771,7 +1805,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1796,7 +1833,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1814,9 +1854,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1844,9 +1885,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1890,9 +1932,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1920,9 +1963,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1940,7 +1984,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.SetMuteRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMuteRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.SetMuteRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1968,7 +2015,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.SetMuteRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMuteRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.SetMuteRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2012,7 +2062,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.SetMuteRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMuteRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.SetMuteRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2037,7 +2090,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.SetMuteRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMuteRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.SetMuteRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2055,9 +2111,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2085,9 +2142,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2131,9 +2189,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2161,9 +2220,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2181,9 +2241,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2212,9 +2273,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2258,9 +2320,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2288,9 +2351,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2309,10 +2373,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateExternalSystemRequest() ); request.externalSystem ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExternalSystemRequest', [ - 'externalSystem', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateExternalSystemRequest', + ['externalSystem', 'name'] + ); request.externalSystem.name = defaultValue1; const expectedHeaderRequestParams = `external_system.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2342,10 +2406,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateExternalSystemRequest() ); request.externalSystem ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExternalSystemRequest', [ - 'externalSystem', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateExternalSystemRequest', + ['externalSystem', 'name'] + ); request.externalSystem.name = defaultValue1; const expectedHeaderRequestParams = `external_system.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2390,10 +2454,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateExternalSystemRequest() ); request.externalSystem ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExternalSystemRequest', [ - 'externalSystem', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateExternalSystemRequest', + ['externalSystem', 'name'] + ); request.externalSystem.name = defaultValue1; const expectedHeaderRequestParams = `external_system.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2422,10 +2486,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateExternalSystemRequest() ); request.externalSystem ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateExternalSystemRequest', [ - 'externalSystem', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateExternalSystemRequest', + ['externalSystem', 'name'] + ); request.externalSystem.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2444,10 +2508,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedHeaderRequestParams = `finding.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2476,10 +2540,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedHeaderRequestParams = `finding.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2524,10 +2588,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedHeaderRequestParams = `finding.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2556,10 +2620,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2578,10 +2642,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateMuteConfigRequest() ); request.muteConfig ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateMuteConfigRequest', [ - 'muteConfig', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateMuteConfigRequest', + ['muteConfig', 'name'] + ); request.muteConfig.name = defaultValue1; const expectedHeaderRequestParams = `mute_config.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2610,10 +2674,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateMuteConfigRequest() ); request.muteConfig ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateMuteConfigRequest', [ - 'muteConfig', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateMuteConfigRequest', + ['muteConfig', 'name'] + ); request.muteConfig.name = defaultValue1; const expectedHeaderRequestParams = `mute_config.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2658,10 +2722,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateMuteConfigRequest() ); request.muteConfig ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateMuteConfigRequest', [ - 'muteConfig', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateMuteConfigRequest', + ['muteConfig', 'name'] + ); request.muteConfig.name = defaultValue1; const expectedHeaderRequestParams = `mute_config.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2690,10 +2754,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateMuteConfigRequest() ); request.muteConfig ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateMuteConfigRequest', [ - 'muteConfig', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateMuteConfigRequest', + ['muteConfig', 'name'] + ); request.muteConfig.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2713,7 +2777,7 @@ describe('v1.SecurityCenterClient', () => { ); request.notificationConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateNotificationConfigRequest', + '.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest', ['notificationConfig', 'name'] ); request.notificationConfig.name = defaultValue1; @@ -2746,7 +2810,7 @@ describe('v1.SecurityCenterClient', () => { ); request.notificationConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateNotificationConfigRequest', + '.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest', ['notificationConfig', 'name'] ); request.notificationConfig.name = defaultValue1; @@ -2794,7 +2858,7 @@ describe('v1.SecurityCenterClient', () => { ); request.notificationConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateNotificationConfigRequest', + '.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest', ['notificationConfig', 'name'] ); request.notificationConfig.name = defaultValue1; @@ -2829,7 +2893,7 @@ describe('v1.SecurityCenterClient', () => { ); request.notificationConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateNotificationConfigRequest', + '.google.cloud.securitycenter.v1.UpdateNotificationConfigRequest', ['notificationConfig', 'name'] ); request.notificationConfig.name = defaultValue1; @@ -2854,7 +2918,7 @@ describe('v1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -2887,7 +2951,7 @@ describe('v1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -2935,7 +2999,7 @@ describe('v1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -2970,7 +3034,7 @@ describe('v1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -2994,10 +3058,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedHeaderRequestParams = `source.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3026,10 +3090,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedHeaderRequestParams = `source.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3074,10 +3138,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedHeaderRequestParams = `source.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3106,10 +3170,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3128,10 +3192,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedHeaderRequestParams = `security_marks.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3161,10 +3225,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedHeaderRequestParams = `security_marks.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3209,10 +3273,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedHeaderRequestParams = `security_marks.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3241,10 +3305,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3262,9 +3326,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBigQueryExportRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateBigQueryExportRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3293,9 +3358,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBigQueryExportRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateBigQueryExportRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3339,9 +3405,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBigQueryExportRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateBigQueryExportRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3369,9 +3436,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.CreateBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBigQueryExportRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.CreateBigQueryExportRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3389,9 +3457,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBigQueryExportRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3420,9 +3489,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBigQueryExportRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3466,9 +3536,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBigQueryExportRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3496,9 +3567,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBigQueryExportRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.DeleteBigQueryExportRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3517,10 +3589,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest() ); request.bigQueryExport ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBigQueryExportRequest', [ - 'bigQueryExport', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest', + ['bigQueryExport', 'name'] + ); request.bigQueryExport.name = defaultValue1; const expectedHeaderRequestParams = `big_query_export.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3550,10 +3622,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest() ); request.bigQueryExport ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBigQueryExportRequest', [ - 'bigQueryExport', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest', + ['bigQueryExport', 'name'] + ); request.bigQueryExport.name = defaultValue1; const expectedHeaderRequestParams = `big_query_export.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3598,10 +3670,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest() ); request.bigQueryExport ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBigQueryExportRequest', [ - 'bigQueryExport', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest', + ['bigQueryExport', 'name'] + ); request.bigQueryExport.name = defaultValue1; const expectedHeaderRequestParams = `big_query_export.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3630,10 +3702,10 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest() ); request.bigQueryExport ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBigQueryExportRequest', [ - 'bigQueryExport', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest', + ['bigQueryExport', 'name'] + ); request.bigQueryExport.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3651,9 +3723,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.BulkMuteFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('BulkMuteFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.BulkMuteFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3683,9 +3756,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.BulkMuteFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('BulkMuteFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.BulkMuteFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3736,9 +3810,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.BulkMuteFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('BulkMuteFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.BulkMuteFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3766,9 +3841,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.BulkMuteFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('BulkMuteFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.BulkMuteFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3841,9 +3917,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3873,9 +3950,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3926,9 +4004,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3956,9 +4035,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4031,9 +4111,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4069,9 +4150,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4123,9 +4205,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4153,9 +4236,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4213,9 +4297,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4264,9 +4349,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4313,9 +4399,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4357,9 +4444,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4395,9 +4483,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4449,9 +4538,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4479,9 +4569,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4539,9 +4630,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4588,9 +4680,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4637,9 +4730,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4679,9 +4773,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4717,9 +4812,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4773,9 +4869,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4803,9 +4900,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4865,9 +4963,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4918,9 +5017,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4967,9 +5067,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5011,9 +5112,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5049,9 +5151,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5105,9 +5208,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5135,9 +5239,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5197,9 +5302,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5250,9 +5356,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5299,9 +5406,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5341,9 +5449,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMuteConfigsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5379,9 +5488,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMuteConfigsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5433,9 +5543,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMuteConfigsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5463,9 +5574,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMuteConfigsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5523,9 +5635,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMuteConfigsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5572,9 +5685,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMuteConfigsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -5620,9 +5734,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListMuteConfigsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListMuteConfigsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListMuteConfigsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -5663,7 +5778,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5703,7 +5818,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5760,7 +5875,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5794,7 +5909,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5863,7 +5978,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5921,7 +6036,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -5975,7 +6090,7 @@ describe('v1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -6021,9 +6136,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6059,9 +6175,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6113,9 +6230,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6143,9 +6261,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6202,9 +6321,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6252,9 +6372,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6300,9 +6421,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6343,9 +6465,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListBigQueryExportsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBigQueryExportsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListBigQueryExportsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6382,9 +6505,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListBigQueryExportsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBigQueryExportsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListBigQueryExportsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6438,9 +6562,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListBigQueryExportsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBigQueryExportsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListBigQueryExportsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6468,9 +6593,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListBigQueryExportsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBigQueryExportsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListBigQueryExportsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6528,9 +6654,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListBigQueryExportsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBigQueryExportsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListBigQueryExportsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -6577,9 +6704,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListBigQueryExportsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBigQueryExportsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListBigQueryExportsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -6626,9 +6754,10 @@ describe('v1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1.ListBigQueryExportsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBigQueryExportsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1.ListBigQueryExportsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-securitycenter/test/gapic_security_center_v1beta1.ts b/packages/google-cloud-securitycenter/test/gapic_security_center_v1beta1.ts index 5b733e936ba..01bb5be2f6e 100644 --- a/packages/google-cloud-securitycenter/test/gapic_security_center_v1beta1.ts +++ b/packages/google-cloud-securitycenter/test/gapic_security_center_v1beta1.ts @@ -269,9 +269,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -299,9 +300,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -345,9 +347,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -375,9 +378,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -395,9 +399,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -425,9 +430,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -471,9 +477,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -501,9 +508,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -521,9 +529,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -551,9 +560,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -597,9 +607,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); @@ -627,9 +638,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -648,7 +660,7 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -680,7 +692,7 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -727,7 +739,7 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -761,7 +773,7 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -784,7 +796,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -812,7 +827,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -856,7 +874,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -881,7 +902,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -899,9 +923,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -929,9 +954,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -975,9 +1001,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1005,9 +1032,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1025,9 +1053,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1055,9 +1084,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1101,9 +1131,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1131,9 +1162,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1151,9 +1183,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1182,9 +1215,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1228,9 +1262,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1258,9 +1293,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1279,10 +1315,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedHeaderRequestParams = `finding.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1311,10 +1347,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedHeaderRequestParams = `finding.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1359,10 +1395,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedHeaderRequestParams = `finding.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1391,10 +1427,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1414,7 +1450,7 @@ describe('v1beta1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -1447,7 +1483,7 @@ describe('v1beta1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -1495,7 +1531,7 @@ describe('v1beta1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -1530,7 +1566,7 @@ describe('v1beta1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -1554,10 +1590,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedHeaderRequestParams = `source.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1586,10 +1622,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedHeaderRequestParams = `source.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1634,10 +1670,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedHeaderRequestParams = `source.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1666,10 +1702,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1688,10 +1724,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedHeaderRequestParams = `security_marks.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1721,10 +1757,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedHeaderRequestParams = `security_marks.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1769,10 +1805,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedHeaderRequestParams = `security_marks.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1801,10 +1837,10 @@ describe('v1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1822,9 +1858,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1854,9 +1891,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1907,9 +1945,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1937,9 +1976,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2012,9 +2052,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2050,9 +2091,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2106,9 +2148,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2136,9 +2179,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2198,9 +2242,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2251,9 +2296,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2300,9 +2346,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2344,9 +2391,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2382,9 +2430,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2438,9 +2487,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2468,9 +2518,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2530,9 +2581,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2581,9 +2633,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2630,9 +2683,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2672,9 +2726,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2710,9 +2765,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2766,9 +2822,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2796,9 +2853,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2858,9 +2916,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2911,9 +2970,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2960,9 +3020,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3004,9 +3065,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3042,9 +3104,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3098,9 +3161,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3128,9 +3192,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3188,9 +3253,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3239,9 +3305,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3288,9 +3355,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3330,9 +3398,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3368,9 +3437,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3422,9 +3492,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3452,9 +3523,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3512,9 +3584,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3563,9 +3636,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3612,9 +3686,10 @@ describe('v1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-securitycenter/test/gapic_security_center_v1p1beta1.ts b/packages/google-cloud-securitycenter/test/gapic_security_center_v1p1beta1.ts index 4ad7e2a5290..9209d73f46f 100644 --- a/packages/google-cloud-securitycenter/test/gapic_security_center_v1p1beta1.ts +++ b/packages/google-cloud-securitycenter/test/gapic_security_center_v1p1beta1.ts @@ -269,9 +269,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -299,9 +300,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -345,9 +347,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -375,9 +378,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateSourceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.CreateSourceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -395,9 +399,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -425,9 +430,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -471,9 +477,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -501,9 +508,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateFindingRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.CreateFindingRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -522,7 +530,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest', ['parent'] ); request.parent = defaultValue1; @@ -554,7 +562,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest', ['parent'] ); request.parent = defaultValue1; @@ -601,7 +609,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest', ['parent'] ); request.parent = defaultValue1; @@ -635,7 +643,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CreateNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest', ['parent'] ); request.parent = defaultValue1; @@ -659,7 +667,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -691,7 +699,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -738,7 +746,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -772,7 +780,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'DeleteNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.DeleteNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -795,9 +803,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -825,9 +834,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -871,9 +881,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); @@ -901,9 +912,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.GetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('GetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.GetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -922,7 +934,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -954,7 +966,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -1001,7 +1013,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -1035,7 +1047,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.GetNotificationConfigRequest', ['name'] ); request.name = defaultValue1; @@ -1059,7 +1071,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -1091,7 +1103,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -1138,7 +1150,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -1172,7 +1184,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'GetOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1p1beta1.GetOrganizationSettingsRequest', ['name'] ); request.name = defaultValue1; @@ -1195,7 +1207,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1223,7 +1238,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1267,7 +1285,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1292,7 +1313,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GetSourceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetSourceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GetSourceRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1310,9 +1334,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1340,9 +1365,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1386,9 +1412,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1416,9 +1443,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest() ); - const defaultValue1 = getTypeDefaultValue('SetFindingStateRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1436,9 +1464,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1466,9 +1495,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1512,9 +1542,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1542,9 +1573,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.SetIamPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetIamPolicyRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.SetIamPolicyRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1562,9 +1594,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1593,9 +1626,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1639,9 +1673,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedHeaderRequestParams = `resource=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1669,9 +1704,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.iam.v1.TestIamPermissionsRequest() ); - const defaultValue1 = getTypeDefaultValue('TestIamPermissionsRequest', [ - 'resource', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.iam.v1.TestIamPermissionsRequest', + ['resource'] + ); request.resource = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1690,10 +1726,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedHeaderRequestParams = `finding.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1722,10 +1758,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedHeaderRequestParams = `finding.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1770,10 +1806,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedHeaderRequestParams = `finding.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1802,10 +1838,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest() ); request.finding ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateFindingRequest', [ - 'finding', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateFindingRequest', + ['finding', 'name'] + ); request.finding.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1825,7 +1861,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { ); request.notificationConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest', ['notificationConfig', 'name'] ); request.notificationConfig.name = defaultValue1; @@ -1858,7 +1894,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { ); request.notificationConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest', ['notificationConfig', 'name'] ); request.notificationConfig.name = defaultValue1; @@ -1906,7 +1942,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { ); request.notificationConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest', ['notificationConfig', 'name'] ); request.notificationConfig.name = defaultValue1; @@ -1941,7 +1977,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { ); request.notificationConfig ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateNotificationConfigRequest', + '.google.cloud.securitycenter.v1p1beta1.UpdateNotificationConfigRequest', ['notificationConfig', 'name'] ); request.notificationConfig.name = defaultValue1; @@ -1966,7 +2002,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -1999,7 +2035,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -2047,7 +2083,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -2082,7 +2118,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { ); request.organizationSettings ??= {}; const defaultValue1 = getTypeDefaultValue( - 'UpdateOrganizationSettingsRequest', + '.google.cloud.securitycenter.v1p1beta1.UpdateOrganizationSettingsRequest', ['organizationSettings', 'name'] ); request.organizationSettings.name = defaultValue1; @@ -2106,10 +2142,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedHeaderRequestParams = `source.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2138,10 +2174,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedHeaderRequestParams = `source.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2186,10 +2222,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedHeaderRequestParams = `source.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2218,10 +2254,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest() ); request.source ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSourceRequest', [ - 'source', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateSourceRequest', + ['source', 'name'] + ); request.source.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2240,10 +2276,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedHeaderRequestParams = `security_marks.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2273,10 +2309,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedHeaderRequestParams = `security_marks.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2321,10 +2357,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedHeaderRequestParams = `security_marks.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2353,10 +2389,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest() ); request.securityMarks ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateSecurityMarksRequest', [ - 'securityMarks', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.UpdateSecurityMarksRequest', + ['securityMarks', 'name'] + ); request.securityMarks.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2374,9 +2410,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2406,9 +2443,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -2459,9 +2497,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2489,9 +2528,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest() ); - const defaultValue1 = getTypeDefaultValue('RunAssetDiscoveryRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2564,9 +2604,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2602,9 +2643,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2658,9 +2700,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2688,9 +2731,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2750,9 +2794,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2803,9 +2848,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2852,9 +2898,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2896,9 +2943,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2934,9 +2982,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2990,9 +3039,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3020,9 +3070,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3082,9 +3133,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3133,9 +3185,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3182,9 +3235,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('GroupFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.GroupFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3224,9 +3278,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3262,9 +3317,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3318,9 +3374,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3348,9 +3405,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3410,9 +3468,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3463,9 +3522,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3512,9 +3572,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListAssetsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListAssetsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3556,9 +3617,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3594,9 +3656,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3650,9 +3713,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3680,9 +3744,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3742,9 +3807,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3795,9 +3861,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -3844,9 +3911,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListFindingsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListFindingsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3887,7 +3955,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -3927,7 +3995,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -3984,7 +4052,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4018,7 +4086,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4087,7 +4155,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4145,7 +4213,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4199,7 +4267,7 @@ describe('v1p1beta1.SecurityCenterClient', () => { new protos.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListNotificationConfigsRequest', + '.google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsRequest', ['parent'] ); request.parent = defaultValue1; @@ -4245,9 +4313,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4283,9 +4352,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4339,9 +4409,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4369,9 +4440,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4429,9 +4501,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -4480,9 +4553,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -4529,9 +4603,10 @@ describe('v1p1beta1.SecurityCenterClient', () => { const request = generateSampleMessage( new protos.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListSourcesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.securitycenter.v1p1beta1.ListSourcesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected');