diff --git a/apis/Google.Cloud.Asset.V1/Google.Cloud.Asset.V1/AssetServiceClient.cs b/apis/Google.Cloud.Asset.V1/Google.Cloud.Asset.V1/AssetServiceClient.cs index a6810ac155f1..75a9c2e1ba73 100644 --- a/apis/Google.Cloud.Asset.V1/Google.Cloud.Asset.V1/AssetServiceClient.cs +++ b/apis/Google.Cloud.Asset.V1/Google.Cloud.Asset.V1/AssetServiceClient.cs @@ -577,10 +577,10 @@ public AssetServiceClientImpl(AssetService.AssetServiceClient grpcClient, AssetS grpcClient.CreateOperationsClient(), effectiveSettings.ExportAssetsOperationsSettings); _callExportAssets = clientHelper.BuildApiCall( GrpcClient.ExportAssetsAsync, GrpcClient.ExportAssets, effectiveSettings.ExportAssetsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchGetAssetsHistory = clientHelper.BuildApiCall( GrpcClient.BatchGetAssetsHistoryAsync, GrpcClient.BatchGetAssetsHistory, effectiveSettings.BatchGetAssetsHistorySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callExportAssets); Modify_ExportAssetsApiCall(ref _callExportAssets); Modify_ApiCall(ref _callBatchGetAssetsHistory); diff --git a/apis/Google.Cloud.Asset.V1Beta1/Google.Cloud.Asset.V1Beta1/AssetServiceClient.cs b/apis/Google.Cloud.Asset.V1Beta1/Google.Cloud.Asset.V1Beta1/AssetServiceClient.cs index 1cf84002f4a4..91a186c84125 100644 --- a/apis/Google.Cloud.Asset.V1Beta1/Google.Cloud.Asset.V1Beta1/AssetServiceClient.cs +++ b/apis/Google.Cloud.Asset.V1Beta1/Google.Cloud.Asset.V1Beta1/AssetServiceClient.cs @@ -573,10 +573,10 @@ public AssetServiceClientImpl(AssetService.AssetServiceClient grpcClient, AssetS grpcClient.CreateOperationsClient(), effectiveSettings.ExportAssetsOperationsSettings); _callExportAssets = clientHelper.BuildApiCall( GrpcClient.ExportAssetsAsync, GrpcClient.ExportAssets, effectiveSettings.ExportAssetsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchGetAssetsHistory = clientHelper.BuildApiCall( GrpcClient.BatchGetAssetsHistoryAsync, GrpcClient.BatchGetAssetsHistory, effectiveSettings.BatchGetAssetsHistorySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callExportAssets); Modify_ExportAssetsApiCall(ref _callExportAssets); Modify_ApiCall(ref _callBatchGetAssetsHistory); diff --git a/apis/Google.Cloud.BigQuery.DataTransfer.V1/Google.Cloud.BigQuery.DataTransfer.V1/DataTransferServiceClient.cs b/apis/Google.Cloud.BigQuery.DataTransfer.V1/Google.Cloud.BigQuery.DataTransfer.V1/DataTransferServiceClient.cs index c12feaac4233..fb29c3a89541 100644 --- a/apis/Google.Cloud.BigQuery.DataTransfer.V1/Google.Cloud.BigQuery.DataTransfer.V1/DataTransferServiceClient.cs +++ b/apis/Google.Cloud.BigQuery.DataTransfer.V1/Google.Cloud.BigQuery.DataTransfer.V1/DataTransferServiceClient.cs @@ -3340,46 +3340,46 @@ public DataTransferServiceClientImpl(DataTransferService.DataTransferServiceClie gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callGetDataSource = clientHelper.BuildApiCall( GrpcClient.GetDataSourceAsync, GrpcClient.GetDataSource, effectiveSettings.GetDataSourceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListDataSources = clientHelper.BuildApiCall( GrpcClient.ListDataSourcesAsync, GrpcClient.ListDataSources, effectiveSettings.ListDataSourcesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCreateTransferConfig = clientHelper.BuildApiCall( GrpcClient.CreateTransferConfigAsync, GrpcClient.CreateTransferConfig, effectiveSettings.CreateTransferConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateTransferConfig = clientHelper.BuildApiCall( GrpcClient.UpdateTransferConfigAsync, GrpcClient.UpdateTransferConfig, effectiveSettings.UpdateTransferConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"transfer_config.name={request.TransferConfig?.Name}")); + .WithGoogleRequestParam("transfer_config.name", request => request.TransferConfig?.Name); _callDeleteTransferConfig = clientHelper.BuildApiCall( GrpcClient.DeleteTransferConfigAsync, GrpcClient.DeleteTransferConfig, effectiveSettings.DeleteTransferConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetTransferConfig = clientHelper.BuildApiCall( GrpcClient.GetTransferConfigAsync, GrpcClient.GetTransferConfig, effectiveSettings.GetTransferConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListTransferConfigs = clientHelper.BuildApiCall( GrpcClient.ListTransferConfigsAsync, GrpcClient.ListTransferConfigs, effectiveSettings.ListTransferConfigsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callScheduleTransferRuns = clientHelper.BuildApiCall( GrpcClient.ScheduleTransferRunsAsync, GrpcClient.ScheduleTransferRuns, effectiveSettings.ScheduleTransferRunsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetTransferRun = clientHelper.BuildApiCall( GrpcClient.GetTransferRunAsync, GrpcClient.GetTransferRun, effectiveSettings.GetTransferRunSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteTransferRun = clientHelper.BuildApiCall( GrpcClient.DeleteTransferRunAsync, GrpcClient.DeleteTransferRun, effectiveSettings.DeleteTransferRunSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListTransferRuns = clientHelper.BuildApiCall( GrpcClient.ListTransferRunsAsync, GrpcClient.ListTransferRuns, effectiveSettings.ListTransferRunsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListTransferLogs = clientHelper.BuildApiCall( GrpcClient.ListTransferLogsAsync, GrpcClient.ListTransferLogs, effectiveSettings.ListTransferLogsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCheckValidCreds = clientHelper.BuildApiCall( GrpcClient.CheckValidCredsAsync, GrpcClient.CheckValidCreds, effectiveSettings.CheckValidCredsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callStartManualTransferRuns = clientHelper.BuildApiCall( GrpcClient.StartManualTransferRunsAsync, GrpcClient.StartManualTransferRuns, effectiveSettings.StartManualTransferRunsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callGetDataSource); Modify_GetDataSourceApiCall(ref _callGetDataSource); Modify_ApiCall(ref _callListDataSources); diff --git a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminClient.cs b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminClient.cs index d516fbf5cdea..2b9174db71fa 100644 --- a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminClient.cs +++ b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableInstanceAdminClient.cs @@ -4342,58 +4342,58 @@ public BigtableInstanceAdminClientImpl(BigtableInstanceAdmin.BigtableInstanceAdm grpcClient.CreateOperationsClient(), effectiveSettings.UpdateAppProfileOperationsSettings); _callCreateInstance = clientHelper.BuildApiCall( GrpcClient.CreateInstanceAsync, GrpcClient.CreateInstance, effectiveSettings.CreateInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetInstance = clientHelper.BuildApiCall( GrpcClient.GetInstanceAsync, GrpcClient.GetInstance, effectiveSettings.GetInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListInstances = clientHelper.BuildApiCall( GrpcClient.ListInstancesAsync, GrpcClient.ListInstances, effectiveSettings.ListInstancesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callPartialUpdateInstance = clientHelper.BuildApiCall( GrpcClient.PartialUpdateInstanceAsync, GrpcClient.PartialUpdateInstance, effectiveSettings.PartialUpdateInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"instance.name={request.Instance?.Name}")); + .WithGoogleRequestParam("instance.name", request => request.Instance?.Name); _callDeleteInstance = clientHelper.BuildApiCall( GrpcClient.DeleteInstanceAsync, GrpcClient.DeleteInstance, effectiveSettings.DeleteInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateCluster = clientHelper.BuildApiCall( GrpcClient.CreateClusterAsync, GrpcClient.CreateCluster, effectiveSettings.CreateClusterSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetCluster = clientHelper.BuildApiCall( GrpcClient.GetClusterAsync, GrpcClient.GetCluster, effectiveSettings.GetClusterSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListClusters = clientHelper.BuildApiCall( GrpcClient.ListClustersAsync, GrpcClient.ListClusters, effectiveSettings.ListClustersSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateCluster = clientHelper.BuildApiCall( GrpcClient.UpdateClusterAsync, GrpcClient.UpdateCluster, effectiveSettings.UpdateClusterSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteCluster = clientHelper.BuildApiCall( GrpcClient.DeleteClusterAsync, GrpcClient.DeleteCluster, effectiveSettings.DeleteClusterSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateAppProfile = clientHelper.BuildApiCall( GrpcClient.CreateAppProfileAsync, GrpcClient.CreateAppProfile, effectiveSettings.CreateAppProfileSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetAppProfile = clientHelper.BuildApiCall( GrpcClient.GetAppProfileAsync, GrpcClient.GetAppProfile, effectiveSettings.GetAppProfileSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListAppProfiles = clientHelper.BuildApiCall( GrpcClient.ListAppProfilesAsync, GrpcClient.ListAppProfiles, effectiveSettings.ListAppProfilesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateAppProfile = clientHelper.BuildApiCall( GrpcClient.UpdateAppProfileAsync, GrpcClient.UpdateAppProfile, effectiveSettings.UpdateAppProfileSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"app_profile.name={request.AppProfile?.Name}")); + .WithGoogleRequestParam("app_profile.name", request => request.AppProfile?.Name); _callDeleteAppProfile = clientHelper.BuildApiCall( GrpcClient.DeleteAppProfileAsync, GrpcClient.DeleteAppProfile, effectiveSettings.DeleteAppProfileSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetIamPolicy = clientHelper.BuildApiCall( GrpcClient.GetIamPolicyAsync, GrpcClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callSetIamPolicy = clientHelper.BuildApiCall( GrpcClient.SetIamPolicyAsync, GrpcClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callTestIamPermissions = clientHelper.BuildApiCall( GrpcClient.TestIamPermissionsAsync, GrpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); Modify_ApiCall(ref _callCreateInstance); Modify_CreateInstanceApiCall(ref _callCreateInstance); Modify_ApiCall(ref _callGetInstance); diff --git a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.cs b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.cs index 01c8e31409e0..692c6606d3c2 100644 --- a/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.cs +++ b/apis/Google.Cloud.Bigtable.Admin.V2/Google.Cloud.Bigtable.Admin.V2/BigtableTableAdminClient.cs @@ -2186,28 +2186,28 @@ public BigtableTableAdminClientImpl(BigtableTableAdmin.BigtableTableAdminClient gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callCreateTable = clientHelper.BuildApiCall( GrpcClient.CreateTableAsync, GrpcClient.CreateTable, effectiveSettings.CreateTableSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListTables = clientHelper.BuildApiCall( GrpcClient.ListTablesAsync, GrpcClient.ListTables, effectiveSettings.ListTablesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetTable = clientHelper.BuildApiCall( GrpcClient.GetTableAsync, GrpcClient.GetTable, effectiveSettings.GetTableSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteTable = clientHelper.BuildApiCall( GrpcClient.DeleteTableAsync, GrpcClient.DeleteTable, effectiveSettings.DeleteTableSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callModifyColumnFamilies = clientHelper.BuildApiCall( GrpcClient.ModifyColumnFamiliesAsync, GrpcClient.ModifyColumnFamilies, effectiveSettings.ModifyColumnFamiliesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDropRowRange = clientHelper.BuildApiCall( GrpcClient.DropRowRangeAsync, GrpcClient.DropRowRange, effectiveSettings.DropRowRangeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGenerateConsistencyToken = clientHelper.BuildApiCall( GrpcClient.GenerateConsistencyTokenAsync, GrpcClient.GenerateConsistencyToken, effectiveSettings.GenerateConsistencyTokenSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCheckConsistency = clientHelper.BuildApiCall( GrpcClient.CheckConsistencyAsync, GrpcClient.CheckConsistency, effectiveSettings.CheckConsistencySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callCreateTable); Modify_CreateTableApiCall(ref _callCreateTable); Modify_ApiCall(ref _callListTables); diff --git a/apis/Google.Cloud.Bigtable.V2/Google.Cloud.Bigtable.V2/BigtableServiceApiClient.cs b/apis/Google.Cloud.Bigtable.V2/Google.Cloud.Bigtable.V2/BigtableServiceApiClient.cs index ba732744d732..d51c84e75f4b 100644 --- a/apis/Google.Cloud.Bigtable.V2/Google.Cloud.Bigtable.V2/BigtableServiceApiClient.cs +++ b/apis/Google.Cloud.Bigtable.V2/Google.Cloud.Bigtable.V2/BigtableServiceApiClient.cs @@ -1720,22 +1720,22 @@ public BigtableServiceApiClientImpl(Bigtable.BigtableClient grpcClient, Bigtable gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callReadRows = clientHelper.BuildApiCall( GrpcClient.ReadRows, effectiveSettings.ReadRowsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"table_name={request.TableName}")); + .WithGoogleRequestParam("table_name", request => request.TableName); _callSampleRowKeys = clientHelper.BuildApiCall( GrpcClient.SampleRowKeys, effectiveSettings.SampleRowKeysSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"table_name={request.TableName}")); + .WithGoogleRequestParam("table_name", request => request.TableName); _callMutateRow = clientHelper.BuildApiCall( GrpcClient.MutateRowAsync, GrpcClient.MutateRow, effectiveSettings.MutateRowSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"table_name={request.TableName}")); + .WithGoogleRequestParam("table_name", request => request.TableName); _callMutateRows = clientHelper.BuildApiCall( GrpcClient.MutateRows, effectiveSettings.MutateRowsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"table_name={request.TableName}")); + .WithGoogleRequestParam("table_name", request => request.TableName); _callCheckAndMutateRow = clientHelper.BuildApiCall( GrpcClient.CheckAndMutateRowAsync, GrpcClient.CheckAndMutateRow, effectiveSettings.CheckAndMutateRowSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"table_name={request.TableName}")); + .WithGoogleRequestParam("table_name", request => request.TableName); _callReadModifyWriteRow = clientHelper.BuildApiCall( GrpcClient.ReadModifyWriteRowAsync, GrpcClient.ReadModifyWriteRow, effectiveSettings.ReadModifyWriteRowSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"table_name={request.TableName}")); + .WithGoogleRequestParam("table_name", request => request.TableName); Modify_ApiCall(ref _callReadRows); Modify_ReadRowsApiCall(ref _callReadRows); Modify_ApiCall(ref _callSampleRowKeys); diff --git a/apis/Google.Cloud.Container.V1/Google.Cloud.Container.V1/ClusterManagerClient.cs b/apis/Google.Cloud.Container.V1/Google.Cloud.Container.V1/ClusterManagerClient.cs index 0e8c06b656eb..e131453a7258 100644 --- a/apis/Google.Cloud.Container.V1/Google.Cloud.Container.V1/ClusterManagerClient.cs +++ b/apis/Google.Cloud.Container.V1/Google.Cloud.Container.V1/ClusterManagerClient.cs @@ -5892,94 +5892,94 @@ public ClusterManagerClientImpl(ClusterManager.ClusterManagerClient grpcClient, gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListClusters = clientHelper.BuildApiCall( GrpcClient.ListClustersAsync, GrpcClient.ListClusters, effectiveSettings.ListClustersSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetCluster = clientHelper.BuildApiCall( GrpcClient.GetClusterAsync, GrpcClient.GetCluster, effectiveSettings.GetClusterSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateCluster = clientHelper.BuildApiCall( GrpcClient.CreateClusterAsync, GrpcClient.CreateCluster, effectiveSettings.CreateClusterSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateCluster = clientHelper.BuildApiCall( GrpcClient.UpdateClusterAsync, GrpcClient.UpdateCluster, effectiveSettings.UpdateClusterSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateNodePool = clientHelper.BuildApiCall( GrpcClient.UpdateNodePoolAsync, GrpcClient.UpdateNodePool, effectiveSettings.UpdateNodePoolSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetNodePoolAutoscaling = clientHelper.BuildApiCall( GrpcClient.SetNodePoolAutoscalingAsync, GrpcClient.SetNodePoolAutoscaling, effectiveSettings.SetNodePoolAutoscalingSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetLoggingService = clientHelper.BuildApiCall( GrpcClient.SetLoggingServiceAsync, GrpcClient.SetLoggingService, effectiveSettings.SetLoggingServiceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetMonitoringService = clientHelper.BuildApiCall( GrpcClient.SetMonitoringServiceAsync, GrpcClient.SetMonitoringService, effectiveSettings.SetMonitoringServiceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetAddonsConfig = clientHelper.BuildApiCall( GrpcClient.SetAddonsConfigAsync, GrpcClient.SetAddonsConfig, effectiveSettings.SetAddonsConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetLocations = clientHelper.BuildApiCall( GrpcClient.SetLocationsAsync, GrpcClient.SetLocations, effectiveSettings.SetLocationsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateMaster = clientHelper.BuildApiCall( GrpcClient.UpdateMasterAsync, GrpcClient.UpdateMaster, effectiveSettings.UpdateMasterSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetMasterAuth = clientHelper.BuildApiCall( GrpcClient.SetMasterAuthAsync, GrpcClient.SetMasterAuth, effectiveSettings.SetMasterAuthSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteCluster = clientHelper.BuildApiCall( GrpcClient.DeleteClusterAsync, GrpcClient.DeleteCluster, effectiveSettings.DeleteClusterSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListOperations = clientHelper.BuildApiCall( GrpcClient.ListOperationsAsync, GrpcClient.ListOperations, effectiveSettings.ListOperationsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetOperation = clientHelper.BuildApiCall( GrpcClient.GetOperationAsync, GrpcClient.GetOperation, effectiveSettings.GetOperationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCancelOperation = clientHelper.BuildApiCall( GrpcClient.CancelOperationAsync, GrpcClient.CancelOperation, effectiveSettings.CancelOperationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetServerConfig = clientHelper.BuildApiCall( GrpcClient.GetServerConfigAsync, GrpcClient.GetServerConfig, effectiveSettings.GetServerConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListNodePools = clientHelper.BuildApiCall( GrpcClient.ListNodePoolsAsync, GrpcClient.ListNodePools, effectiveSettings.ListNodePoolsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetNodePool = clientHelper.BuildApiCall( GrpcClient.GetNodePoolAsync, GrpcClient.GetNodePool, effectiveSettings.GetNodePoolSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateNodePool = clientHelper.BuildApiCall( GrpcClient.CreateNodePoolAsync, GrpcClient.CreateNodePool, effectiveSettings.CreateNodePoolSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteNodePool = clientHelper.BuildApiCall( GrpcClient.DeleteNodePoolAsync, GrpcClient.DeleteNodePool, effectiveSettings.DeleteNodePoolSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callRollbackNodePoolUpgrade = clientHelper.BuildApiCall( GrpcClient.RollbackNodePoolUpgradeAsync, GrpcClient.RollbackNodePoolUpgrade, effectiveSettings.RollbackNodePoolUpgradeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetNodePoolManagement = clientHelper.BuildApiCall( GrpcClient.SetNodePoolManagementAsync, GrpcClient.SetNodePoolManagement, effectiveSettings.SetNodePoolManagementSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetLabels = clientHelper.BuildApiCall( GrpcClient.SetLabelsAsync, GrpcClient.SetLabels, effectiveSettings.SetLabelsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetLegacyAbac = clientHelper.BuildApiCall( GrpcClient.SetLegacyAbacAsync, GrpcClient.SetLegacyAbac, effectiveSettings.SetLegacyAbacSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callStartIPRotation = clientHelper.BuildApiCall( GrpcClient.StartIPRotationAsync, GrpcClient.StartIPRotation, effectiveSettings.StartIPRotationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCompleteIPRotation = clientHelper.BuildApiCall( GrpcClient.CompleteIPRotationAsync, GrpcClient.CompleteIPRotation, effectiveSettings.CompleteIPRotationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetNodePoolSize = clientHelper.BuildApiCall( GrpcClient.SetNodePoolSizeAsync, GrpcClient.SetNodePoolSize, effectiveSettings.SetNodePoolSizeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetNetworkPolicy = clientHelper.BuildApiCall( GrpcClient.SetNetworkPolicyAsync, GrpcClient.SetNetworkPolicy, effectiveSettings.SetNetworkPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetMaintenancePolicy = clientHelper.BuildApiCall( GrpcClient.SetMaintenancePolicyAsync, GrpcClient.SetMaintenancePolicy, effectiveSettings.SetMaintenancePolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callListClusters); Modify_ListClustersApiCall(ref _callListClusters); Modify_ApiCall(ref _callGetCluster); diff --git a/apis/Google.Cloud.Dataproc.V1/Google.Cloud.Dataproc.V1/WorkflowTemplateServiceClient.cs b/apis/Google.Cloud.Dataproc.V1/Google.Cloud.Dataproc.V1/WorkflowTemplateServiceClient.cs index c9c1e68fc350..f961322a24f1 100644 --- a/apis/Google.Cloud.Dataproc.V1/Google.Cloud.Dataproc.V1/WorkflowTemplateServiceClient.cs +++ b/apis/Google.Cloud.Dataproc.V1/Google.Cloud.Dataproc.V1/WorkflowTemplateServiceClient.cs @@ -2541,25 +2541,25 @@ public WorkflowTemplateServiceClientImpl(WorkflowTemplateService.WorkflowTemplat grpcClient.CreateOperationsClient(), effectiveSettings.InstantiateInlineWorkflowTemplateOperationsSettings); _callCreateWorkflowTemplate = clientHelper.BuildApiCall( GrpcClient.CreateWorkflowTemplateAsync, GrpcClient.CreateWorkflowTemplate, effectiveSettings.CreateWorkflowTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetWorkflowTemplate = clientHelper.BuildApiCall( GrpcClient.GetWorkflowTemplateAsync, GrpcClient.GetWorkflowTemplate, effectiveSettings.GetWorkflowTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callInstantiateWorkflowTemplate = clientHelper.BuildApiCall( GrpcClient.InstantiateWorkflowTemplateAsync, GrpcClient.InstantiateWorkflowTemplate, effectiveSettings.InstantiateWorkflowTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callInstantiateInlineWorkflowTemplate = clientHelper.BuildApiCall( GrpcClient.InstantiateInlineWorkflowTemplateAsync, GrpcClient.InstantiateInlineWorkflowTemplate, effectiveSettings.InstantiateInlineWorkflowTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateWorkflowTemplate = clientHelper.BuildApiCall( GrpcClient.UpdateWorkflowTemplateAsync, GrpcClient.UpdateWorkflowTemplate, effectiveSettings.UpdateWorkflowTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"template.name={request.Template?.Name}")); + .WithGoogleRequestParam("template.name", request => request.Template?.Name); _callListWorkflowTemplates = clientHelper.BuildApiCall( GrpcClient.ListWorkflowTemplatesAsync, GrpcClient.ListWorkflowTemplates, effectiveSettings.ListWorkflowTemplatesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteWorkflowTemplate = clientHelper.BuildApiCall( GrpcClient.DeleteWorkflowTemplateAsync, GrpcClient.DeleteWorkflowTemplate, effectiveSettings.DeleteWorkflowTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callCreateWorkflowTemplate); Modify_CreateWorkflowTemplateApiCall(ref _callCreateWorkflowTemplate); Modify_ApiCall(ref _callGetWorkflowTemplate); diff --git a/apis/Google.Cloud.Datastore.V1/Google.Cloud.Datastore.V1/DatastoreClient.cs b/apis/Google.Cloud.Datastore.V1/Google.Cloud.Datastore.V1/DatastoreClient.cs index 9965b4a330f1..432792ee8333 100644 --- a/apis/Google.Cloud.Datastore.V1/Google.Cloud.Datastore.V1/DatastoreClient.cs +++ b/apis/Google.Cloud.Datastore.V1/Google.Cloud.Datastore.V1/DatastoreClient.cs @@ -1629,25 +1629,25 @@ public DatastoreClientImpl(Datastore.DatastoreClient grpcClient, DatastoreSettin gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callLookup = clientHelper.BuildApiCall( GrpcClient.LookupAsync, GrpcClient.Lookup, effectiveSettings.LookupSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_id={request.ProjectId}")); + .WithGoogleRequestParam("project_id", request => request.ProjectId); _callRunQuery = clientHelper.BuildApiCall( GrpcClient.RunQueryAsync, GrpcClient.RunQuery, effectiveSettings.RunQuerySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_id={request.ProjectId}")); + .WithGoogleRequestParam("project_id", request => request.ProjectId); _callBeginTransaction = clientHelper.BuildApiCall( GrpcClient.BeginTransactionAsync, GrpcClient.BeginTransaction, effectiveSettings.BeginTransactionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_id={request.ProjectId}")); + .WithGoogleRequestParam("project_id", request => request.ProjectId); _callCommit = clientHelper.BuildApiCall( GrpcClient.CommitAsync, GrpcClient.Commit, effectiveSettings.CommitSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_id={request.ProjectId}")); + .WithGoogleRequestParam("project_id", request => request.ProjectId); _callRollback = clientHelper.BuildApiCall( GrpcClient.RollbackAsync, GrpcClient.Rollback, effectiveSettings.RollbackSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_id={request.ProjectId}")); + .WithGoogleRequestParam("project_id", request => request.ProjectId); _callAllocateIds = clientHelper.BuildApiCall( GrpcClient.AllocateIdsAsync, GrpcClient.AllocateIds, effectiveSettings.AllocateIdsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_id={request.ProjectId}")); + .WithGoogleRequestParam("project_id", request => request.ProjectId); _callReserveIds = clientHelper.BuildApiCall( GrpcClient.ReserveIdsAsync, GrpcClient.ReserveIds, effectiveSettings.ReserveIdsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_id={request.ProjectId}")); + .WithGoogleRequestParam("project_id", request => request.ProjectId); Modify_ApiCall(ref _callLookup); Modify_LookupApiCall(ref _callLookup); Modify_ApiCall(ref _callRunQuery); diff --git a/apis/Google.Cloud.Debugger.V2/Google.Cloud.Debugger.V2/Controller2Client.cs b/apis/Google.Cloud.Debugger.V2/Google.Cloud.Debugger.V2/Controller2Client.cs index a3cc1f1d2272..3222900c6865 100644 --- a/apis/Google.Cloud.Debugger.V2/Google.Cloud.Debugger.V2/Controller2Client.cs +++ b/apis/Google.Cloud.Debugger.V2/Google.Cloud.Debugger.V2/Controller2Client.cs @@ -979,7 +979,7 @@ public Controller2ClientImpl(Controller2.Controller2Client grpcClient, Controlle GrpcClient.RegisterDebuggeeAsync, GrpcClient.RegisterDebuggee, effectiveSettings.RegisterDebuggeeSettings); _callListActiveBreakpoints = clientHelper.BuildApiCall( GrpcClient.ListActiveBreakpointsAsync, GrpcClient.ListActiveBreakpoints, effectiveSettings.ListActiveBreakpointsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"debuggee_id={request.DebuggeeId}")); + .WithGoogleRequestParam("debuggee_id", request => request.DebuggeeId); _callUpdateActiveBreakpoint = clientHelper.BuildApiCall( GrpcClient.UpdateActiveBreakpointAsync, GrpcClient.UpdateActiveBreakpoint, effectiveSettings.UpdateActiveBreakpointSettings); Modify_ApiCall(ref _callRegisterDebuggee); diff --git a/apis/Google.Cloud.Debugger.V2/Google.Cloud.Debugger.V2/Debugger2Client.cs b/apis/Google.Cloud.Debugger.V2/Google.Cloud.Debugger.V2/Debugger2Client.cs index 3874dd4784c6..836cacd8ac3f 100644 --- a/apis/Google.Cloud.Debugger.V2/Google.Cloud.Debugger.V2/Debugger2Client.cs +++ b/apis/Google.Cloud.Debugger.V2/Google.Cloud.Debugger.V2/Debugger2Client.cs @@ -1210,14 +1210,14 @@ public Debugger2ClientImpl(Debugger2.Debugger2Client grpcClient, Debugger2Settin gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callSetBreakpoint = clientHelper.BuildApiCall( GrpcClient.SetBreakpointAsync, GrpcClient.SetBreakpoint, effectiveSettings.SetBreakpointSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"debuggee_id={request.DebuggeeId}")); + .WithGoogleRequestParam("debuggee_id", request => request.DebuggeeId); _callGetBreakpoint = clientHelper.BuildApiCall( GrpcClient.GetBreakpointAsync, GrpcClient.GetBreakpoint, effectiveSettings.GetBreakpointSettings); _callDeleteBreakpoint = clientHelper.BuildApiCall( GrpcClient.DeleteBreakpointAsync, GrpcClient.DeleteBreakpoint, effectiveSettings.DeleteBreakpointSettings); _callListBreakpoints = clientHelper.BuildApiCall( GrpcClient.ListBreakpointsAsync, GrpcClient.ListBreakpoints, effectiveSettings.ListBreakpointsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"debuggee_id={request.DebuggeeId}")); + .WithGoogleRequestParam("debuggee_id", request => request.DebuggeeId); _callListDebuggees = clientHelper.BuildApiCall( GrpcClient.ListDebuggeesAsync, GrpcClient.ListDebuggees, effectiveSettings.ListDebuggeesSettings); Modify_ApiCall(ref _callSetBreakpoint); diff --git a/apis/Google.Cloud.DevTools.ContainerAnalysis.V1/Google.Cloud.DevTools.ContainerAnalysis.V1/ContainerAnalysisClient.cs b/apis/Google.Cloud.DevTools.ContainerAnalysis.V1/Google.Cloud.DevTools.ContainerAnalysis.V1/ContainerAnalysisClient.cs index aa07c4f58213..0d39c03daccc 100644 --- a/apis/Google.Cloud.DevTools.ContainerAnalysis.V1/Google.Cloud.DevTools.ContainerAnalysis.V1/ContainerAnalysisClient.cs +++ b/apis/Google.Cloud.DevTools.ContainerAnalysis.V1/Google.Cloud.DevTools.ContainerAnalysis.V1/ContainerAnalysisClient.cs @@ -1253,13 +1253,13 @@ public ContainerAnalysisClientImpl(ContainerAnalysis.ContainerAnalysisClient grp gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callSetIamPolicy = clientHelper.BuildApiCall( GrpcClient.SetIamPolicyAsync, GrpcClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callGetIamPolicy = clientHelper.BuildApiCall( GrpcClient.GetIamPolicyAsync, GrpcClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callTestIamPermissions = clientHelper.BuildApiCall( GrpcClient.TestIamPermissionsAsync, GrpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); Modify_ApiCall(ref _callSetIamPolicy); Modify_SetIamPolicyApiCall(ref _callSetIamPolicy); Modify_ApiCall(ref _callGetIamPolicy); diff --git a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/AgentsClient.cs b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/AgentsClient.cs index f8078f628d16..05d339816ef2 100644 --- a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/AgentsClient.cs +++ b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/AgentsClient.cs @@ -1967,28 +1967,28 @@ public AgentsClientImpl(Agents.AgentsClient grpcClient, AgentsSettings settings) grpcClient.CreateOperationsClient(), effectiveSettings.RestoreAgentOperationsSettings); _callSetAgent = clientHelper.BuildApiCall( GrpcClient.SetAgentAsync, GrpcClient.SetAgent, effectiveSettings.SetAgentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"agent.parent={request.Agent?.Parent}")); + .WithGoogleRequestParam("agent.parent", request => request.Agent?.Parent); _callDeleteAgent = clientHelper.BuildApiCall( GrpcClient.DeleteAgentAsync, GrpcClient.DeleteAgent, effectiveSettings.DeleteAgentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetAgent = clientHelper.BuildApiCall( GrpcClient.GetAgentAsync, GrpcClient.GetAgent, effectiveSettings.GetAgentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callSearchAgents = clientHelper.BuildApiCall( GrpcClient.SearchAgentsAsync, GrpcClient.SearchAgents, effectiveSettings.SearchAgentsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callTrainAgent = clientHelper.BuildApiCall( GrpcClient.TrainAgentAsync, GrpcClient.TrainAgent, effectiveSettings.TrainAgentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callExportAgent = clientHelper.BuildApiCall( GrpcClient.ExportAgentAsync, GrpcClient.ExportAgent, effectiveSettings.ExportAgentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callImportAgent = clientHelper.BuildApiCall( GrpcClient.ImportAgentAsync, GrpcClient.ImportAgent, effectiveSettings.ImportAgentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callRestoreAgent = clientHelper.BuildApiCall( GrpcClient.RestoreAgentAsync, GrpcClient.RestoreAgent, effectiveSettings.RestoreAgentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callSetAgent); Modify_SetAgentApiCall(ref _callSetAgent); Modify_ApiCall(ref _callDeleteAgent); diff --git a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/ContextsClient.cs b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/ContextsClient.cs index 7068f5f0845c..a2d463459d9c 100644 --- a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/ContextsClient.cs +++ b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/ContextsClient.cs @@ -1577,22 +1577,22 @@ public ContextsClientImpl(Contexts.ContextsClient grpcClient, ContextsSettings s gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListContexts = clientHelper.BuildApiCall( GrpcClient.ListContextsAsync, GrpcClient.ListContexts, effectiveSettings.ListContextsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetContext = clientHelper.BuildApiCall( GrpcClient.GetContextAsync, GrpcClient.GetContext, effectiveSettings.GetContextSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateContext = clientHelper.BuildApiCall( GrpcClient.CreateContextAsync, GrpcClient.CreateContext, effectiveSettings.CreateContextSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateContext = clientHelper.BuildApiCall( GrpcClient.UpdateContextAsync, GrpcClient.UpdateContext, effectiveSettings.UpdateContextSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"context.name={request.Context?.Name}")); + .WithGoogleRequestParam("context.name", request => request.Context?.Name); _callDeleteContext = clientHelper.BuildApiCall( GrpcClient.DeleteContextAsync, GrpcClient.DeleteContext, effectiveSettings.DeleteContextSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteAllContexts = clientHelper.BuildApiCall( GrpcClient.DeleteAllContextsAsync, GrpcClient.DeleteAllContexts, effectiveSettings.DeleteAllContextsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callListContexts); Modify_ListContextsApiCall(ref _callListContexts); Modify_ApiCall(ref _callGetContext); diff --git a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/EntityTypesClient.cs b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/EntityTypesClient.cs index 96e25750e691..c84fd32df9d5 100644 --- a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/EntityTypesClient.cs +++ b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/EntityTypesClient.cs @@ -4094,34 +4094,34 @@ public EntityTypesClientImpl(EntityTypes.EntityTypesClient grpcClient, EntityTyp grpcClient.CreateOperationsClient(), effectiveSettings.BatchDeleteEntitiesOperationsSettings); _callListEntityTypes = clientHelper.BuildApiCall( GrpcClient.ListEntityTypesAsync, GrpcClient.ListEntityTypes, effectiveSettings.ListEntityTypesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetEntityType = clientHelper.BuildApiCall( GrpcClient.GetEntityTypeAsync, GrpcClient.GetEntityType, effectiveSettings.GetEntityTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateEntityType = clientHelper.BuildApiCall( GrpcClient.CreateEntityTypeAsync, GrpcClient.CreateEntityType, effectiveSettings.CreateEntityTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateEntityType = clientHelper.BuildApiCall( GrpcClient.UpdateEntityTypeAsync, GrpcClient.UpdateEntityType, effectiveSettings.UpdateEntityTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"entity_type.name={request.EntityType?.Name}")); + .WithGoogleRequestParam("entity_type.name", request => request.EntityType?.Name); _callDeleteEntityType = clientHelper.BuildApiCall( GrpcClient.DeleteEntityTypeAsync, GrpcClient.DeleteEntityType, effectiveSettings.DeleteEntityTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callBatchUpdateEntityTypes = clientHelper.BuildApiCall( GrpcClient.BatchUpdateEntityTypesAsync, GrpcClient.BatchUpdateEntityTypes, effectiveSettings.BatchUpdateEntityTypesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchDeleteEntityTypes = clientHelper.BuildApiCall( GrpcClient.BatchDeleteEntityTypesAsync, GrpcClient.BatchDeleteEntityTypes, effectiveSettings.BatchDeleteEntityTypesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchCreateEntities = clientHelper.BuildApiCall( GrpcClient.BatchCreateEntitiesAsync, GrpcClient.BatchCreateEntities, effectiveSettings.BatchCreateEntitiesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchUpdateEntities = clientHelper.BuildApiCall( GrpcClient.BatchUpdateEntitiesAsync, GrpcClient.BatchUpdateEntities, effectiveSettings.BatchUpdateEntitiesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchDeleteEntities = clientHelper.BuildApiCall( GrpcClient.BatchDeleteEntitiesAsync, GrpcClient.BatchDeleteEntities, effectiveSettings.BatchDeleteEntitiesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callListEntityTypes); Modify_ListEntityTypesApiCall(ref _callListEntityTypes); Modify_ApiCall(ref _callGetEntityType); diff --git a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/IntentsClient.cs b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/IntentsClient.cs index 35d2876755af..0f0462f866df 100644 --- a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/IntentsClient.cs +++ b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/IntentsClient.cs @@ -2511,25 +2511,25 @@ public IntentsClientImpl(Intents.IntentsClient grpcClient, IntentsSettings setti grpcClient.CreateOperationsClient(), effectiveSettings.BatchDeleteIntentsOperationsSettings); _callListIntents = clientHelper.BuildApiCall( GrpcClient.ListIntentsAsync, GrpcClient.ListIntents, effectiveSettings.ListIntentsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetIntent = clientHelper.BuildApiCall( GrpcClient.GetIntentAsync, GrpcClient.GetIntent, effectiveSettings.GetIntentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateIntent = clientHelper.BuildApiCall( GrpcClient.CreateIntentAsync, GrpcClient.CreateIntent, effectiveSettings.CreateIntentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateIntent = clientHelper.BuildApiCall( GrpcClient.UpdateIntentAsync, GrpcClient.UpdateIntent, effectiveSettings.UpdateIntentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"intent.name={request.Intent?.Name}")); + .WithGoogleRequestParam("intent.name", request => request.Intent?.Name); _callDeleteIntent = clientHelper.BuildApiCall( GrpcClient.DeleteIntentAsync, GrpcClient.DeleteIntent, effectiveSettings.DeleteIntentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callBatchUpdateIntents = clientHelper.BuildApiCall( GrpcClient.BatchUpdateIntentsAsync, GrpcClient.BatchUpdateIntents, effectiveSettings.BatchUpdateIntentsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchDeleteIntents = clientHelper.BuildApiCall( GrpcClient.BatchDeleteIntentsAsync, GrpcClient.BatchDeleteIntents, effectiveSettings.BatchDeleteIntentsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callListIntents); Modify_ListIntentsApiCall(ref _callListIntents); Modify_ApiCall(ref _callGetIntent); diff --git a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/SessionEntityTypesClient.cs b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/SessionEntityTypesClient.cs index 07202bc9d260..b8b0e394647f 100644 --- a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/SessionEntityTypesClient.cs +++ b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/SessionEntityTypesClient.cs @@ -1399,19 +1399,19 @@ public SessionEntityTypesClientImpl(SessionEntityTypes.SessionEntityTypesClient gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListSessionEntityTypes = clientHelper.BuildApiCall( GrpcClient.ListSessionEntityTypesAsync, GrpcClient.ListSessionEntityTypes, effectiveSettings.ListSessionEntityTypesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetSessionEntityType = clientHelper.BuildApiCall( GrpcClient.GetSessionEntityTypeAsync, GrpcClient.GetSessionEntityType, effectiveSettings.GetSessionEntityTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateSessionEntityType = clientHelper.BuildApiCall( GrpcClient.CreateSessionEntityTypeAsync, GrpcClient.CreateSessionEntityType, effectiveSettings.CreateSessionEntityTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateSessionEntityType = clientHelper.BuildApiCall( GrpcClient.UpdateSessionEntityTypeAsync, GrpcClient.UpdateSessionEntityType, effectiveSettings.UpdateSessionEntityTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session_entity_type.name={request.SessionEntityType?.Name}")); + .WithGoogleRequestParam("session_entity_type.name", request => request.SessionEntityType?.Name); _callDeleteSessionEntityType = clientHelper.BuildApiCall( GrpcClient.DeleteSessionEntityTypeAsync, GrpcClient.DeleteSessionEntityType, effectiveSettings.DeleteSessionEntityTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callListSessionEntityTypes); Modify_ListSessionEntityTypesApiCall(ref _callListSessionEntityTypes); Modify_ApiCall(ref _callGetSessionEntityType); diff --git a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/SessionsClient.cs b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/SessionsClient.cs index ecf3a3c2a117..06ea13736577 100644 --- a/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/SessionsClient.cs +++ b/apis/Google.Cloud.Dialogflow.V2/Google.Cloud.Dialogflow.V2/SessionsClient.cs @@ -719,7 +719,7 @@ public SessionsClientImpl(Sessions.SessionsClient grpcClient, SessionsSettings s gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callDetectIntent = clientHelper.BuildApiCall( GrpcClient.DetectIntentAsync, GrpcClient.DetectIntent, effectiveSettings.DetectIntentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session={request.Session}")); + .WithGoogleRequestParam("session", request => request.Session); _callStreamingDetectIntent = clientHelper.BuildApiCall( GrpcClient.StreamingDetectIntent, effectiveSettings.StreamingDetectIntentSettings, effectiveSettings.StreamingDetectIntentStreamingSettings); Modify_ApiCall(ref _callDetectIntent); diff --git a/apis/Google.Cloud.Dlp.V2/Google.Cloud.Dlp.V2/DlpServiceClient.cs b/apis/Google.Cloud.Dlp.V2/Google.Cloud.Dlp.V2/DlpServiceClient.cs index 0ba6420c7302..8af597dde012 100644 --- a/apis/Google.Cloud.Dlp.V2/Google.Cloud.Dlp.V2/DlpServiceClient.cs +++ b/apis/Google.Cloud.Dlp.V2/Google.Cloud.Dlp.V2/DlpServiceClient.cs @@ -3088,93 +3088,93 @@ public DlpServiceClientImpl(DlpService.DlpServiceClient grpcClient, DlpServiceSe gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callInspectContent = clientHelper.BuildApiCall( GrpcClient.InspectContentAsync, GrpcClient.InspectContent, effectiveSettings.InspectContentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callRedactImage = clientHelper.BuildApiCall( GrpcClient.RedactImageAsync, GrpcClient.RedactImage, effectiveSettings.RedactImageSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeidentifyContent = clientHelper.BuildApiCall( GrpcClient.DeidentifyContentAsync, GrpcClient.DeidentifyContent, effectiveSettings.DeidentifyContentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callReidentifyContent = clientHelper.BuildApiCall( GrpcClient.ReidentifyContentAsync, GrpcClient.ReidentifyContent, effectiveSettings.ReidentifyContentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListInfoTypes = clientHelper.BuildApiCall( GrpcClient.ListInfoTypesAsync, GrpcClient.ListInfoTypes, effectiveSettings.ListInfoTypesSettings); _callCreateInspectTemplate = clientHelper.BuildApiCall( GrpcClient.CreateInspectTemplateAsync, GrpcClient.CreateInspectTemplate, effectiveSettings.CreateInspectTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateInspectTemplate = clientHelper.BuildApiCall( GrpcClient.UpdateInspectTemplateAsync, GrpcClient.UpdateInspectTemplate, effectiveSettings.UpdateInspectTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetInspectTemplate = clientHelper.BuildApiCall( GrpcClient.GetInspectTemplateAsync, GrpcClient.GetInspectTemplate, effectiveSettings.GetInspectTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListInspectTemplates = clientHelper.BuildApiCall( GrpcClient.ListInspectTemplatesAsync, GrpcClient.ListInspectTemplates, effectiveSettings.ListInspectTemplatesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteInspectTemplate = clientHelper.BuildApiCall( GrpcClient.DeleteInspectTemplateAsync, GrpcClient.DeleteInspectTemplate, effectiveSettings.DeleteInspectTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateDeidentifyTemplate = clientHelper.BuildApiCall( GrpcClient.CreateDeidentifyTemplateAsync, GrpcClient.CreateDeidentifyTemplate, effectiveSettings.CreateDeidentifyTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateDeidentifyTemplate = clientHelper.BuildApiCall( GrpcClient.UpdateDeidentifyTemplateAsync, GrpcClient.UpdateDeidentifyTemplate, effectiveSettings.UpdateDeidentifyTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetDeidentifyTemplate = clientHelper.BuildApiCall( GrpcClient.GetDeidentifyTemplateAsync, GrpcClient.GetDeidentifyTemplate, effectiveSettings.GetDeidentifyTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListDeidentifyTemplates = clientHelper.BuildApiCall( GrpcClient.ListDeidentifyTemplatesAsync, GrpcClient.ListDeidentifyTemplates, effectiveSettings.ListDeidentifyTemplatesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteDeidentifyTemplate = clientHelper.BuildApiCall( GrpcClient.DeleteDeidentifyTemplateAsync, GrpcClient.DeleteDeidentifyTemplate, effectiveSettings.DeleteDeidentifyTemplateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateDlpJob = clientHelper.BuildApiCall( GrpcClient.CreateDlpJobAsync, GrpcClient.CreateDlpJob, effectiveSettings.CreateDlpJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListDlpJobs = clientHelper.BuildApiCall( GrpcClient.ListDlpJobsAsync, GrpcClient.ListDlpJobs, effectiveSettings.ListDlpJobsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetDlpJob = clientHelper.BuildApiCall( GrpcClient.GetDlpJobAsync, GrpcClient.GetDlpJob, effectiveSettings.GetDlpJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteDlpJob = clientHelper.BuildApiCall( GrpcClient.DeleteDlpJobAsync, GrpcClient.DeleteDlpJob, effectiveSettings.DeleteDlpJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCancelDlpJob = clientHelper.BuildApiCall( GrpcClient.CancelDlpJobAsync, GrpcClient.CancelDlpJob, effectiveSettings.CancelDlpJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListJobTriggers = clientHelper.BuildApiCall( GrpcClient.ListJobTriggersAsync, GrpcClient.ListJobTriggers, effectiveSettings.ListJobTriggersSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetJobTrigger = clientHelper.BuildApiCall( GrpcClient.GetJobTriggerAsync, GrpcClient.GetJobTrigger, effectiveSettings.GetJobTriggerSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteJobTrigger = clientHelper.BuildApiCall( GrpcClient.DeleteJobTriggerAsync, GrpcClient.DeleteJobTrigger, effectiveSettings.DeleteJobTriggerSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateJobTrigger = clientHelper.BuildApiCall( GrpcClient.UpdateJobTriggerAsync, GrpcClient.UpdateJobTrigger, effectiveSettings.UpdateJobTriggerSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateJobTrigger = clientHelper.BuildApiCall( GrpcClient.CreateJobTriggerAsync, GrpcClient.CreateJobTrigger, effectiveSettings.CreateJobTriggerSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCreateStoredInfoType = clientHelper.BuildApiCall( GrpcClient.CreateStoredInfoTypeAsync, GrpcClient.CreateStoredInfoType, effectiveSettings.CreateStoredInfoTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateStoredInfoType = clientHelper.BuildApiCall( GrpcClient.UpdateStoredInfoTypeAsync, GrpcClient.UpdateStoredInfoType, effectiveSettings.UpdateStoredInfoTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetStoredInfoType = clientHelper.BuildApiCall( GrpcClient.GetStoredInfoTypeAsync, GrpcClient.GetStoredInfoType, effectiveSettings.GetStoredInfoTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListStoredInfoTypes = clientHelper.BuildApiCall( GrpcClient.ListStoredInfoTypesAsync, GrpcClient.ListStoredInfoTypes, effectiveSettings.ListStoredInfoTypesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteStoredInfoType = clientHelper.BuildApiCall( GrpcClient.DeleteStoredInfoTypeAsync, GrpcClient.DeleteStoredInfoType, effectiveSettings.DeleteStoredInfoTypeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callInspectContent); Modify_InspectContentApiCall(ref _callInspectContent); Modify_ApiCall(ref _callRedactImage); diff --git a/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ErrorGroupServiceClient.cs b/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ErrorGroupServiceClient.cs index c92ed0486f7e..895698dd29d2 100644 --- a/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ErrorGroupServiceClient.cs +++ b/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ErrorGroupServiceClient.cs @@ -741,10 +741,10 @@ public ErrorGroupServiceClientImpl(ErrorGroupService.ErrorGroupServiceClient grp gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callGetGroup = clientHelper.BuildApiCall( GrpcClient.GetGroupAsync, GrpcClient.GetGroup, effectiveSettings.GetGroupSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"group_name={request.GroupName}")); + .WithGoogleRequestParam("group_name", request => request.GroupName); _callUpdateGroup = clientHelper.BuildApiCall( GrpcClient.UpdateGroupAsync, GrpcClient.UpdateGroup, effectiveSettings.UpdateGroupSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"group.name={request.Group?.Name}")); + .WithGoogleRequestParam("group.name", request => request.Group?.Name); Modify_ApiCall(ref _callGetGroup); Modify_GetGroupApiCall(ref _callGetGroup); Modify_ApiCall(ref _callUpdateGroup); diff --git a/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ErrorStatsServiceClient.cs b/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ErrorStatsServiceClient.cs index a57696c49516..0444997576eb 100644 --- a/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ErrorStatsServiceClient.cs +++ b/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ErrorStatsServiceClient.cs @@ -1074,13 +1074,13 @@ public ErrorStatsServiceClientImpl(ErrorStatsService.ErrorStatsServiceClient grp gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListGroupStats = clientHelper.BuildApiCall( GrpcClient.ListGroupStatsAsync, GrpcClient.ListGroupStats, effectiveSettings.ListGroupStatsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_name={request.ProjectName}")); + .WithGoogleRequestParam("project_name", request => request.ProjectName); _callListEvents = clientHelper.BuildApiCall( GrpcClient.ListEventsAsync, GrpcClient.ListEvents, effectiveSettings.ListEventsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_name={request.ProjectName}")); + .WithGoogleRequestParam("project_name", request => request.ProjectName); _callDeleteEvents = clientHelper.BuildApiCall( GrpcClient.DeleteEventsAsync, GrpcClient.DeleteEvents, effectiveSettings.DeleteEventsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_name={request.ProjectName}")); + .WithGoogleRequestParam("project_name", request => request.ProjectName); Modify_ApiCall(ref _callListGroupStats); Modify_ListGroupStatsApiCall(ref _callListGroupStats); Modify_ApiCall(ref _callListEvents); diff --git a/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ReportErrorsServiceClient.cs b/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ReportErrorsServiceClient.cs index 77a5ef9ab95d..0f34cf088363 100644 --- a/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ReportErrorsServiceClient.cs +++ b/apis/Google.Cloud.ErrorReporting.V1Beta1/Google.Cloud.ErrorReporting.V1Beta1/ReportErrorsServiceClient.cs @@ -671,7 +671,7 @@ public ReportErrorsServiceClientImpl(ReportErrorsService.ReportErrorsServiceClie gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callReportErrorEvent = clientHelper.BuildApiCall( GrpcClient.ReportErrorEventAsync, GrpcClient.ReportErrorEvent, effectiveSettings.ReportErrorEventSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_name={request.ProjectName}")); + .WithGoogleRequestParam("project_name", request => request.ProjectName); Modify_ApiCall(ref _callReportErrorEvent); Modify_ReportErrorEventApiCall(ref _callReportErrorEvent); OnConstruction(grpcClient, effectiveSettings, clientHelper); diff --git a/apis/Google.Cloud.Firestore.Admin.V1/Google.Cloud.Firestore.Admin.V1/FirestoreAdminClient.cs b/apis/Google.Cloud.Firestore.Admin.V1/Google.Cloud.Firestore.Admin.V1/FirestoreAdminClient.cs index a7a490a4c9d8..7438b9f9a409 100644 --- a/apis/Google.Cloud.Firestore.Admin.V1/Google.Cloud.Firestore.Admin.V1/FirestoreAdminClient.cs +++ b/apis/Google.Cloud.Firestore.Admin.V1/Google.Cloud.Firestore.Admin.V1/FirestoreAdminClient.cs @@ -2420,31 +2420,31 @@ public FirestoreAdminClientImpl(FirestoreAdmin.FirestoreAdminClient grpcClient, gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callCreateIndex = clientHelper.BuildApiCall( GrpcClient.CreateIndexAsync, GrpcClient.CreateIndex, effectiveSettings.CreateIndexSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListIndexes = clientHelper.BuildApiCall( GrpcClient.ListIndexesAsync, GrpcClient.ListIndexes, effectiveSettings.ListIndexesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetIndex = clientHelper.BuildApiCall( GrpcClient.GetIndexAsync, GrpcClient.GetIndex, effectiveSettings.GetIndexSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteIndex = clientHelper.BuildApiCall( GrpcClient.DeleteIndexAsync, GrpcClient.DeleteIndex, effectiveSettings.DeleteIndexSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callImportDocuments = clientHelper.BuildApiCall( GrpcClient.ImportDocumentsAsync, GrpcClient.ImportDocuments, effectiveSettings.ImportDocumentsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callExportDocuments = clientHelper.BuildApiCall( GrpcClient.ExportDocumentsAsync, GrpcClient.ExportDocuments, effectiveSettings.ExportDocumentsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetField = clientHelper.BuildApiCall( GrpcClient.GetFieldAsync, GrpcClient.GetField, effectiveSettings.GetFieldSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListFields = clientHelper.BuildApiCall( GrpcClient.ListFieldsAsync, GrpcClient.ListFields, effectiveSettings.ListFieldsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateField = clientHelper.BuildApiCall( GrpcClient.UpdateFieldAsync, GrpcClient.UpdateField, effectiveSettings.UpdateFieldSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"field.name={request.Field?.Name}")); + .WithGoogleRequestParam("field.name", request => request.Field?.Name); Modify_ApiCall(ref _callCreateIndex); Modify_CreateIndexApiCall(ref _callCreateIndex); Modify_ApiCall(ref _callListIndexes); diff --git a/apis/Google.Cloud.Firestore.V1/Google.Cloud.Firestore.V1/FirestoreClient.cs b/apis/Google.Cloud.Firestore.V1/Google.Cloud.Firestore.V1/FirestoreClient.cs index 93807b730fd5..e6f147bfd5e6 100644 --- a/apis/Google.Cloud.Firestore.V1/Google.Cloud.Firestore.V1/FirestoreClient.cs +++ b/apis/Google.Cloud.Firestore.V1/Google.Cloud.Firestore.V1/FirestoreClient.cs @@ -1809,39 +1809,39 @@ public FirestoreClientImpl(Firestore.FirestoreClient grpcClient, FirestoreSettin gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callGetDocument = clientHelper.BuildApiCall( GrpcClient.GetDocumentAsync, GrpcClient.GetDocument, effectiveSettings.GetDocumentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListDocuments = clientHelper.BuildApiCall( GrpcClient.ListDocumentsAsync, GrpcClient.ListDocuments, effectiveSettings.ListDocumentsSettings); _callCreateDocument = clientHelper.BuildApiCall( GrpcClient.CreateDocumentAsync, GrpcClient.CreateDocument, effectiveSettings.CreateDocumentSettings); _callUpdateDocument = clientHelper.BuildApiCall( GrpcClient.UpdateDocumentAsync, GrpcClient.UpdateDocument, effectiveSettings.UpdateDocumentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"document.name={request.Document?.Name}")); + .WithGoogleRequestParam("document.name", request => request.Document?.Name); _callDeleteDocument = clientHelper.BuildApiCall( GrpcClient.DeleteDocumentAsync, GrpcClient.DeleteDocument, effectiveSettings.DeleteDocumentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callBatchGetDocuments = clientHelper.BuildApiCall( GrpcClient.BatchGetDocuments, effectiveSettings.BatchGetDocumentsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"database={request.Database}")); + .WithGoogleRequestParam("database", request => request.Database); _callBeginTransaction = clientHelper.BuildApiCall( GrpcClient.BeginTransactionAsync, GrpcClient.BeginTransaction, effectiveSettings.BeginTransactionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"database={request.Database}")); + .WithGoogleRequestParam("database", request => request.Database); _callCommit = clientHelper.BuildApiCall( GrpcClient.CommitAsync, GrpcClient.Commit, effectiveSettings.CommitSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"database={request.Database}")); + .WithGoogleRequestParam("database", request => request.Database); _callRollback = clientHelper.BuildApiCall( GrpcClient.RollbackAsync, GrpcClient.Rollback, effectiveSettings.RollbackSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"database={request.Database}")); + .WithGoogleRequestParam("database", request => request.Database); _callRunQuery = clientHelper.BuildApiCall( GrpcClient.RunQuery, effectiveSettings.RunQuerySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callWrite = clientHelper.BuildApiCall( GrpcClient.Write, effectiveSettings.WriteSettings, effectiveSettings.WriteStreamingSettings); _callListen = clientHelper.BuildApiCall( GrpcClient.Listen, effectiveSettings.ListenSettings, effectiveSettings.ListenStreamingSettings); _callListCollectionIds = clientHelper.BuildApiCall( GrpcClient.ListCollectionIdsAsync, GrpcClient.ListCollectionIds, effectiveSettings.ListCollectionIdsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callGetDocument); Modify_GetDocumentApiCall(ref _callGetDocument); Modify_ApiCall(ref _callListDocuments); diff --git a/apis/Google.Cloud.Irm.V1Alpha2/Google.Cloud.Irm.V1Alpha2/IncidentServiceClient.cs b/apis/Google.Cloud.Irm.V1Alpha2/Google.Cloud.Irm.V1Alpha2/IncidentServiceClient.cs index d547e886c4af..ada9271f0364 100644 --- a/apis/Google.Cloud.Irm.V1Alpha2/Google.Cloud.Irm.V1Alpha2/IncidentServiceClient.cs +++ b/apis/Google.Cloud.Irm.V1Alpha2/Google.Cloud.Irm.V1Alpha2/IncidentServiceClient.cs @@ -7431,99 +7431,99 @@ public IncidentServiceClientImpl(IncidentService.IncidentServiceClient grpcClien gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callCreateIncident = clientHelper.BuildApiCall( GrpcClient.CreateIncidentAsync, GrpcClient.CreateIncident, effectiveSettings.CreateIncidentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetIncident = clientHelper.BuildApiCall( GrpcClient.GetIncidentAsync, GrpcClient.GetIncident, effectiveSettings.GetIncidentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSearchIncidents = clientHelper.BuildApiCall( GrpcClient.SearchIncidentsAsync, GrpcClient.SearchIncidents, effectiveSettings.SearchIncidentsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateIncident = clientHelper.BuildApiCall( GrpcClient.UpdateIncidentAsync, GrpcClient.UpdateIncident, effectiveSettings.UpdateIncidentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"incident.name={request.Incident?.Name}")); + .WithGoogleRequestParam("incident.name", request => request.Incident?.Name); _callSearchSimilarIncidents = clientHelper.BuildApiCall( GrpcClient.SearchSimilarIncidentsAsync, GrpcClient.SearchSimilarIncidents, effectiveSettings.SearchSimilarIncidentsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateAnnotation = clientHelper.BuildApiCall( GrpcClient.CreateAnnotationAsync, GrpcClient.CreateAnnotation, effectiveSettings.CreateAnnotationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListAnnotations = clientHelper.BuildApiCall( GrpcClient.ListAnnotationsAsync, GrpcClient.ListAnnotations, effectiveSettings.ListAnnotationsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCreateTag = clientHelper.BuildApiCall( GrpcClient.CreateTagAsync, GrpcClient.CreateTag, effectiveSettings.CreateTagSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteTag = clientHelper.BuildApiCall( GrpcClient.DeleteTagAsync, GrpcClient.DeleteTag, effectiveSettings.DeleteTagSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListTags = clientHelper.BuildApiCall( GrpcClient.ListTagsAsync, GrpcClient.ListTags, effectiveSettings.ListTagsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCreateSignal = clientHelper.BuildApiCall( GrpcClient.CreateSignalAsync, GrpcClient.CreateSignal, effectiveSettings.CreateSignalSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callSearchSignals = clientHelper.BuildApiCall( GrpcClient.SearchSignalsAsync, GrpcClient.SearchSignals, effectiveSettings.SearchSignalsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetSignal = clientHelper.BuildApiCall( GrpcClient.GetSignalAsync, GrpcClient.GetSignal, effectiveSettings.GetSignalSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callLookupSignal = clientHelper.BuildApiCall( GrpcClient.LookupSignalAsync, GrpcClient.LookupSignal, effectiveSettings.LookupSignalSettings); _callUpdateSignal = clientHelper.BuildApiCall( GrpcClient.UpdateSignalAsync, GrpcClient.UpdateSignal, effectiveSettings.UpdateSignalSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"signal.name={request.Signal?.Name}")); + .WithGoogleRequestParam("signal.name", request => request.Signal?.Name); _callEscalateIncident = clientHelper.BuildApiCall( GrpcClient.EscalateIncidentAsync, GrpcClient.EscalateIncident, effectiveSettings.EscalateIncidentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"incident.name={request.Incident?.Name}")); + .WithGoogleRequestParam("incident.name", request => request.Incident?.Name); _callCreateArtifact = clientHelper.BuildApiCall( GrpcClient.CreateArtifactAsync, GrpcClient.CreateArtifact, effectiveSettings.CreateArtifactSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListArtifacts = clientHelper.BuildApiCall( GrpcClient.ListArtifactsAsync, GrpcClient.ListArtifacts, effectiveSettings.ListArtifactsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateArtifact = clientHelper.BuildApiCall( GrpcClient.UpdateArtifactAsync, GrpcClient.UpdateArtifact, effectiveSettings.UpdateArtifactSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"artifact.name={request.Artifact?.Name}")); + .WithGoogleRequestParam("artifact.name", request => request.Artifact?.Name); _callDeleteArtifact = clientHelper.BuildApiCall( GrpcClient.DeleteArtifactAsync, GrpcClient.DeleteArtifact, effectiveSettings.DeleteArtifactSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSendShiftHandoff = clientHelper.BuildApiCall( GrpcClient.SendShiftHandoffAsync, GrpcClient.SendShiftHandoff, effectiveSettings.SendShiftHandoffSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCreateSubscription = clientHelper.BuildApiCall( GrpcClient.CreateSubscriptionAsync, GrpcClient.CreateSubscription, effectiveSettings.CreateSubscriptionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateSubscription = clientHelper.BuildApiCall( GrpcClient.UpdateSubscriptionAsync, GrpcClient.UpdateSubscription, effectiveSettings.UpdateSubscriptionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"subscription.name={request.Subscription?.Name}")); + .WithGoogleRequestParam("subscription.name", request => request.Subscription?.Name); _callListSubscriptions = clientHelper.BuildApiCall( GrpcClient.ListSubscriptionsAsync, GrpcClient.ListSubscriptions, effectiveSettings.ListSubscriptionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteSubscription = clientHelper.BuildApiCall( GrpcClient.DeleteSubscriptionAsync, GrpcClient.DeleteSubscription, effectiveSettings.DeleteSubscriptionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateIncidentRoleAssignment = clientHelper.BuildApiCall( GrpcClient.CreateIncidentRoleAssignmentAsync, GrpcClient.CreateIncidentRoleAssignment, effectiveSettings.CreateIncidentRoleAssignmentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteIncidentRoleAssignment = clientHelper.BuildApiCall( GrpcClient.DeleteIncidentRoleAssignmentAsync, GrpcClient.DeleteIncidentRoleAssignment, effectiveSettings.DeleteIncidentRoleAssignmentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListIncidentRoleAssignments = clientHelper.BuildApiCall( GrpcClient.ListIncidentRoleAssignmentsAsync, GrpcClient.ListIncidentRoleAssignments, effectiveSettings.ListIncidentRoleAssignmentsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callRequestIncidentRoleHandover = clientHelper.BuildApiCall( GrpcClient.RequestIncidentRoleHandoverAsync, GrpcClient.RequestIncidentRoleHandover, effectiveSettings.RequestIncidentRoleHandoverSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callConfirmIncidentRoleHandover = clientHelper.BuildApiCall( GrpcClient.ConfirmIncidentRoleHandoverAsync, GrpcClient.ConfirmIncidentRoleHandover, effectiveSettings.ConfirmIncidentRoleHandoverSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callForceIncidentRoleHandover = clientHelper.BuildApiCall( GrpcClient.ForceIncidentRoleHandoverAsync, GrpcClient.ForceIncidentRoleHandover, effectiveSettings.ForceIncidentRoleHandoverSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCancelIncidentRoleHandover = clientHelper.BuildApiCall( GrpcClient.CancelIncidentRoleHandoverAsync, GrpcClient.CancelIncidentRoleHandover, effectiveSettings.CancelIncidentRoleHandoverSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callCreateIncident); Modify_CreateIncidentApiCall(ref _callCreateIncident); Modify_ApiCall(ref _callGetIncident); diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/KeyManagementServiceClient.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/KeyManagementServiceClient.cs index 99aac870a080..3fd742756289 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/KeyManagementServiceClient.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/KeyManagementServiceClient.cs @@ -6623,82 +6623,82 @@ public KeyManagementServiceClientImpl(KeyManagementService.KeyManagementServiceC iam::IAMPolicy.IAMPolicyClient grpcIAMPolicyClient = grpcClient.CreateIAMPolicyClient(); _callListKeyRings = clientHelper.BuildApiCall( GrpcClient.ListKeyRingsAsync, GrpcClient.ListKeyRings, effectiveSettings.ListKeyRingsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListImportJobs = clientHelper.BuildApiCall( GrpcClient.ListImportJobsAsync, GrpcClient.ListImportJobs, effectiveSettings.ListImportJobsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListCryptoKeys = clientHelper.BuildApiCall( GrpcClient.ListCryptoKeysAsync, GrpcClient.ListCryptoKeys, effectiveSettings.ListCryptoKeysSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListCryptoKeyVersions = clientHelper.BuildApiCall( GrpcClient.ListCryptoKeyVersionsAsync, GrpcClient.ListCryptoKeyVersions, effectiveSettings.ListCryptoKeyVersionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetKeyRing = clientHelper.BuildApiCall( GrpcClient.GetKeyRingAsync, GrpcClient.GetKeyRing, effectiveSettings.GetKeyRingSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetImportJob = clientHelper.BuildApiCall( GrpcClient.GetImportJobAsync, GrpcClient.GetImportJob, effectiveSettings.GetImportJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetCryptoKey = clientHelper.BuildApiCall( GrpcClient.GetCryptoKeyAsync, GrpcClient.GetCryptoKey, effectiveSettings.GetCryptoKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetCryptoKeyVersion = clientHelper.BuildApiCall( GrpcClient.GetCryptoKeyVersionAsync, GrpcClient.GetCryptoKeyVersion, effectiveSettings.GetCryptoKeyVersionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateKeyRing = clientHelper.BuildApiCall( GrpcClient.CreateKeyRingAsync, GrpcClient.CreateKeyRing, effectiveSettings.CreateKeyRingSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCreateImportJob = clientHelper.BuildApiCall( GrpcClient.CreateImportJobAsync, GrpcClient.CreateImportJob, effectiveSettings.CreateImportJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCreateCryptoKey = clientHelper.BuildApiCall( GrpcClient.CreateCryptoKeyAsync, GrpcClient.CreateCryptoKey, effectiveSettings.CreateCryptoKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCreateCryptoKeyVersion = clientHelper.BuildApiCall( GrpcClient.CreateCryptoKeyVersionAsync, GrpcClient.CreateCryptoKeyVersion, effectiveSettings.CreateCryptoKeyVersionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callImportCryptoKeyVersion = clientHelper.BuildApiCall( GrpcClient.ImportCryptoKeyVersionAsync, GrpcClient.ImportCryptoKeyVersion, effectiveSettings.ImportCryptoKeyVersionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateCryptoKey = clientHelper.BuildApiCall( GrpcClient.UpdateCryptoKeyAsync, GrpcClient.UpdateCryptoKey, effectiveSettings.UpdateCryptoKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"crypto_key.name={request.CryptoKey?.Name}")); + .WithGoogleRequestParam("crypto_key.name", request => request.CryptoKey?.Name); _callUpdateCryptoKeyVersion = clientHelper.BuildApiCall( GrpcClient.UpdateCryptoKeyVersionAsync, GrpcClient.UpdateCryptoKeyVersion, effectiveSettings.UpdateCryptoKeyVersionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"crypto_key_version.name={request.CryptoKeyVersion?.Name}")); + .WithGoogleRequestParam("crypto_key_version.name", request => request.CryptoKeyVersion?.Name); _callEncrypt = clientHelper.BuildApiCall( GrpcClient.EncryptAsync, GrpcClient.Encrypt, effectiveSettings.EncryptSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDecrypt = clientHelper.BuildApiCall( GrpcClient.DecryptAsync, GrpcClient.Decrypt, effectiveSettings.DecryptSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateCryptoKeyPrimaryVersion = clientHelper.BuildApiCall( GrpcClient.UpdateCryptoKeyPrimaryVersionAsync, GrpcClient.UpdateCryptoKeyPrimaryVersion, effectiveSettings.UpdateCryptoKeyPrimaryVersionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDestroyCryptoKeyVersion = clientHelper.BuildApiCall( GrpcClient.DestroyCryptoKeyVersionAsync, GrpcClient.DestroyCryptoKeyVersion, effectiveSettings.DestroyCryptoKeyVersionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callRestoreCryptoKeyVersion = clientHelper.BuildApiCall( GrpcClient.RestoreCryptoKeyVersionAsync, GrpcClient.RestoreCryptoKeyVersion, effectiveSettings.RestoreCryptoKeyVersionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetPublicKey = clientHelper.BuildApiCall( GrpcClient.GetPublicKeyAsync, GrpcClient.GetPublicKey, effectiveSettings.GetPublicKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callAsymmetricDecrypt = clientHelper.BuildApiCall( GrpcClient.AsymmetricDecryptAsync, GrpcClient.AsymmetricDecrypt, effectiveSettings.AsymmetricDecryptSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callAsymmetricSign = clientHelper.BuildApiCall( GrpcClient.AsymmetricSignAsync, GrpcClient.AsymmetricSign, effectiveSettings.AsymmetricSignSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetIamPolicy = clientHelper.BuildApiCall( grpcIAMPolicyClient.SetIamPolicyAsync, grpcIAMPolicyClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callGetIamPolicy = clientHelper.BuildApiCall( grpcIAMPolicyClient.GetIamPolicyAsync, grpcIAMPolicyClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callTestIamPermissions = clientHelper.BuildApiCall( grpcIAMPolicyClient.TestIamPermissionsAsync, grpcIAMPolicyClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); Modify_ApiCall(ref _callListKeyRings); Modify_ListKeyRingsApiCall(ref _callListKeyRings); Modify_ApiCall(ref _callListImportJobs); diff --git a/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/ConfigServiceV2Client.cs b/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/ConfigServiceV2Client.cs index 8d57d6cda485..991097cdd8ad 100644 --- a/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/ConfigServiceV2Client.cs +++ b/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/ConfigServiceV2Client.cs @@ -3455,34 +3455,34 @@ public ConfigServiceV2ClientImpl(ConfigServiceV2.ConfigServiceV2Client grpcClien gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListSinks = clientHelper.BuildApiCall( GrpcClient.ListSinksAsync, GrpcClient.ListSinks, effectiveSettings.ListSinksSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetSink = clientHelper.BuildApiCall( GrpcClient.GetSinkAsync, GrpcClient.GetSink, effectiveSettings.GetSinkSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"sink_name={request.SinkName}")); + .WithGoogleRequestParam("sink_name", request => request.SinkName); _callCreateSink = clientHelper.BuildApiCall( GrpcClient.CreateSinkAsync, GrpcClient.CreateSink, effectiveSettings.CreateSinkSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateSink = clientHelper.BuildApiCall( GrpcClient.UpdateSinkAsync, GrpcClient.UpdateSink, effectiveSettings.UpdateSinkSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"sink_name={request.SinkName}")); + .WithGoogleRequestParam("sink_name", request => request.SinkName); _callDeleteSink = clientHelper.BuildApiCall( GrpcClient.DeleteSinkAsync, GrpcClient.DeleteSink, effectiveSettings.DeleteSinkSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"sink_name={request.SinkName}")); + .WithGoogleRequestParam("sink_name", request => request.SinkName); _callListExclusions = clientHelper.BuildApiCall( GrpcClient.ListExclusionsAsync, GrpcClient.ListExclusions, effectiveSettings.ListExclusionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetExclusion = clientHelper.BuildApiCall( GrpcClient.GetExclusionAsync, GrpcClient.GetExclusion, effectiveSettings.GetExclusionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateExclusion = clientHelper.BuildApiCall( GrpcClient.CreateExclusionAsync, GrpcClient.CreateExclusion, effectiveSettings.CreateExclusionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateExclusion = clientHelper.BuildApiCall( GrpcClient.UpdateExclusionAsync, GrpcClient.UpdateExclusion, effectiveSettings.UpdateExclusionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteExclusion = clientHelper.BuildApiCall( GrpcClient.DeleteExclusionAsync, GrpcClient.DeleteExclusion, effectiveSettings.DeleteExclusionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callListSinks); Modify_ListSinksApiCall(ref _callListSinks); Modify_ApiCall(ref _callGetSink); diff --git a/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/LoggingServiceV2Client.cs b/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/LoggingServiceV2Client.cs index fb95cff1f7e9..a526cf4698b4 100644 --- a/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/LoggingServiceV2Client.cs +++ b/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/LoggingServiceV2Client.cs @@ -1952,7 +1952,7 @@ public LoggingServiceV2ClientImpl(LoggingServiceV2.LoggingServiceV2Client grpcCl gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callDeleteLog = clientHelper.BuildApiCall( GrpcClient.DeleteLogAsync, GrpcClient.DeleteLog, effectiveSettings.DeleteLogSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"log_name={request.LogName}")); + .WithGoogleRequestParam("log_name", request => request.LogName); _callWriteLogEntries = clientHelper.BuildApiCall( GrpcClient.WriteLogEntriesAsync, GrpcClient.WriteLogEntries, effectiveSettings.WriteLogEntriesSettings); _callListLogEntries = clientHelper.BuildApiCall( @@ -1961,7 +1961,7 @@ public LoggingServiceV2ClientImpl(LoggingServiceV2.LoggingServiceV2Client grpcCl GrpcClient.ListMonitoredResourceDescriptorsAsync, GrpcClient.ListMonitoredResourceDescriptors, effectiveSettings.ListMonitoredResourceDescriptorsSettings); _callListLogs = clientHelper.BuildApiCall( GrpcClient.ListLogsAsync, GrpcClient.ListLogs, effectiveSettings.ListLogsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callDeleteLog); Modify_DeleteLogApiCall(ref _callDeleteLog); Modify_ApiCall(ref _callWriteLogEntries); diff --git a/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/MetricsServiceV2Client.cs b/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/MetricsServiceV2Client.cs index 077f45a0ab64..56230cb11020 100644 --- a/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/MetricsServiceV2Client.cs +++ b/apis/Google.Cloud.Logging.V2/Google.Cloud.Logging.V2/MetricsServiceV2Client.cs @@ -1532,19 +1532,19 @@ public MetricsServiceV2ClientImpl(MetricsServiceV2.MetricsServiceV2Client grpcCl gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListLogMetrics = clientHelper.BuildApiCall( GrpcClient.ListLogMetricsAsync, GrpcClient.ListLogMetrics, effectiveSettings.ListLogMetricsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetLogMetric = clientHelper.BuildApiCall( GrpcClient.GetLogMetricAsync, GrpcClient.GetLogMetric, effectiveSettings.GetLogMetricSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"metric_name={request.MetricName}")); + .WithGoogleRequestParam("metric_name", request => request.MetricName); _callCreateLogMetric = clientHelper.BuildApiCall( GrpcClient.CreateLogMetricAsync, GrpcClient.CreateLogMetric, effectiveSettings.CreateLogMetricSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateLogMetric = clientHelper.BuildApiCall( GrpcClient.UpdateLogMetricAsync, GrpcClient.UpdateLogMetric, effectiveSettings.UpdateLogMetricSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"metric_name={request.MetricName}")); + .WithGoogleRequestParam("metric_name", request => request.MetricName); _callDeleteLogMetric = clientHelper.BuildApiCall( GrpcClient.DeleteLogMetricAsync, GrpcClient.DeleteLogMetric, effectiveSettings.DeleteLogMetricSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"metric_name={request.MetricName}")); + .WithGoogleRequestParam("metric_name", request => request.MetricName); Modify_ApiCall(ref _callListLogMetrics); Modify_ListLogMetricsApiCall(ref _callListLogMetrics); Modify_ApiCall(ref _callGetLogMetric); diff --git a/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/AlertPolicyServiceClient.cs b/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/AlertPolicyServiceClient.cs index 1dbbcb68b8c0..0b26c1408bb2 100644 --- a/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/AlertPolicyServiceClient.cs +++ b/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/AlertPolicyServiceClient.cs @@ -1560,19 +1560,19 @@ public AlertPolicyServiceClientImpl(AlertPolicyService.AlertPolicyServiceClient gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListAlertPolicies = clientHelper.BuildApiCall( GrpcClient.ListAlertPoliciesAsync, GrpcClient.ListAlertPolicies, effectiveSettings.ListAlertPoliciesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetAlertPolicy = clientHelper.BuildApiCall( GrpcClient.GetAlertPolicyAsync, GrpcClient.GetAlertPolicy, effectiveSettings.GetAlertPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateAlertPolicy = clientHelper.BuildApiCall( GrpcClient.CreateAlertPolicyAsync, GrpcClient.CreateAlertPolicy, effectiveSettings.CreateAlertPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteAlertPolicy = clientHelper.BuildApiCall( GrpcClient.DeleteAlertPolicyAsync, GrpcClient.DeleteAlertPolicy, effectiveSettings.DeleteAlertPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateAlertPolicy = clientHelper.BuildApiCall( GrpcClient.UpdateAlertPolicyAsync, GrpcClient.UpdateAlertPolicy, effectiveSettings.UpdateAlertPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"alert_policy.name={request.AlertPolicy?.Name}")); + .WithGoogleRequestParam("alert_policy.name", request => request.AlertPolicy?.Name); Modify_ApiCall(ref _callListAlertPolicies); Modify_ListAlertPoliciesApiCall(ref _callListAlertPolicies); Modify_ApiCall(ref _callGetAlertPolicy); diff --git a/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/GroupServiceClient.cs b/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/GroupServiceClient.cs index 9ec2a0ccbc4d..4d51a6488ab8 100644 --- a/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/GroupServiceClient.cs +++ b/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/GroupServiceClient.cs @@ -1445,22 +1445,22 @@ public GroupServiceClientImpl(GroupService.GroupServiceClient grpcClient, GroupS gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListGroups = clientHelper.BuildApiCall( GrpcClient.ListGroupsAsync, GrpcClient.ListGroups, effectiveSettings.ListGroupsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetGroup = clientHelper.BuildApiCall( GrpcClient.GetGroupAsync, GrpcClient.GetGroup, effectiveSettings.GetGroupSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateGroup = clientHelper.BuildApiCall( GrpcClient.CreateGroupAsync, GrpcClient.CreateGroup, effectiveSettings.CreateGroupSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateGroup = clientHelper.BuildApiCall( GrpcClient.UpdateGroupAsync, GrpcClient.UpdateGroup, effectiveSettings.UpdateGroupSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"group.name={request.Group?.Name}")); + .WithGoogleRequestParam("group.name", request => request.Group?.Name); _callDeleteGroup = clientHelper.BuildApiCall( GrpcClient.DeleteGroupAsync, GrpcClient.DeleteGroup, effectiveSettings.DeleteGroupSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListGroupMembers = clientHelper.BuildApiCall( GrpcClient.ListGroupMembersAsync, GrpcClient.ListGroupMembers, effectiveSettings.ListGroupMembersSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callListGroups); Modify_ListGroupsApiCall(ref _callListGroups); Modify_ApiCall(ref _callGetGroup); diff --git a/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/MetricServiceClient.cs b/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/MetricServiceClient.cs index 7b1eb3a764cc..b569e32744cb 100644 --- a/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/MetricServiceClient.cs +++ b/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/MetricServiceClient.cs @@ -2320,28 +2320,28 @@ public MetricServiceClientImpl(MetricService.MetricServiceClient grpcClient, Met gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListMonitoredResourceDescriptors = clientHelper.BuildApiCall( GrpcClient.ListMonitoredResourceDescriptorsAsync, GrpcClient.ListMonitoredResourceDescriptors, effectiveSettings.ListMonitoredResourceDescriptorsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetMonitoredResourceDescriptor = clientHelper.BuildApiCall( GrpcClient.GetMonitoredResourceDescriptorAsync, GrpcClient.GetMonitoredResourceDescriptor, effectiveSettings.GetMonitoredResourceDescriptorSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListMetricDescriptors = clientHelper.BuildApiCall( GrpcClient.ListMetricDescriptorsAsync, GrpcClient.ListMetricDescriptors, effectiveSettings.ListMetricDescriptorsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetMetricDescriptor = clientHelper.BuildApiCall( GrpcClient.GetMetricDescriptorAsync, GrpcClient.GetMetricDescriptor, effectiveSettings.GetMetricDescriptorSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateMetricDescriptor = clientHelper.BuildApiCall( GrpcClient.CreateMetricDescriptorAsync, GrpcClient.CreateMetricDescriptor, effectiveSettings.CreateMetricDescriptorSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteMetricDescriptor = clientHelper.BuildApiCall( GrpcClient.DeleteMetricDescriptorAsync, GrpcClient.DeleteMetricDescriptor, effectiveSettings.DeleteMetricDescriptorSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListTimeSeries = clientHelper.BuildApiCall( GrpcClient.ListTimeSeriesAsync, GrpcClient.ListTimeSeries, effectiveSettings.ListTimeSeriesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateTimeSeries = clientHelper.BuildApiCall( GrpcClient.CreateTimeSeriesAsync, GrpcClient.CreateTimeSeries, effectiveSettings.CreateTimeSeriesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callListMonitoredResourceDescriptors); Modify_ListMonitoredResourceDescriptorsApiCall(ref _callListMonitoredResourceDescriptors); Modify_ApiCall(ref _callGetMonitoredResourceDescriptor); diff --git a/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/NotificationChannelServiceClient.cs b/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/NotificationChannelServiceClient.cs index 6c56258a6325..c5cdf1fe87d8 100644 --- a/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/NotificationChannelServiceClient.cs +++ b/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/NotificationChannelServiceClient.cs @@ -2000,25 +2000,25 @@ public NotificationChannelServiceClientImpl(NotificationChannelService.Notificat gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListNotificationChannelDescriptors = clientHelper.BuildApiCall( GrpcClient.ListNotificationChannelDescriptorsAsync, GrpcClient.ListNotificationChannelDescriptors, effectiveSettings.ListNotificationChannelDescriptorsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetNotificationChannelDescriptor = clientHelper.BuildApiCall( GrpcClient.GetNotificationChannelDescriptorAsync, GrpcClient.GetNotificationChannelDescriptor, effectiveSettings.GetNotificationChannelDescriptorSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListNotificationChannels = clientHelper.BuildApiCall( GrpcClient.ListNotificationChannelsAsync, GrpcClient.ListNotificationChannels, effectiveSettings.ListNotificationChannelsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetNotificationChannel = clientHelper.BuildApiCall( GrpcClient.GetNotificationChannelAsync, GrpcClient.GetNotificationChannel, effectiveSettings.GetNotificationChannelSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateNotificationChannel = clientHelper.BuildApiCall( GrpcClient.CreateNotificationChannelAsync, GrpcClient.CreateNotificationChannel, effectiveSettings.CreateNotificationChannelSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateNotificationChannel = clientHelper.BuildApiCall( GrpcClient.UpdateNotificationChannelAsync, GrpcClient.UpdateNotificationChannel, effectiveSettings.UpdateNotificationChannelSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"notification_channel.name={request.NotificationChannel?.Name}")); + .WithGoogleRequestParam("notification_channel.name", request => request.NotificationChannel?.Name); _callDeleteNotificationChannel = clientHelper.BuildApiCall( GrpcClient.DeleteNotificationChannelAsync, GrpcClient.DeleteNotificationChannel, effectiveSettings.DeleteNotificationChannelSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callListNotificationChannelDescriptors); Modify_ListNotificationChannelDescriptorsApiCall(ref _callListNotificationChannelDescriptors); Modify_ApiCall(ref _callGetNotificationChannelDescriptor); diff --git a/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/UptimeCheckServiceClient.cs b/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/UptimeCheckServiceClient.cs index b778a526a0e0..83ce3c424b89 100644 --- a/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/UptimeCheckServiceClient.cs +++ b/apis/Google.Cloud.Monitoring.V3/Google.Cloud.Monitoring.V3/UptimeCheckServiceClient.cs @@ -1352,19 +1352,19 @@ public UptimeCheckServiceClientImpl(UptimeCheckService.UptimeCheckServiceClient gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListUptimeCheckConfigs = clientHelper.BuildApiCall( GrpcClient.ListUptimeCheckConfigsAsync, GrpcClient.ListUptimeCheckConfigs, effectiveSettings.ListUptimeCheckConfigsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetUptimeCheckConfig = clientHelper.BuildApiCall( GrpcClient.GetUptimeCheckConfigAsync, GrpcClient.GetUptimeCheckConfig, effectiveSettings.GetUptimeCheckConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateUptimeCheckConfig = clientHelper.BuildApiCall( GrpcClient.CreateUptimeCheckConfigAsync, GrpcClient.CreateUptimeCheckConfig, effectiveSettings.CreateUptimeCheckConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateUptimeCheckConfig = clientHelper.BuildApiCall( GrpcClient.UpdateUptimeCheckConfigAsync, GrpcClient.UpdateUptimeCheckConfig, effectiveSettings.UpdateUptimeCheckConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"uptime_check_config.name={request.UptimeCheckConfig?.Name}")); + .WithGoogleRequestParam("uptime_check_config.name", request => request.UptimeCheckConfig?.Name); _callDeleteUptimeCheckConfig = clientHelper.BuildApiCall( GrpcClient.DeleteUptimeCheckConfigAsync, GrpcClient.DeleteUptimeCheckConfig, effectiveSettings.DeleteUptimeCheckConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListUptimeCheckIps = clientHelper.BuildApiCall( GrpcClient.ListUptimeCheckIpsAsync, GrpcClient.ListUptimeCheckIps, effectiveSettings.ListUptimeCheckIpsSettings); Modify_ApiCall(ref _callListUptimeCheckConfigs); diff --git a/apis/Google.Cloud.OsLogin.V1/Google.Cloud.OsLogin.V1/OsLoginServiceClient.cs b/apis/Google.Cloud.OsLogin.V1/Google.Cloud.OsLogin.V1/OsLoginServiceClient.cs index 56f503193bb6..6bcb85481831 100644 --- a/apis/Google.Cloud.OsLogin.V1/Google.Cloud.OsLogin.V1/OsLoginServiceClient.cs +++ b/apis/Google.Cloud.OsLogin.V1/Google.Cloud.OsLogin.V1/OsLoginServiceClient.cs @@ -2108,22 +2108,22 @@ public OsLoginServiceClientImpl(OsLoginService.OsLoginServiceClient grpcClient, gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callDeletePosixAccount = clientHelper.BuildApiCall( GrpcClient.DeletePosixAccountAsync, GrpcClient.DeletePosixAccount, effectiveSettings.DeletePosixAccountSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteSshPublicKey = clientHelper.BuildApiCall( GrpcClient.DeleteSshPublicKeyAsync, GrpcClient.DeleteSshPublicKey, effectiveSettings.DeleteSshPublicKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetLoginProfile = clientHelper.BuildApiCall( GrpcClient.GetLoginProfileAsync, GrpcClient.GetLoginProfile, effectiveSettings.GetLoginProfileSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetSshPublicKey = clientHelper.BuildApiCall( GrpcClient.GetSshPublicKeyAsync, GrpcClient.GetSshPublicKey, effectiveSettings.GetSshPublicKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callImportSshPublicKey = clientHelper.BuildApiCall( GrpcClient.ImportSshPublicKeyAsync, GrpcClient.ImportSshPublicKey, effectiveSettings.ImportSshPublicKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateSshPublicKey = clientHelper.BuildApiCall( GrpcClient.UpdateSshPublicKeyAsync, GrpcClient.UpdateSshPublicKey, effectiveSettings.UpdateSshPublicKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callDeletePosixAccount); Modify_DeletePosixAccountApiCall(ref _callDeletePosixAccount); Modify_ApiCall(ref _callDeleteSshPublicKey); diff --git a/apis/Google.Cloud.OsLogin.V1Beta/Google.Cloud.OsLogin.V1Beta/OsLoginServiceClient.cs b/apis/Google.Cloud.OsLogin.V1Beta/Google.Cloud.OsLogin.V1Beta/OsLoginServiceClient.cs index 7bf2ff039344..5e37c5c78c83 100644 --- a/apis/Google.Cloud.OsLogin.V1Beta/Google.Cloud.OsLogin.V1Beta/OsLoginServiceClient.cs +++ b/apis/Google.Cloud.OsLogin.V1Beta/Google.Cloud.OsLogin.V1Beta/OsLoginServiceClient.cs @@ -2108,22 +2108,22 @@ public OsLoginServiceClientImpl(OsLoginService.OsLoginServiceClient grpcClient, gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callDeletePosixAccount = clientHelper.BuildApiCall( GrpcClient.DeletePosixAccountAsync, GrpcClient.DeletePosixAccount, effectiveSettings.DeletePosixAccountSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteSshPublicKey = clientHelper.BuildApiCall( GrpcClient.DeleteSshPublicKeyAsync, GrpcClient.DeleteSshPublicKey, effectiveSettings.DeleteSshPublicKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetLoginProfile = clientHelper.BuildApiCall( GrpcClient.GetLoginProfileAsync, GrpcClient.GetLoginProfile, effectiveSettings.GetLoginProfileSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetSshPublicKey = clientHelper.BuildApiCall( GrpcClient.GetSshPublicKeyAsync, GrpcClient.GetSshPublicKey, effectiveSettings.GetSshPublicKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callImportSshPublicKey = clientHelper.BuildApiCall( GrpcClient.ImportSshPublicKeyAsync, GrpcClient.ImportSshPublicKey, effectiveSettings.ImportSshPublicKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateSshPublicKey = clientHelper.BuildApiCall( GrpcClient.UpdateSshPublicKeyAsync, GrpcClient.UpdateSshPublicKey, effectiveSettings.UpdateSshPublicKeySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callDeletePosixAccount); Modify_DeletePosixAccountApiCall(ref _callDeletePosixAccount); Modify_ApiCall(ref _callDeleteSshPublicKey); diff --git a/apis/Google.Cloud.PhishingProtection.V1Beta1/Google.Cloud.PhishingProtection.V1Beta1/PhishingProtectionServiceV1Beta1Client.cs b/apis/Google.Cloud.PhishingProtection.V1Beta1/Google.Cloud.PhishingProtection.V1Beta1/PhishingProtectionServiceV1Beta1Client.cs index 499a976e95ee..b9af11c29577 100644 --- a/apis/Google.Cloud.PhishingProtection.V1Beta1/Google.Cloud.PhishingProtection.V1Beta1/PhishingProtectionServiceV1Beta1Client.cs +++ b/apis/Google.Cloud.PhishingProtection.V1Beta1/Google.Cloud.PhishingProtection.V1Beta1/PhishingProtectionServiceV1Beta1Client.cs @@ -626,7 +626,7 @@ public PhishingProtectionServiceV1Beta1ClientImpl(PhishingProtectionServiceV1Bet gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callReportPhishing = clientHelper.BuildApiCall( GrpcClient.ReportPhishingAsync, GrpcClient.ReportPhishing, effectiveSettings.ReportPhishingSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callReportPhishing); Modify_ReportPhishingApiCall(ref _callReportPhishing); OnConstruction(grpcClient, effectiveSettings, clientHelper); diff --git a/apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/PublisherServiceApiClient.cs b/apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/PublisherServiceApiClient.cs index 65fa70997fc2..a967d9716f49 100644 --- a/apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/PublisherServiceApiClient.cs +++ b/apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/PublisherServiceApiClient.cs @@ -2441,34 +2441,34 @@ public PublisherServiceApiClientImpl(Publisher.PublisherClient grpcClient, Publi iam::IAMPolicy.IAMPolicyClient grpcIAMPolicyClient = grpcClient.CreateIAMPolicyClient(); _callCreateTopic = clientHelper.BuildApiCall( GrpcClient.CreateTopicAsync, GrpcClient.CreateTopic, effectiveSettings.CreateTopicSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateTopic = clientHelper.BuildApiCall( GrpcClient.UpdateTopicAsync, GrpcClient.UpdateTopic, effectiveSettings.UpdateTopicSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"topic.name={request.Topic?.Name}")); + .WithGoogleRequestParam("topic.name", request => request.Topic?.Name); _callPublish = clientHelper.BuildApiCall( GrpcClient.PublishAsync, GrpcClient.Publish, effectiveSettings.PublishSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"topic={request.Topic}")); + .WithGoogleRequestParam("topic", request => request.Topic); _callGetTopic = clientHelper.BuildApiCall( GrpcClient.GetTopicAsync, GrpcClient.GetTopic, effectiveSettings.GetTopicSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"topic={request.Topic}")); + .WithGoogleRequestParam("topic", request => request.Topic); _callListTopics = clientHelper.BuildApiCall( GrpcClient.ListTopicsAsync, GrpcClient.ListTopics, effectiveSettings.ListTopicsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project={request.Project}")); + .WithGoogleRequestParam("project", request => request.Project); _callListTopicSubscriptions = clientHelper.BuildApiCall( GrpcClient.ListTopicSubscriptionsAsync, GrpcClient.ListTopicSubscriptions, effectiveSettings.ListTopicSubscriptionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"topic={request.Topic}")); + .WithGoogleRequestParam("topic", request => request.Topic); _callDeleteTopic = clientHelper.BuildApiCall( GrpcClient.DeleteTopicAsync, GrpcClient.DeleteTopic, effectiveSettings.DeleteTopicSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"topic={request.Topic}")); + .WithGoogleRequestParam("topic", request => request.Topic); _callSetIamPolicy = clientHelper.BuildApiCall( grpcIAMPolicyClient.SetIamPolicyAsync, grpcIAMPolicyClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callGetIamPolicy = clientHelper.BuildApiCall( grpcIAMPolicyClient.GetIamPolicyAsync, grpcIAMPolicyClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callTestIamPermissions = clientHelper.BuildApiCall( grpcIAMPolicyClient.TestIamPermissionsAsync, grpcIAMPolicyClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); Modify_ApiCall(ref _callCreateTopic); Modify_CreateTopicApiCall(ref _callCreateTopic); Modify_ApiCall(ref _callUpdateTopic); diff --git a/apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/SubscriberServiceApiClient.cs b/apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/SubscriberServiceApiClient.cs index 1c3a2470c6f9..10316c72d4ea 100644 --- a/apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/SubscriberServiceApiClient.cs +++ b/apis/Google.Cloud.PubSub.V1/Google.Cloud.PubSub.V1/SubscriberServiceApiClient.cs @@ -4847,57 +4847,57 @@ public SubscriberServiceApiClientImpl(Subscriber.SubscriberClient grpcClient, Su iam::IAMPolicy.IAMPolicyClient grpcIAMPolicyClient = grpcClient.CreateIAMPolicyClient(); _callCreateSubscription = clientHelper.BuildApiCall( GrpcClient.CreateSubscriptionAsync, GrpcClient.CreateSubscription, effectiveSettings.CreateSubscriptionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetSubscription = clientHelper.BuildApiCall( GrpcClient.GetSubscriptionAsync, GrpcClient.GetSubscription, effectiveSettings.GetSubscriptionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"subscription={request.Subscription}")); + .WithGoogleRequestParam("subscription", request => request.Subscription); _callUpdateSubscription = clientHelper.BuildApiCall( GrpcClient.UpdateSubscriptionAsync, GrpcClient.UpdateSubscription, effectiveSettings.UpdateSubscriptionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"subscription.name={request.Subscription?.Name}")); + .WithGoogleRequestParam("subscription.name", request => request.Subscription?.Name); _callListSubscriptions = clientHelper.BuildApiCall( GrpcClient.ListSubscriptionsAsync, GrpcClient.ListSubscriptions, effectiveSettings.ListSubscriptionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project={request.Project}")); + .WithGoogleRequestParam("project", request => request.Project); _callDeleteSubscription = clientHelper.BuildApiCall( GrpcClient.DeleteSubscriptionAsync, GrpcClient.DeleteSubscription, effectiveSettings.DeleteSubscriptionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"subscription={request.Subscription}")); + .WithGoogleRequestParam("subscription", request => request.Subscription); _callModifyAckDeadline = clientHelper.BuildApiCall( GrpcClient.ModifyAckDeadlineAsync, GrpcClient.ModifyAckDeadline, effectiveSettings.ModifyAckDeadlineSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"subscription={request.Subscription}")); + .WithGoogleRequestParam("subscription", request => request.Subscription); _callAcknowledge = clientHelper.BuildApiCall( GrpcClient.AcknowledgeAsync, GrpcClient.Acknowledge, effectiveSettings.AcknowledgeSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"subscription={request.Subscription}")); + .WithGoogleRequestParam("subscription", request => request.Subscription); _callPull = clientHelper.BuildApiCall( GrpcClient.PullAsync, GrpcClient.Pull, effectiveSettings.PullSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"subscription={request.Subscription}")); + .WithGoogleRequestParam("subscription", request => request.Subscription); _callStreamingPull = clientHelper.BuildApiCall( GrpcClient.StreamingPull, effectiveSettings.StreamingPullSettings, effectiveSettings.StreamingPullStreamingSettings); _callModifyPushConfig = clientHelper.BuildApiCall( GrpcClient.ModifyPushConfigAsync, GrpcClient.ModifyPushConfig, effectiveSettings.ModifyPushConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"subscription={request.Subscription}")); + .WithGoogleRequestParam("subscription", request => request.Subscription); _callListSnapshots = clientHelper.BuildApiCall( GrpcClient.ListSnapshotsAsync, GrpcClient.ListSnapshots, effectiveSettings.ListSnapshotsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project={request.Project}")); + .WithGoogleRequestParam("project", request => request.Project); _callCreateSnapshot = clientHelper.BuildApiCall( GrpcClient.CreateSnapshotAsync, GrpcClient.CreateSnapshot, effectiveSettings.CreateSnapshotSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateSnapshot = clientHelper.BuildApiCall( GrpcClient.UpdateSnapshotAsync, GrpcClient.UpdateSnapshot, effectiveSettings.UpdateSnapshotSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"snapshot.name={request.Snapshot?.Name}")); + .WithGoogleRequestParam("snapshot.name", request => request.Snapshot?.Name); _callDeleteSnapshot = clientHelper.BuildApiCall( GrpcClient.DeleteSnapshotAsync, GrpcClient.DeleteSnapshot, effectiveSettings.DeleteSnapshotSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"snapshot={request.Snapshot}")); + .WithGoogleRequestParam("snapshot", request => request.Snapshot); _callSeek = clientHelper.BuildApiCall( GrpcClient.SeekAsync, GrpcClient.Seek, effectiveSettings.SeekSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"subscription={request.Subscription}")); + .WithGoogleRequestParam("subscription", request => request.Subscription); _callSetIamPolicy = clientHelper.BuildApiCall( grpcIAMPolicyClient.SetIamPolicyAsync, grpcIAMPolicyClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callGetIamPolicy = clientHelper.BuildApiCall( grpcIAMPolicyClient.GetIamPolicyAsync, grpcIAMPolicyClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callTestIamPermissions = clientHelper.BuildApiCall( grpcIAMPolicyClient.TestIamPermissionsAsync, grpcIAMPolicyClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); Modify_ApiCall(ref _callCreateSubscription); Modify_CreateSubscriptionApiCall(ref _callCreateSubscription); Modify_ApiCall(ref _callGetSubscription); diff --git a/apis/Google.Cloud.RecaptchaEnterprise.V1Beta1/Google.Cloud.RecaptchaEnterprise.V1Beta1/RecaptchaEnterpriseServiceV1Beta1Client.cs b/apis/Google.Cloud.RecaptchaEnterprise.V1Beta1/Google.Cloud.RecaptchaEnterprise.V1Beta1/RecaptchaEnterpriseServiceV1Beta1Client.cs index 299fddf34c09..07a00ed1493d 100644 --- a/apis/Google.Cloud.RecaptchaEnterprise.V1Beta1/Google.Cloud.RecaptchaEnterprise.V1Beta1/RecaptchaEnterpriseServiceV1Beta1Client.cs +++ b/apis/Google.Cloud.RecaptchaEnterprise.V1Beta1/Google.Cloud.RecaptchaEnterprise.V1Beta1/RecaptchaEnterpriseServiceV1Beta1Client.cs @@ -833,10 +833,10 @@ public RecaptchaEnterpriseServiceV1Beta1ClientImpl(RecaptchaEnterpriseServiceV1B gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callCreateAssessment = clientHelper.BuildApiCall( GrpcClient.CreateAssessmentAsync, GrpcClient.CreateAssessment, effectiveSettings.CreateAssessmentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callAnnotateAssessment = clientHelper.BuildApiCall( GrpcClient.AnnotateAssessmentAsync, GrpcClient.AnnotateAssessment, effectiveSettings.AnnotateAssessmentSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callCreateAssessment); Modify_CreateAssessmentApiCall(ref _callCreateAssessment); Modify_ApiCall(ref _callAnnotateAssessment); diff --git a/apis/Google.Cloud.Redis.V1/Google.Cloud.Redis.V1/CloudRedisClient.cs b/apis/Google.Cloud.Redis.V1/Google.Cloud.Redis.V1/CloudRedisClient.cs index c95f55725133..e488602b9822 100644 --- a/apis/Google.Cloud.Redis.V1/Google.Cloud.Redis.V1/CloudRedisClient.cs +++ b/apis/Google.Cloud.Redis.V1/Google.Cloud.Redis.V1/CloudRedisClient.cs @@ -2549,28 +2549,28 @@ public CloudRedisClientImpl(CloudRedis.CloudRedisClient grpcClient, CloudRedisSe grpcClient.CreateOperationsClient(), effectiveSettings.DeleteInstanceOperationsSettings); _callListInstances = clientHelper.BuildApiCall( GrpcClient.ListInstancesAsync, GrpcClient.ListInstances, effectiveSettings.ListInstancesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetInstance = clientHelper.BuildApiCall( GrpcClient.GetInstanceAsync, GrpcClient.GetInstance, effectiveSettings.GetInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateInstance = clientHelper.BuildApiCall( GrpcClient.CreateInstanceAsync, GrpcClient.CreateInstance, effectiveSettings.CreateInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateInstance = clientHelper.BuildApiCall( GrpcClient.UpdateInstanceAsync, GrpcClient.UpdateInstance, effectiveSettings.UpdateInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"instance.name={request.Instance?.Name}")); + .WithGoogleRequestParam("instance.name", request => request.Instance?.Name); _callImportInstance = clientHelper.BuildApiCall( GrpcClient.ImportInstanceAsync, GrpcClient.ImportInstance, effectiveSettings.ImportInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callExportInstance = clientHelper.BuildApiCall( GrpcClient.ExportInstanceAsync, GrpcClient.ExportInstance, effectiveSettings.ExportInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callFailoverInstance = clientHelper.BuildApiCall( GrpcClient.FailoverInstanceAsync, GrpcClient.FailoverInstance, effectiveSettings.FailoverInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteInstance = clientHelper.BuildApiCall( GrpcClient.DeleteInstanceAsync, GrpcClient.DeleteInstance, effectiveSettings.DeleteInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callListInstances); Modify_ListInstancesApiCall(ref _callListInstances); Modify_ApiCall(ref _callGetInstance); diff --git a/apis/Google.Cloud.Redis.V1Beta1/Google.Cloud.Redis.V1Beta1/CloudRedisClient.cs b/apis/Google.Cloud.Redis.V1Beta1/Google.Cloud.Redis.V1Beta1/CloudRedisClient.cs index 4a90ddcf32d0..d65392e82011 100644 --- a/apis/Google.Cloud.Redis.V1Beta1/Google.Cloud.Redis.V1Beta1/CloudRedisClient.cs +++ b/apis/Google.Cloud.Redis.V1Beta1/Google.Cloud.Redis.V1Beta1/CloudRedisClient.cs @@ -2462,28 +2462,28 @@ public CloudRedisClientImpl(CloudRedis.CloudRedisClient grpcClient, CloudRedisSe grpcClient.CreateOperationsClient(), effectiveSettings.DeleteInstanceOperationsSettings); _callListInstances = clientHelper.BuildApiCall( GrpcClient.ListInstancesAsync, GrpcClient.ListInstances, effectiveSettings.ListInstancesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetInstance = clientHelper.BuildApiCall( GrpcClient.GetInstanceAsync, GrpcClient.GetInstance, effectiveSettings.GetInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateInstance = clientHelper.BuildApiCall( GrpcClient.CreateInstanceAsync, GrpcClient.CreateInstance, effectiveSettings.CreateInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateInstance = clientHelper.BuildApiCall( GrpcClient.UpdateInstanceAsync, GrpcClient.UpdateInstance, effectiveSettings.UpdateInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"instance.name={request.Instance?.Name}")); + .WithGoogleRequestParam("instance.name", request => request.Instance?.Name); _callImportInstance = clientHelper.BuildApiCall( GrpcClient.ImportInstanceAsync, GrpcClient.ImportInstance, effectiveSettings.ImportInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callExportInstance = clientHelper.BuildApiCall( GrpcClient.ExportInstanceAsync, GrpcClient.ExportInstance, effectiveSettings.ExportInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callFailoverInstance = clientHelper.BuildApiCall( GrpcClient.FailoverInstanceAsync, GrpcClient.FailoverInstance, effectiveSettings.FailoverInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteInstance = clientHelper.BuildApiCall( GrpcClient.DeleteInstanceAsync, GrpcClient.DeleteInstance, effectiveSettings.DeleteInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callListInstances); Modify_ListInstancesApiCall(ref _callListInstances); Modify_ApiCall(ref _callGetInstance); diff --git a/apis/Google.Cloud.Scheduler.V1/Google.Cloud.Scheduler.V1/CloudSchedulerClient.cs b/apis/Google.Cloud.Scheduler.V1/Google.Cloud.Scheduler.V1/CloudSchedulerClient.cs index cb431fae73b4..d424383b0003 100644 --- a/apis/Google.Cloud.Scheduler.V1/Google.Cloud.Scheduler.V1/CloudSchedulerClient.cs +++ b/apis/Google.Cloud.Scheduler.V1/Google.Cloud.Scheduler.V1/CloudSchedulerClient.cs @@ -2311,28 +2311,28 @@ public CloudSchedulerClientImpl(CloudScheduler.CloudSchedulerClient grpcClient, gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListJobs = clientHelper.BuildApiCall( GrpcClient.ListJobsAsync, GrpcClient.ListJobs, effectiveSettings.ListJobsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetJob = clientHelper.BuildApiCall( GrpcClient.GetJobAsync, GrpcClient.GetJob, effectiveSettings.GetJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateJob = clientHelper.BuildApiCall( GrpcClient.CreateJobAsync, GrpcClient.CreateJob, effectiveSettings.CreateJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateJob = clientHelper.BuildApiCall( GrpcClient.UpdateJobAsync, GrpcClient.UpdateJob, effectiveSettings.UpdateJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"job.name={request.Job?.Name}")); + .WithGoogleRequestParam("job.name", request => request.Job?.Name); _callDeleteJob = clientHelper.BuildApiCall( GrpcClient.DeleteJobAsync, GrpcClient.DeleteJob, effectiveSettings.DeleteJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callPauseJob = clientHelper.BuildApiCall( GrpcClient.PauseJobAsync, GrpcClient.PauseJob, effectiveSettings.PauseJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callResumeJob = clientHelper.BuildApiCall( GrpcClient.ResumeJobAsync, GrpcClient.ResumeJob, effectiveSettings.ResumeJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callRunJob = clientHelper.BuildApiCall( GrpcClient.RunJobAsync, GrpcClient.RunJob, effectiveSettings.RunJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callListJobs); Modify_ListJobsApiCall(ref _callListJobs); Modify_ApiCall(ref _callGetJob); diff --git a/apis/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecurityCenterClient.cs b/apis/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecurityCenterClient.cs index 538eef796bb5..3c4eab051049 100644 --- a/apis/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecurityCenterClient.cs +++ b/apis/Google.Cloud.SecurityCenter.V1/Google.Cloud.SecurityCenter.V1/SecurityCenterClient.cs @@ -3974,58 +3974,58 @@ public SecurityCenterClientImpl(SecurityCenter.SecurityCenterClient grpcClient, grpcClient.CreateOperationsClient(), effectiveSettings.RunAssetDiscoveryOperationsSettings); _callCreateSource = clientHelper.BuildApiCall( GrpcClient.CreateSourceAsync, GrpcClient.CreateSource, effectiveSettings.CreateSourceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCreateFinding = clientHelper.BuildApiCall( GrpcClient.CreateFindingAsync, GrpcClient.CreateFinding, effectiveSettings.CreateFindingSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetIamPolicy = clientHelper.BuildApiCall( GrpcClient.GetIamPolicyAsync, GrpcClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callGetOrganizationSettings = clientHelper.BuildApiCall( GrpcClient.GetOrganizationSettingsAsync, GrpcClient.GetOrganizationSettings, effectiveSettings.GetOrganizationSettingsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetSource = clientHelper.BuildApiCall( GrpcClient.GetSourceAsync, GrpcClient.GetSource, effectiveSettings.GetSourceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGroupAssets = clientHelper.BuildApiCall( GrpcClient.GroupAssetsAsync, GrpcClient.GroupAssets, effectiveSettings.GroupAssetsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGroupFindings = clientHelper.BuildApiCall( GrpcClient.GroupFindingsAsync, GrpcClient.GroupFindings, effectiveSettings.GroupFindingsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListAssets = clientHelper.BuildApiCall( GrpcClient.ListAssetsAsync, GrpcClient.ListAssets, effectiveSettings.ListAssetsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListFindings = clientHelper.BuildApiCall( GrpcClient.ListFindingsAsync, GrpcClient.ListFindings, effectiveSettings.ListFindingsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListSources = clientHelper.BuildApiCall( GrpcClient.ListSourcesAsync, GrpcClient.ListSources, effectiveSettings.ListSourcesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callRunAssetDiscovery = clientHelper.BuildApiCall( GrpcClient.RunAssetDiscoveryAsync, GrpcClient.RunAssetDiscovery, effectiveSettings.RunAssetDiscoverySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callSetFindingState = clientHelper.BuildApiCall( GrpcClient.SetFindingStateAsync, GrpcClient.SetFindingState, effectiveSettings.SetFindingStateSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetIamPolicy = clientHelper.BuildApiCall( GrpcClient.SetIamPolicyAsync, GrpcClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callTestIamPermissions = clientHelper.BuildApiCall( GrpcClient.TestIamPermissionsAsync, GrpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callUpdateFinding = clientHelper.BuildApiCall( GrpcClient.UpdateFindingAsync, GrpcClient.UpdateFinding, effectiveSettings.UpdateFindingSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"finding.name={request.Finding?.Name}")); + .WithGoogleRequestParam("finding.name", request => request.Finding?.Name); _callUpdateOrganizationSettings = clientHelper.BuildApiCall( GrpcClient.UpdateOrganizationSettingsAsync, GrpcClient.UpdateOrganizationSettings, effectiveSettings.UpdateOrganizationSettingsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"organization_settings.name={request.OrganizationSettings?.Name}")); + .WithGoogleRequestParam("organization_settings.name", request => request.OrganizationSettings?.Name); _callUpdateSource = clientHelper.BuildApiCall( GrpcClient.UpdateSourceAsync, GrpcClient.UpdateSource, effectiveSettings.UpdateSourceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"source.name={request.Source?.Name}")); + .WithGoogleRequestParam("source.name", request => request.Source?.Name); _callUpdateSecurityMarks = clientHelper.BuildApiCall( GrpcClient.UpdateSecurityMarksAsync, GrpcClient.UpdateSecurityMarks, effectiveSettings.UpdateSecurityMarksSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"security_marks.name={request.SecurityMarks?.Name}")); + .WithGoogleRequestParam("security_marks.name", request => request.SecurityMarks?.Name); Modify_ApiCall(ref _callCreateSource); Modify_CreateSourceApiCall(ref _callCreateSource); Modify_ApiCall(ref _callCreateFinding); diff --git a/apis/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/DatabaseAdminClient.cs b/apis/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/DatabaseAdminClient.cs index 7741efb52d60..81ffeb8d626e 100644 --- a/apis/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/DatabaseAdminClient.cs +++ b/apis/Google.Cloud.Spanner.Admin.Database.V1/Google.Cloud.Spanner.Admin.Database.V1/DatabaseAdminClient.cs @@ -2443,31 +2443,31 @@ public DatabaseAdminClientImpl(DatabaseAdmin.DatabaseAdminClient grpcClient, Dat grpcClient.CreateOperationsClient(), effectiveSettings.UpdateDatabaseDdlOperationsSettings); _callListDatabases = clientHelper.BuildApiCall( GrpcClient.ListDatabasesAsync, GrpcClient.ListDatabases, effectiveSettings.ListDatabasesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCreateDatabase = clientHelper.BuildApiCall( GrpcClient.CreateDatabaseAsync, GrpcClient.CreateDatabase, effectiveSettings.CreateDatabaseSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetDatabase = clientHelper.BuildApiCall( GrpcClient.GetDatabaseAsync, GrpcClient.GetDatabase, effectiveSettings.GetDatabaseSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateDatabaseDdl = clientHelper.BuildApiCall( GrpcClient.UpdateDatabaseDdlAsync, GrpcClient.UpdateDatabaseDdl, effectiveSettings.UpdateDatabaseDdlSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"database={request.Database}")); + .WithGoogleRequestParam("database", request => request.Database); _callDropDatabase = clientHelper.BuildApiCall( GrpcClient.DropDatabaseAsync, GrpcClient.DropDatabase, effectiveSettings.DropDatabaseSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"database={request.Database}")); + .WithGoogleRequestParam("database", request => request.Database); _callGetDatabaseDdl = clientHelper.BuildApiCall( GrpcClient.GetDatabaseDdlAsync, GrpcClient.GetDatabaseDdl, effectiveSettings.GetDatabaseDdlSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"database={request.Database}")); + .WithGoogleRequestParam("database", request => request.Database); _callSetIamPolicy = clientHelper.BuildApiCall( GrpcClient.SetIamPolicyAsync, GrpcClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callGetIamPolicy = clientHelper.BuildApiCall( GrpcClient.GetIamPolicyAsync, GrpcClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callTestIamPermissions = clientHelper.BuildApiCall( GrpcClient.TestIamPermissionsAsync, GrpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); Modify_ApiCall(ref _callListDatabases); Modify_ListDatabasesApiCall(ref _callListDatabases); Modify_ApiCall(ref _callCreateDatabase); diff --git a/apis/Google.Cloud.Spanner.Admin.Instance.V1/Google.Cloud.Spanner.Admin.Instance.V1/InstanceAdminClient.cs b/apis/Google.Cloud.Spanner.Admin.Instance.V1/Google.Cloud.Spanner.Admin.Instance.V1/InstanceAdminClient.cs index f1fc98944466..642653ace5ab 100644 --- a/apis/Google.Cloud.Spanner.Admin.Instance.V1/Google.Cloud.Spanner.Admin.Instance.V1/InstanceAdminClient.cs +++ b/apis/Google.Cloud.Spanner.Admin.Instance.V1/Google.Cloud.Spanner.Admin.Instance.V1/InstanceAdminClient.cs @@ -3075,34 +3075,34 @@ public InstanceAdminClientImpl(InstanceAdmin.InstanceAdminClient grpcClient, Ins grpcClient.CreateOperationsClient(), effectiveSettings.UpdateInstanceOperationsSettings); _callListInstanceConfigs = clientHelper.BuildApiCall( GrpcClient.ListInstanceConfigsAsync, GrpcClient.ListInstanceConfigs, effectiveSettings.ListInstanceConfigsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetInstanceConfig = clientHelper.BuildApiCall( GrpcClient.GetInstanceConfigAsync, GrpcClient.GetInstanceConfig, effectiveSettings.GetInstanceConfigSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListInstances = clientHelper.BuildApiCall( GrpcClient.ListInstancesAsync, GrpcClient.ListInstances, effectiveSettings.ListInstancesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetInstance = clientHelper.BuildApiCall( GrpcClient.GetInstanceAsync, GrpcClient.GetInstance, effectiveSettings.GetInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateInstance = clientHelper.BuildApiCall( GrpcClient.CreateInstanceAsync, GrpcClient.CreateInstance, effectiveSettings.CreateInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateInstance = clientHelper.BuildApiCall( GrpcClient.UpdateInstanceAsync, GrpcClient.UpdateInstance, effectiveSettings.UpdateInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"instance.name={request.Instance?.Name}")); + .WithGoogleRequestParam("instance.name", request => request.Instance?.Name); _callDeleteInstance = clientHelper.BuildApiCall( GrpcClient.DeleteInstanceAsync, GrpcClient.DeleteInstance, effectiveSettings.DeleteInstanceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSetIamPolicy = clientHelper.BuildApiCall( GrpcClient.SetIamPolicyAsync, GrpcClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callGetIamPolicy = clientHelper.BuildApiCall( GrpcClient.GetIamPolicyAsync, GrpcClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callTestIamPermissions = clientHelper.BuildApiCall( GrpcClient.TestIamPermissionsAsync, GrpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); Modify_ApiCall(ref _callListInstanceConfigs); Modify_ListInstanceConfigsApiCall(ref _callListInstanceConfigs); Modify_ApiCall(ref _callGetInstanceConfig); diff --git a/apis/Google.Cloud.Spanner.V1/Google.Cloud.Spanner.V1/SpannerClient.cs b/apis/Google.Cloud.Spanner.V1/Google.Cloud.Spanner.V1/SpannerClient.cs index d776e6889841..c939a7ed0ed8 100644 --- a/apis/Google.Cloud.Spanner.V1/Google.Cloud.Spanner.V1/SpannerClient.cs +++ b/apis/Google.Cloud.Spanner.V1/Google.Cloud.Spanner.V1/SpannerClient.cs @@ -3292,46 +3292,46 @@ public SpannerClientImpl(Spanner.SpannerClient grpcClient, SpannerSettings setti gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callCreateSession = clientHelper.BuildApiCall( GrpcClient.CreateSessionAsync, GrpcClient.CreateSession, effectiveSettings.CreateSessionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"database={request.Database}")); + .WithGoogleRequestParam("database", request => request.Database); _callGetSession = clientHelper.BuildApiCall( GrpcClient.GetSessionAsync, GrpcClient.GetSession, effectiveSettings.GetSessionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListSessions = clientHelper.BuildApiCall( GrpcClient.ListSessionsAsync, GrpcClient.ListSessions, effectiveSettings.ListSessionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"database={request.Database}")); + .WithGoogleRequestParam("database", request => request.Database); _callDeleteSession = clientHelper.BuildApiCall( GrpcClient.DeleteSessionAsync, GrpcClient.DeleteSession, effectiveSettings.DeleteSessionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callExecuteSql = clientHelper.BuildApiCall( GrpcClient.ExecuteSqlAsync, GrpcClient.ExecuteSql, effectiveSettings.ExecuteSqlSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session={request.Session}")); + .WithGoogleRequestParam("session", request => request.Session); _callExecuteStreamingSql = clientHelper.BuildApiCall( GrpcClient.ExecuteStreamingSql, effectiveSettings.ExecuteStreamingSqlSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session={request.Session}")); + .WithGoogleRequestParam("session", request => request.Session); _callExecuteBatchDml = clientHelper.BuildApiCall( GrpcClient.ExecuteBatchDmlAsync, GrpcClient.ExecuteBatchDml, effectiveSettings.ExecuteBatchDmlSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session={request.Session}")); + .WithGoogleRequestParam("session", request => request.Session); _callRead = clientHelper.BuildApiCall( GrpcClient.ReadAsync, GrpcClient.Read, effectiveSettings.ReadSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session={request.Session}")); + .WithGoogleRequestParam("session", request => request.Session); _callStreamingRead = clientHelper.BuildApiCall( GrpcClient.StreamingRead, effectiveSettings.StreamingReadSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session={request.Session}")); + .WithGoogleRequestParam("session", request => request.Session); _callBeginTransaction = clientHelper.BuildApiCall( GrpcClient.BeginTransactionAsync, GrpcClient.BeginTransaction, effectiveSettings.BeginTransactionSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session={request.Session}")); + .WithGoogleRequestParam("session", request => request.Session); _callCommit = clientHelper.BuildApiCall( GrpcClient.CommitAsync, GrpcClient.Commit, effectiveSettings.CommitSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session={request.Session}")); + .WithGoogleRequestParam("session", request => request.Session); _callRollback = clientHelper.BuildApiCall( GrpcClient.RollbackAsync, GrpcClient.Rollback, effectiveSettings.RollbackSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session={request.Session}")); + .WithGoogleRequestParam("session", request => request.Session); _callPartitionQuery = clientHelper.BuildApiCall( GrpcClient.PartitionQueryAsync, GrpcClient.PartitionQuery, effectiveSettings.PartitionQuerySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session={request.Session}")); + .WithGoogleRequestParam("session", request => request.Session); _callPartitionRead = clientHelper.BuildApiCall( GrpcClient.PartitionReadAsync, GrpcClient.PartitionRead, effectiveSettings.PartitionReadSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session={request.Session}")); + .WithGoogleRequestParam("session", request => request.Session); Modify_ApiCall(ref _callCreateSession); Modify_CreateSessionApiCall(ref _callCreateSession); Modify_ApiCall(ref _callGetSession); diff --git a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/ApplicationServiceClient.cs b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/ApplicationServiceClient.cs index 8ec91a60b320..04200664b39d 100644 --- a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/ApplicationServiceClient.cs +++ b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/ApplicationServiceClient.cs @@ -1445,19 +1445,19 @@ public ApplicationServiceClientImpl(ApplicationService.ApplicationServiceClient gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callCreateApplication = clientHelper.BuildApiCall( GrpcClient.CreateApplicationAsync, GrpcClient.CreateApplication, effectiveSettings.CreateApplicationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetApplication = clientHelper.BuildApiCall( GrpcClient.GetApplicationAsync, GrpcClient.GetApplication, effectiveSettings.GetApplicationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateApplication = clientHelper.BuildApiCall( GrpcClient.UpdateApplicationAsync, GrpcClient.UpdateApplication, effectiveSettings.UpdateApplicationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"application.name={request.Application?.Name}")); + .WithGoogleRequestParam("application.name", request => request.Application?.Name); _callDeleteApplication = clientHelper.BuildApiCall( GrpcClient.DeleteApplicationAsync, GrpcClient.DeleteApplication, effectiveSettings.DeleteApplicationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListApplications = clientHelper.BuildApiCall( GrpcClient.ListApplicationsAsync, GrpcClient.ListApplications, effectiveSettings.ListApplicationsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callCreateApplication); Modify_CreateApplicationApiCall(ref _callCreateApplication); Modify_ApiCall(ref _callGetApplication); diff --git a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/CompanyServiceClient.cs b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/CompanyServiceClient.cs index bc2be8f559f8..67f33f7f019b 100644 --- a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/CompanyServiceClient.cs +++ b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/CompanyServiceClient.cs @@ -1488,19 +1488,19 @@ public CompanyServiceClientImpl(CompanyService.CompanyServiceClient grpcClient, gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callCreateCompany = clientHelper.BuildApiCall( GrpcClient.CreateCompanyAsync, GrpcClient.CreateCompany, effectiveSettings.CreateCompanySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetCompany = clientHelper.BuildApiCall( GrpcClient.GetCompanyAsync, GrpcClient.GetCompany, effectiveSettings.GetCompanySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateCompany = clientHelper.BuildApiCall( GrpcClient.UpdateCompanyAsync, GrpcClient.UpdateCompany, effectiveSettings.UpdateCompanySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"company.name={request.Company?.Name}")); + .WithGoogleRequestParam("company.name", request => request.Company?.Name); _callDeleteCompany = clientHelper.BuildApiCall( GrpcClient.DeleteCompanyAsync, GrpcClient.DeleteCompany, effectiveSettings.DeleteCompanySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListCompanies = clientHelper.BuildApiCall( GrpcClient.ListCompaniesAsync, GrpcClient.ListCompanies, effectiveSettings.ListCompaniesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callCreateCompany); Modify_CreateCompanyApiCall(ref _callCreateCompany); Modify_ApiCall(ref _callGetCompany); diff --git a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/CompletionClient.cs b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/CompletionClient.cs index 64c42761d3c4..6392d8cee34f 100644 --- a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/CompletionClient.cs +++ b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/CompletionClient.cs @@ -430,7 +430,7 @@ public CompletionClientImpl(Completion.CompletionClient grpcClient, CompletionSe gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callCompleteQuery = clientHelper.BuildApiCall( GrpcClient.CompleteQueryAsync, GrpcClient.CompleteQuery, effectiveSettings.CompleteQuerySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callCompleteQuery); Modify_CompleteQueryApiCall(ref _callCompleteQuery); OnConstruction(grpcClient, effectiveSettings, clientHelper); diff --git a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/EventServiceClient.cs b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/EventServiceClient.cs index 83522c44f064..8f4f91d7d204 100644 --- a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/EventServiceClient.cs +++ b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/EventServiceClient.cs @@ -672,7 +672,7 @@ public EventServiceClientImpl(EventService.EventServiceClient grpcClient, EventS gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callCreateClientEvent = clientHelper.BuildApiCall( GrpcClient.CreateClientEventAsync, GrpcClient.CreateClientEvent, effectiveSettings.CreateClientEventSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callCreateClientEvent); Modify_CreateClientEventApiCall(ref _callCreateClientEvent); OnConstruction(grpcClient, effectiveSettings, clientHelper); diff --git a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/JobServiceClient.cs b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/JobServiceClient.cs index aafa6f848fa8..f464ad5d1bd7 100644 --- a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/JobServiceClient.cs +++ b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/JobServiceClient.cs @@ -2582,34 +2582,34 @@ public JobServiceClientImpl(JobService.JobServiceClient grpcClient, JobServiceSe grpcClient.CreateOperationsClient(), effectiveSettings.BatchUpdateJobsOperationsSettings); _callCreateJob = clientHelper.BuildApiCall( GrpcClient.CreateJobAsync, GrpcClient.CreateJob, effectiveSettings.CreateJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetJob = clientHelper.BuildApiCall( GrpcClient.GetJobAsync, GrpcClient.GetJob, effectiveSettings.GetJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateJob = clientHelper.BuildApiCall( GrpcClient.UpdateJobAsync, GrpcClient.UpdateJob, effectiveSettings.UpdateJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"job.name={request.Job?.Name}")); + .WithGoogleRequestParam("job.name", request => request.Job?.Name); _callDeleteJob = clientHelper.BuildApiCall( GrpcClient.DeleteJobAsync, GrpcClient.DeleteJob, effectiveSettings.DeleteJobSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListJobs = clientHelper.BuildApiCall( GrpcClient.ListJobsAsync, GrpcClient.ListJobs, effectiveSettings.ListJobsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchDeleteJobs = clientHelper.BuildApiCall( GrpcClient.BatchDeleteJobsAsync, GrpcClient.BatchDeleteJobs, effectiveSettings.BatchDeleteJobsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callSearchJobs = clientHelper.BuildApiCall( GrpcClient.SearchJobsAsync, GrpcClient.SearchJobs, effectiveSettings.SearchJobsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callSearchJobsForAlert = clientHelper.BuildApiCall( GrpcClient.SearchJobsForAlertAsync, GrpcClient.SearchJobsForAlert, effectiveSettings.SearchJobsForAlertSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchCreateJobs = clientHelper.BuildApiCall( GrpcClient.BatchCreateJobsAsync, GrpcClient.BatchCreateJobs, effectiveSettings.BatchCreateJobsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchUpdateJobs = clientHelper.BuildApiCall( GrpcClient.BatchUpdateJobsAsync, GrpcClient.BatchUpdateJobs, effectiveSettings.BatchUpdateJobsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callCreateJob); Modify_CreateJobApiCall(ref _callCreateJob); Modify_ApiCall(ref _callGetJob); diff --git a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/ProfileServiceClient.cs b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/ProfileServiceClient.cs index 54e5913d61b4..b7643ac9c2c2 100644 --- a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/ProfileServiceClient.cs +++ b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/ProfileServiceClient.cs @@ -1515,22 +1515,22 @@ public ProfileServiceClientImpl(ProfileService.ProfileServiceClient grpcClient, gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListProfiles = clientHelper.BuildApiCall( GrpcClient.ListProfilesAsync, GrpcClient.ListProfiles, effectiveSettings.ListProfilesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callCreateProfile = clientHelper.BuildApiCall( GrpcClient.CreateProfileAsync, GrpcClient.CreateProfile, effectiveSettings.CreateProfileSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetProfile = clientHelper.BuildApiCall( GrpcClient.GetProfileAsync, GrpcClient.GetProfile, effectiveSettings.GetProfileSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateProfile = clientHelper.BuildApiCall( GrpcClient.UpdateProfileAsync, GrpcClient.UpdateProfile, effectiveSettings.UpdateProfileSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"profile.name={request.Profile?.Name}")); + .WithGoogleRequestParam("profile.name", request => request.Profile?.Name); _callDeleteProfile = clientHelper.BuildApiCall( GrpcClient.DeleteProfileAsync, GrpcClient.DeleteProfile, effectiveSettings.DeleteProfileSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callSearchProfiles = clientHelper.BuildApiCall( GrpcClient.SearchProfilesAsync, GrpcClient.SearchProfiles, effectiveSettings.SearchProfilesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callListProfiles); Modify_ListProfilesApiCall(ref _callListProfiles); Modify_ApiCall(ref _callCreateProfile); diff --git a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/TenantServiceClient.cs b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/TenantServiceClient.cs index 8755f0f1764a..1bd133e66c00 100644 --- a/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/TenantServiceClient.cs +++ b/apis/Google.Cloud.Talent.V4Beta1/Google.Cloud.Talent.V4Beta1/TenantServiceClient.cs @@ -1402,19 +1402,19 @@ public TenantServiceClientImpl(TenantService.TenantServiceClient grpcClient, Ten gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callCreateTenant = clientHelper.BuildApiCall( GrpcClient.CreateTenantAsync, GrpcClient.CreateTenant, effectiveSettings.CreateTenantSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetTenant = clientHelper.BuildApiCall( GrpcClient.GetTenantAsync, GrpcClient.GetTenant, effectiveSettings.GetTenantSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateTenant = clientHelper.BuildApiCall( GrpcClient.UpdateTenantAsync, GrpcClient.UpdateTenant, effectiveSettings.UpdateTenantSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"tenant.name={request.Tenant?.Name}")); + .WithGoogleRequestParam("tenant.name", request => request.Tenant?.Name); _callDeleteTenant = clientHelper.BuildApiCall( GrpcClient.DeleteTenantAsync, GrpcClient.DeleteTenant, effectiveSettings.DeleteTenantSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListTenants = clientHelper.BuildApiCall( GrpcClient.ListTenantsAsync, GrpcClient.ListTenants, effectiveSettings.ListTenantsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callCreateTenant); Modify_CreateTenantApiCall(ref _callCreateTenant); Modify_ApiCall(ref _callGetTenant); diff --git a/apis/Google.Cloud.Tasks.V2/Google.Cloud.Tasks.V2/CloudTasksClient.cs b/apis/Google.Cloud.Tasks.V2/Google.Cloud.Tasks.V2/CloudTasksClient.cs index 96400a2ed1dd..bf56c2b7789f 100644 --- a/apis/Google.Cloud.Tasks.V2/Google.Cloud.Tasks.V2/CloudTasksClient.cs +++ b/apis/Google.Cloud.Tasks.V2/Google.Cloud.Tasks.V2/CloudTasksClient.cs @@ -5308,52 +5308,52 @@ public CloudTasksClientImpl(CloudTasks.CloudTasksClient grpcClient, CloudTasksSe gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListQueues = clientHelper.BuildApiCall( GrpcClient.ListQueuesAsync, GrpcClient.ListQueues, effectiveSettings.ListQueuesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetQueue = clientHelper.BuildApiCall( GrpcClient.GetQueueAsync, GrpcClient.GetQueue, effectiveSettings.GetQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateQueue = clientHelper.BuildApiCall( GrpcClient.CreateQueueAsync, GrpcClient.CreateQueue, effectiveSettings.CreateQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateQueue = clientHelper.BuildApiCall( GrpcClient.UpdateQueueAsync, GrpcClient.UpdateQueue, effectiveSettings.UpdateQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"queue.name={request.Queue?.Name}")); + .WithGoogleRequestParam("queue.name", request => request.Queue?.Name); _callDeleteQueue = clientHelper.BuildApiCall( GrpcClient.DeleteQueueAsync, GrpcClient.DeleteQueue, effectiveSettings.DeleteQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callPurgeQueue = clientHelper.BuildApiCall( GrpcClient.PurgeQueueAsync, GrpcClient.PurgeQueue, effectiveSettings.PurgeQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callPauseQueue = clientHelper.BuildApiCall( GrpcClient.PauseQueueAsync, GrpcClient.PauseQueue, effectiveSettings.PauseQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callResumeQueue = clientHelper.BuildApiCall( GrpcClient.ResumeQueueAsync, GrpcClient.ResumeQueue, effectiveSettings.ResumeQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetIamPolicy = clientHelper.BuildApiCall( GrpcClient.GetIamPolicyAsync, GrpcClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callSetIamPolicy = clientHelper.BuildApiCall( GrpcClient.SetIamPolicyAsync, GrpcClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callTestIamPermissions = clientHelper.BuildApiCall( GrpcClient.TestIamPermissionsAsync, GrpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callListTasks = clientHelper.BuildApiCall( GrpcClient.ListTasksAsync, GrpcClient.ListTasks, effectiveSettings.ListTasksSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetTask = clientHelper.BuildApiCall( GrpcClient.GetTaskAsync, GrpcClient.GetTask, effectiveSettings.GetTaskSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateTask = clientHelper.BuildApiCall( GrpcClient.CreateTaskAsync, GrpcClient.CreateTask, effectiveSettings.CreateTaskSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteTask = clientHelper.BuildApiCall( GrpcClient.DeleteTaskAsync, GrpcClient.DeleteTask, effectiveSettings.DeleteTaskSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callRunTask = clientHelper.BuildApiCall( GrpcClient.RunTaskAsync, GrpcClient.RunTask, effectiveSettings.RunTaskSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callListQueues); Modify_ListQueuesApiCall(ref _callListQueues); Modify_ApiCall(ref _callGetQueue); diff --git a/apis/Google.Cloud.Tasks.V2Beta3/Google.Cloud.Tasks.V2Beta3/CloudTasksClient.cs b/apis/Google.Cloud.Tasks.V2Beta3/Google.Cloud.Tasks.V2Beta3/CloudTasksClient.cs index 644b9a9aadb0..aaeb3353865c 100644 --- a/apis/Google.Cloud.Tasks.V2Beta3/Google.Cloud.Tasks.V2Beta3/CloudTasksClient.cs +++ b/apis/Google.Cloud.Tasks.V2Beta3/Google.Cloud.Tasks.V2Beta3/CloudTasksClient.cs @@ -5308,52 +5308,52 @@ public CloudTasksClientImpl(CloudTasks.CloudTasksClient grpcClient, CloudTasksSe gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callListQueues = clientHelper.BuildApiCall( GrpcClient.ListQueuesAsync, GrpcClient.ListQueues, effectiveSettings.ListQueuesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetQueue = clientHelper.BuildApiCall( GrpcClient.GetQueueAsync, GrpcClient.GetQueue, effectiveSettings.GetQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateQueue = clientHelper.BuildApiCall( GrpcClient.CreateQueueAsync, GrpcClient.CreateQueue, effectiveSettings.CreateQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateQueue = clientHelper.BuildApiCall( GrpcClient.UpdateQueueAsync, GrpcClient.UpdateQueue, effectiveSettings.UpdateQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"queue.name={request.Queue?.Name}")); + .WithGoogleRequestParam("queue.name", request => request.Queue?.Name); _callDeleteQueue = clientHelper.BuildApiCall( GrpcClient.DeleteQueueAsync, GrpcClient.DeleteQueue, effectiveSettings.DeleteQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callPurgeQueue = clientHelper.BuildApiCall( GrpcClient.PurgeQueueAsync, GrpcClient.PurgeQueue, effectiveSettings.PurgeQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callPauseQueue = clientHelper.BuildApiCall( GrpcClient.PauseQueueAsync, GrpcClient.PauseQueue, effectiveSettings.PauseQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callResumeQueue = clientHelper.BuildApiCall( GrpcClient.ResumeQueueAsync, GrpcClient.ResumeQueue, effectiveSettings.ResumeQueueSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetIamPolicy = clientHelper.BuildApiCall( GrpcClient.GetIamPolicyAsync, GrpcClient.GetIamPolicy, effectiveSettings.GetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callSetIamPolicy = clientHelper.BuildApiCall( GrpcClient.SetIamPolicyAsync, GrpcClient.SetIamPolicy, effectiveSettings.SetIamPolicySettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callTestIamPermissions = clientHelper.BuildApiCall( GrpcClient.TestIamPermissionsAsync, GrpcClient.TestIamPermissions, effectiveSettings.TestIamPermissionsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"resource={request.Resource}")); + .WithGoogleRequestParam("resource", request => request.Resource); _callListTasks = clientHelper.BuildApiCall( GrpcClient.ListTasksAsync, GrpcClient.ListTasks, effectiveSettings.ListTasksSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetTask = clientHelper.BuildApiCall( GrpcClient.GetTaskAsync, GrpcClient.GetTask, effectiveSettings.GetTaskSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateTask = clientHelper.BuildApiCall( GrpcClient.CreateTaskAsync, GrpcClient.CreateTask, effectiveSettings.CreateTaskSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteTask = clientHelper.BuildApiCall( GrpcClient.DeleteTaskAsync, GrpcClient.DeleteTask, effectiveSettings.DeleteTaskSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callRunTask = clientHelper.BuildApiCall( GrpcClient.RunTaskAsync, GrpcClient.RunTask, effectiveSettings.RunTaskSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callListQueues); Modify_ListQueuesApiCall(ref _callListQueues); Modify_ApiCall(ref _callGetQueue); diff --git a/apis/Google.Cloud.Trace.V1/Google.Cloud.Trace.V1/TraceServiceClient.cs b/apis/Google.Cloud.Trace.V1/Google.Cloud.Trace.V1/TraceServiceClient.cs index e326660e9120..6a595df68878 100644 --- a/apis/Google.Cloud.Trace.V1/Google.Cloud.Trace.V1/TraceServiceClient.cs +++ b/apis/Google.Cloud.Trace.V1/Google.Cloud.Trace.V1/TraceServiceClient.cs @@ -821,12 +821,12 @@ public TraceServiceClientImpl(TraceService.TraceServiceClient grpcClient, TraceS gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callPatchTraces = clientHelper.BuildApiCall( GrpcClient.PatchTracesAsync, GrpcClient.PatchTraces, effectiveSettings.PatchTracesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_id={request.ProjectId}")); + .WithGoogleRequestParam("project_id", request => request.ProjectId); _callGetTrace = clientHelper.BuildApiCall( GrpcClient.GetTraceAsync, GrpcClient.GetTrace, effectiveSettings.GetTraceSettings); _callListTraces = clientHelper.BuildApiCall( GrpcClient.ListTracesAsync, GrpcClient.ListTraces, effectiveSettings.ListTracesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_id={request.ProjectId}")); + .WithGoogleRequestParam("project_id", request => request.ProjectId); Modify_ApiCall(ref _callPatchTraces); Modify_PatchTracesApiCall(ref _callPatchTraces); Modify_ApiCall(ref _callGetTrace); diff --git a/apis/Google.Cloud.Trace.V2/Google.Cloud.Trace.V2/TraceServiceClient.cs b/apis/Google.Cloud.Trace.V2/Google.Cloud.Trace.V2/TraceServiceClient.cs index 5cf392659610..9fd9ce0996b2 100644 --- a/apis/Google.Cloud.Trace.V2/Google.Cloud.Trace.V2/TraceServiceClient.cs +++ b/apis/Google.Cloud.Trace.V2/Google.Cloud.Trace.V2/TraceServiceClient.cs @@ -677,10 +677,10 @@ public TraceServiceClientImpl(TraceService.TraceServiceClient grpcClient, TraceS gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callBatchWriteSpans = clientHelper.BuildApiCall( GrpcClient.BatchWriteSpansAsync, GrpcClient.BatchWriteSpans, effectiveSettings.BatchWriteSpansSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateSpan = clientHelper.BuildApiCall( GrpcClient.CreateSpanAsync, GrpcClient.CreateSpan, effectiveSettings.CreateSpanSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callBatchWriteSpans); Modify_BatchWriteSpansApiCall(ref _callBatchWriteSpans); Modify_ApiCall(ref _callCreateSpan); diff --git a/apis/Google.Cloud.Vision.V1/Google.Cloud.Vision.V1/ProductSearchClient.cs b/apis/Google.Cloud.Vision.V1/Google.Cloud.Vision.V1/ProductSearchClient.cs index 90489341297f..53a61d73ee1f 100644 --- a/apis/Google.Cloud.Vision.V1/Google.Cloud.Vision.V1/ProductSearchClient.cs +++ b/apis/Google.Cloud.Vision.V1/Google.Cloud.Vision.V1/ProductSearchClient.cs @@ -5501,58 +5501,58 @@ public ProductSearchClientImpl(ProductSearch.ProductSearchClient grpcClient, Pro grpcClient.CreateOperationsClient(), effectiveSettings.ImportProductSetsOperationsSettings); _callCreateProductSet = clientHelper.BuildApiCall( GrpcClient.CreateProductSetAsync, GrpcClient.CreateProductSet, effectiveSettings.CreateProductSetSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListProductSets = clientHelper.BuildApiCall( GrpcClient.ListProductSetsAsync, GrpcClient.ListProductSets, effectiveSettings.ListProductSetsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetProductSet = clientHelper.BuildApiCall( GrpcClient.GetProductSetAsync, GrpcClient.GetProductSet, effectiveSettings.GetProductSetSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateProductSet = clientHelper.BuildApiCall( GrpcClient.UpdateProductSetAsync, GrpcClient.UpdateProductSet, effectiveSettings.UpdateProductSetSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"product_set.name={request.ProductSet?.Name}")); + .WithGoogleRequestParam("product_set.name", request => request.ProductSet?.Name); _callDeleteProductSet = clientHelper.BuildApiCall( GrpcClient.DeleteProductSetAsync, GrpcClient.DeleteProductSet, effectiveSettings.DeleteProductSetSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateProduct = clientHelper.BuildApiCall( GrpcClient.CreateProductAsync, GrpcClient.CreateProduct, effectiveSettings.CreateProductSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callListProducts = clientHelper.BuildApiCall( GrpcClient.ListProductsAsync, GrpcClient.ListProducts, effectiveSettings.ListProductsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetProduct = clientHelper.BuildApiCall( GrpcClient.GetProductAsync, GrpcClient.GetProduct, effectiveSettings.GetProductSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callUpdateProduct = clientHelper.BuildApiCall( GrpcClient.UpdateProductAsync, GrpcClient.UpdateProduct, effectiveSettings.UpdateProductSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"product.name={request.Product?.Name}")); + .WithGoogleRequestParam("product.name", request => request.Product?.Name); _callDeleteProduct = clientHelper.BuildApiCall( GrpcClient.DeleteProductAsync, GrpcClient.DeleteProduct, effectiveSettings.DeleteProductSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateReferenceImage = clientHelper.BuildApiCall( GrpcClient.CreateReferenceImageAsync, GrpcClient.CreateReferenceImage, effectiveSettings.CreateReferenceImageSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteReferenceImage = clientHelper.BuildApiCall( GrpcClient.DeleteReferenceImageAsync, GrpcClient.DeleteReferenceImage, effectiveSettings.DeleteReferenceImageSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListReferenceImages = clientHelper.BuildApiCall( GrpcClient.ListReferenceImagesAsync, GrpcClient.ListReferenceImages, effectiveSettings.ListReferenceImagesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callGetReferenceImage = clientHelper.BuildApiCall( GrpcClient.GetReferenceImageAsync, GrpcClient.GetReferenceImage, effectiveSettings.GetReferenceImageSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callAddProductToProductSet = clientHelper.BuildApiCall( GrpcClient.AddProductToProductSetAsync, GrpcClient.AddProductToProductSet, effectiveSettings.AddProductToProductSetSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callRemoveProductFromProductSet = clientHelper.BuildApiCall( GrpcClient.RemoveProductFromProductSetAsync, GrpcClient.RemoveProductFromProductSet, effectiveSettings.RemoveProductFromProductSetSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListProductsInProductSet = clientHelper.BuildApiCall( GrpcClient.ListProductsInProductSetAsync, GrpcClient.ListProductsInProductSet, effectiveSettings.ListProductsInProductSetSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callImportProductSets = clientHelper.BuildApiCall( GrpcClient.ImportProductSetsAsync, GrpcClient.ImportProductSets, effectiveSettings.ImportProductSetsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); Modify_ApiCall(ref _callCreateProductSet); Modify_CreateProductSetApiCall(ref _callCreateProductSet); Modify_ApiCall(ref _callListProductSets); diff --git a/apis/Google.LongRunning/Google.LongRunning/OperationsClient.cs b/apis/Google.LongRunning/Google.LongRunning/OperationsClient.cs index 2081a3c7c67a..1b3aab145fad 100644 --- a/apis/Google.LongRunning/Google.LongRunning/OperationsClient.cs +++ b/apis/Google.LongRunning/Google.LongRunning/OperationsClient.cs @@ -1033,16 +1033,16 @@ public OperationsClientImpl(Operations.OperationsClient grpcClient, OperationsSe gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callGetOperation = clientHelper.BuildApiCall( GrpcClient.GetOperationAsync, GrpcClient.GetOperation, effectiveSettings.GetOperationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListOperations = clientHelper.BuildApiCall( GrpcClient.ListOperationsAsync, GrpcClient.ListOperations, effectiveSettings.ListOperationsSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCancelOperation = clientHelper.BuildApiCall( GrpcClient.CancelOperationAsync, GrpcClient.CancelOperation, effectiveSettings.CancelOperationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callDeleteOperation = clientHelper.BuildApiCall( GrpcClient.DeleteOperationAsync, GrpcClient.DeleteOperation, effectiveSettings.DeleteOperationSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callGetOperation); Modify_GetOperationApiCall(ref _callGetOperation); Modify_ApiCall(ref _callListOperations); diff --git a/apis/Grafeas.V1/Grafeas.V1/GrafeasClient.cs b/apis/Grafeas.V1/Grafeas.V1/GrafeasClient.cs index 8f1b3d330e9d..99830e63d35e 100644 --- a/apis/Grafeas.V1/Grafeas.V1/GrafeasClient.cs +++ b/apis/Grafeas.V1/Grafeas.V1/GrafeasClient.cs @@ -3506,46 +3506,46 @@ public GrafeasClientImpl(Grafeas.GrafeasClient grpcClient, GrafeasSettings setti gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callGetOccurrence = clientHelper.BuildApiCall( GrpcClient.GetOccurrenceAsync, GrpcClient.GetOccurrence, effectiveSettings.GetOccurrenceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListOccurrences = clientHelper.BuildApiCall( GrpcClient.ListOccurrencesAsync, GrpcClient.ListOccurrences, effectiveSettings.ListOccurrencesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteOccurrence = clientHelper.BuildApiCall( GrpcClient.DeleteOccurrenceAsync, GrpcClient.DeleteOccurrence, effectiveSettings.DeleteOccurrenceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateOccurrence = clientHelper.BuildApiCall( GrpcClient.CreateOccurrenceAsync, GrpcClient.CreateOccurrence, effectiveSettings.CreateOccurrenceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchCreateOccurrences = clientHelper.BuildApiCall( GrpcClient.BatchCreateOccurrencesAsync, GrpcClient.BatchCreateOccurrences, effectiveSettings.BatchCreateOccurrencesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateOccurrence = clientHelper.BuildApiCall( GrpcClient.UpdateOccurrenceAsync, GrpcClient.UpdateOccurrence, effectiveSettings.UpdateOccurrenceSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetOccurrenceNote = clientHelper.BuildApiCall( GrpcClient.GetOccurrenceNoteAsync, GrpcClient.GetOccurrenceNote, effectiveSettings.GetOccurrenceNoteSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callGetNote = clientHelper.BuildApiCall( GrpcClient.GetNoteAsync, GrpcClient.GetNote, effectiveSettings.GetNoteSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListNotes = clientHelper.BuildApiCall( GrpcClient.ListNotesAsync, GrpcClient.ListNotes, effectiveSettings.ListNotesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callDeleteNote = clientHelper.BuildApiCall( GrpcClient.DeleteNoteAsync, GrpcClient.DeleteNote, effectiveSettings.DeleteNoteSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callCreateNote = clientHelper.BuildApiCall( GrpcClient.CreateNoteAsync, GrpcClient.CreateNote, effectiveSettings.CreateNoteSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callBatchCreateNotes = clientHelper.BuildApiCall( GrpcClient.BatchCreateNotesAsync, GrpcClient.BatchCreateNotes, effectiveSettings.BatchCreateNotesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}")); + .WithGoogleRequestParam("parent", request => request.Parent); _callUpdateNote = clientHelper.BuildApiCall( GrpcClient.UpdateNoteAsync, GrpcClient.UpdateNote, effectiveSettings.UpdateNoteSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); _callListNoteOccurrences = clientHelper.BuildApiCall( GrpcClient.ListNoteOccurrencesAsync, GrpcClient.ListNoteOccurrences, effectiveSettings.ListNoteOccurrencesSettings) - .WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}")); + .WithGoogleRequestParam("name", request => request.Name); Modify_ApiCall(ref _callGetOccurrence); Modify_GetOccurrenceApiCall(ref _callGetOccurrence); Modify_ApiCall(ref _callListOccurrences);