diff --git a/packages/google-cloud-filestore/test/gapic_cloud_filestore_manager_v1.ts b/packages/google-cloud-filestore/test/gapic_cloud_filestore_manager_v1.ts index 059f2ee6d66..8fbc5c44de8 100644 --- a/packages/google-cloud-filestore/test/gapic_cloud_filestore_manager_v1.ts +++ b/packages/google-cloud-filestore/test/gapic_cloud_filestore_manager_v1.ts @@ -278,7 +278,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.GetInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetInstanceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.GetInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -307,7 +310,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.GetInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetInstanceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.GetInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -352,7 +358,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.GetInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetInstanceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.GetInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -381,7 +390,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.GetInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetInstanceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.GetInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -400,7 +412,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.GetBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBackupRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.GetBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -429,7 +444,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.GetBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBackupRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.GetBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -474,7 +492,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.GetBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBackupRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.GetBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -500,7 +521,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.GetBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBackupRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.GetBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -519,9 +543,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.CreateInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateInstanceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.CreateInstanceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -552,9 +577,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.CreateInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateInstanceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.CreateInstanceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -606,9 +632,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.CreateInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateInstanceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.CreateInstanceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -637,9 +664,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.CreateInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateInstanceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.CreateInstanceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -716,10 +744,10 @@ describe('v1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1.UpdateInstanceRequest() ); request.instance ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateInstanceRequest', [ - 'instance', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.UpdateInstanceRequest', + ['instance', 'name'] + ); request.instance.name = defaultValue1; const expectedHeaderRequestParams = `instance.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -751,10 +779,10 @@ describe('v1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1.UpdateInstanceRequest() ); request.instance ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateInstanceRequest', [ - 'instance', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.UpdateInstanceRequest', + ['instance', 'name'] + ); request.instance.name = defaultValue1; const expectedHeaderRequestParams = `instance.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -807,10 +835,10 @@ describe('v1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1.UpdateInstanceRequest() ); request.instance ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateInstanceRequest', [ - 'instance', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.UpdateInstanceRequest', + ['instance', 'name'] + ); request.instance.name = defaultValue1; const expectedHeaderRequestParams = `instance.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -840,10 +868,10 @@ describe('v1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1.UpdateInstanceRequest() ); request.instance ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateInstanceRequest', [ - 'instance', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.UpdateInstanceRequest', + ['instance', 'name'] + ); request.instance.name = defaultValue1; const expectedHeaderRequestParams = `instance.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -919,9 +947,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.RestoreInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('RestoreInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.RestoreInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -952,9 +981,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.RestoreInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('RestoreInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.RestoreInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1006,9 +1036,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.RestoreInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('RestoreInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.RestoreInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1037,9 +1068,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.RestoreInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('RestoreInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.RestoreInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1115,9 +1147,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.DeleteInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.DeleteInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1148,9 +1181,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.DeleteInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.DeleteInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1202,9 +1236,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.DeleteInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.DeleteInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1233,9 +1268,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.DeleteInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.DeleteInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1311,9 +1347,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.CreateBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBackupRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.CreateBackupRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1343,9 +1380,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.CreateBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBackupRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.CreateBackupRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1397,9 +1435,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.CreateBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBackupRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.CreateBackupRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1428,9 +1467,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.CreateBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBackupRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.CreateBackupRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1503,9 +1543,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.DeleteBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBackupRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.DeleteBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1535,9 +1576,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.DeleteBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBackupRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.DeleteBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1589,9 +1631,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.DeleteBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBackupRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.DeleteBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1620,9 +1663,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.DeleteBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBackupRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.DeleteBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1696,10 +1740,10 @@ describe('v1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1.UpdateBackupRequest() ); request.backup ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBackupRequest', [ - 'backup', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.UpdateBackupRequest', + ['backup', 'name'] + ); request.backup.name = defaultValue1; const expectedHeaderRequestParams = `backup.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1730,10 +1774,10 @@ describe('v1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1.UpdateBackupRequest() ); request.backup ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBackupRequest', [ - 'backup', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.UpdateBackupRequest', + ['backup', 'name'] + ); request.backup.name = defaultValue1; const expectedHeaderRequestParams = `backup.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1786,10 +1830,10 @@ describe('v1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1.UpdateBackupRequest() ); request.backup ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBackupRequest', [ - 'backup', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.UpdateBackupRequest', + ['backup', 'name'] + ); request.backup.name = defaultValue1; const expectedHeaderRequestParams = `backup.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1819,10 +1863,10 @@ describe('v1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1.UpdateBackupRequest() ); request.backup ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBackupRequest', [ - 'backup', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.UpdateBackupRequest', + ['backup', 'name'] + ); request.backup.name = defaultValue1; const expectedHeaderRequestParams = `backup.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1895,9 +1939,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1928,9 +1973,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1977,9 +2023,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2008,9 +2055,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2062,9 +2110,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2111,9 +2160,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2154,9 +2204,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2196,9 +2247,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2229,9 +2281,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2278,9 +2331,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2309,9 +2363,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2363,9 +2418,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2414,9 +2470,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2457,9 +2514,10 @@ describe('v1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); diff --git a/packages/google-cloud-filestore/test/gapic_cloud_filestore_manager_v1beta1.ts b/packages/google-cloud-filestore/test/gapic_cloud_filestore_manager_v1beta1.ts index bb744394a95..322ee26627e 100644 --- a/packages/google-cloud-filestore/test/gapic_cloud_filestore_manager_v1beta1.ts +++ b/packages/google-cloud-filestore/test/gapic_cloud_filestore_manager_v1beta1.ts @@ -280,7 +280,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.GetInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetInstanceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.GetInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -309,7 +312,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.GetInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetInstanceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.GetInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -354,7 +360,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.GetInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetInstanceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.GetInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -383,7 +392,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.GetInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('GetInstanceRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.GetInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -402,7 +414,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.GetBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBackupRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.GetBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -431,7 +446,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.GetBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBackupRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.GetBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -476,7 +494,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.GetBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBackupRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.GetBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -502,7 +523,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.GetBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('GetBackupRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.GetBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -521,9 +545,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.CreateInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateInstanceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.CreateInstanceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -554,9 +579,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.CreateInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateInstanceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.CreateInstanceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -608,9 +634,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.CreateInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateInstanceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.CreateInstanceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -639,9 +666,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.CreateInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateInstanceRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.CreateInstanceRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -718,10 +746,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1beta1.UpdateInstanceRequest() ); request.instance ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateInstanceRequest', [ - 'instance', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.UpdateInstanceRequest', + ['instance', 'name'] + ); request.instance.name = defaultValue1; const expectedHeaderRequestParams = `instance.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -753,10 +781,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1beta1.UpdateInstanceRequest() ); request.instance ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateInstanceRequest', [ - 'instance', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.UpdateInstanceRequest', + ['instance', 'name'] + ); request.instance.name = defaultValue1; const expectedHeaderRequestParams = `instance.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -809,10 +837,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1beta1.UpdateInstanceRequest() ); request.instance ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateInstanceRequest', [ - 'instance', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.UpdateInstanceRequest', + ['instance', 'name'] + ); request.instance.name = defaultValue1; const expectedHeaderRequestParams = `instance.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -842,10 +870,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1beta1.UpdateInstanceRequest() ); request.instance ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateInstanceRequest', [ - 'instance', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.UpdateInstanceRequest', + ['instance', 'name'] + ); request.instance.name = defaultValue1; const expectedHeaderRequestParams = `instance.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -921,9 +949,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.RestoreInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('RestoreInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.RestoreInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -954,9 +983,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.RestoreInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('RestoreInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.RestoreInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1008,9 +1038,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.RestoreInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('RestoreInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.RestoreInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1039,9 +1070,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.RestoreInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('RestoreInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.RestoreInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1117,9 +1149,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.DeleteInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.DeleteInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1150,9 +1183,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.DeleteInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.DeleteInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1204,9 +1238,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.DeleteInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.DeleteInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1235,9 +1270,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.DeleteInstanceRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteInstanceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.DeleteInstanceRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1313,9 +1349,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.CreateBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBackupRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.CreateBackupRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1345,9 +1382,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.CreateBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBackupRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.CreateBackupRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1399,9 +1437,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.CreateBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBackupRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.CreateBackupRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1430,9 +1469,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.CreateBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateBackupRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.CreateBackupRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1505,9 +1545,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.DeleteBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBackupRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.DeleteBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1537,9 +1578,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.DeleteBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBackupRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.DeleteBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1591,9 +1633,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.DeleteBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBackupRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.DeleteBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1622,9 +1665,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.DeleteBackupRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteBackupRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.DeleteBackupRequest', + ['name'] + ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1698,10 +1742,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1beta1.UpdateBackupRequest() ); request.backup ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBackupRequest', [ - 'backup', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.UpdateBackupRequest', + ['backup', 'name'] + ); request.backup.name = defaultValue1; const expectedHeaderRequestParams = `backup.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1732,10 +1776,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1beta1.UpdateBackupRequest() ); request.backup ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBackupRequest', [ - 'backup', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.UpdateBackupRequest', + ['backup', 'name'] + ); request.backup.name = defaultValue1; const expectedHeaderRequestParams = `backup.name=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -1788,10 +1832,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1beta1.UpdateBackupRequest() ); request.backup ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBackupRequest', [ - 'backup', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.UpdateBackupRequest', + ['backup', 'name'] + ); request.backup.name = defaultValue1; const expectedHeaderRequestParams = `backup.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1821,10 +1865,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { new protos.google.cloud.filestore.v1beta1.UpdateBackupRequest() ); request.backup ??= {}; - const defaultValue1 = getTypeDefaultValue('UpdateBackupRequest', [ - 'backup', - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.UpdateBackupRequest', + ['backup', 'name'] + ); request.backup.name = defaultValue1; const expectedHeaderRequestParams = `backup.name=${defaultValue1}`; const expectedError = new Error('expected'); @@ -1897,9 +1941,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1936,9 +1981,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -1991,9 +2037,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2022,9 +2069,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2082,9 +2130,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2131,9 +2180,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2180,9 +2230,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListInstancesRequest() ); - const defaultValue1 = getTypeDefaultValue('ListInstancesRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListInstancesRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2222,9 +2273,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2261,9 +2313,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2316,9 +2369,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2347,9 +2401,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2407,9 +2462,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -2458,9 +2514,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ @@ -2507,9 +2564,10 @@ describe('v1beta1.CloudFilestoreManagerClient', () => { const request = generateSampleMessage( new protos.google.cloud.filestore.v1beta1.ListBackupsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListBackupsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.filestore.v1beta1.ListBackupsRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected');