Skip to content

Commit

Permalink
Regenerate all clients with null conditional operator for resource paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Jun 19, 2019
1 parent a372125 commit 44d3d92
Show file tree
Hide file tree
Showing 31 changed files with 42 additions and 42 deletions.
Expand Up @@ -3349,7 +3349,7 @@ public DataTransferServiceClientImpl(DataTransferService.DataTransferServiceClie
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateTransferConfig = clientHelper.BuildApiCall<UpdateTransferConfigRequest, TransferConfig>(
GrpcClient.UpdateTransferConfigAsync, GrpcClient.UpdateTransferConfig, effectiveSettings.UpdateTransferConfigSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"transfer_config.name={request.TransferConfig.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"transfer_config.name={request.TransferConfig?.Name}"));
_callDeleteTransferConfig = clientHelper.BuildApiCall<DeleteTransferConfigRequest, pbwkt::Empty>(
GrpcClient.DeleteTransferConfigAsync, GrpcClient.DeleteTransferConfig, effectiveSettings.DeleteTransferConfigSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
Expand Down
Expand Up @@ -4351,7 +4351,7 @@ public BigtableInstanceAdminClientImpl(BigtableInstanceAdmin.BigtableInstanceAdm
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callPartialUpdateInstance = clientHelper.BuildApiCall<PartialUpdateInstanceRequest, lro::Operation>(
GrpcClient.PartialUpdateInstanceAsync, GrpcClient.PartialUpdateInstance, effectiveSettings.PartialUpdateInstanceSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"instance.name={request.Instance.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"instance.name={request.Instance?.Name}"));
_callDeleteInstance = clientHelper.BuildApiCall<DeleteInstanceRequest, pbwkt::Empty>(
GrpcClient.DeleteInstanceAsync, GrpcClient.DeleteInstance, effectiveSettings.DeleteInstanceSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
Expand Down Expand Up @@ -4381,7 +4381,7 @@ public BigtableInstanceAdminClientImpl(BigtableInstanceAdmin.BigtableInstanceAdm
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateAppProfile = clientHelper.BuildApiCall<UpdateAppProfileRequest, lro::Operation>(
GrpcClient.UpdateAppProfileAsync, GrpcClient.UpdateAppProfile, effectiveSettings.UpdateAppProfileSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"app_profile.name={request.AppProfile.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"app_profile.name={request.AppProfile?.Name}"));
_callDeleteAppProfile = clientHelper.BuildApiCall<DeleteAppProfileRequest, pbwkt::Empty>(
GrpcClient.DeleteAppProfileAsync, GrpcClient.DeleteAppProfile, effectiveSettings.DeleteAppProfileSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
Expand Down
Expand Up @@ -2553,7 +2553,7 @@ public WorkflowTemplateServiceClientImpl(WorkflowTemplateService.WorkflowTemplat
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateWorkflowTemplate = clientHelper.BuildApiCall<UpdateWorkflowTemplateRequest, WorkflowTemplate>(
GrpcClient.UpdateWorkflowTemplateAsync, GrpcClient.UpdateWorkflowTemplate, effectiveSettings.UpdateWorkflowTemplateSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"template.name={request.Template.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"template.name={request.Template?.Name}"));
_callListWorkflowTemplates = clientHelper.BuildApiCall<ListWorkflowTemplatesRequest, ListWorkflowTemplatesResponse>(
GrpcClient.ListWorkflowTemplatesAsync, GrpcClient.ListWorkflowTemplates, effectiveSettings.ListWorkflowTemplatesSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
Expand Down
Expand Up @@ -1586,7 +1586,7 @@ public ContextsClientImpl(Contexts.ContextsClient grpcClient, ContextsSettings s
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateContext = clientHelper.BuildApiCall<UpdateContextRequest, Context>(
GrpcClient.UpdateContextAsync, GrpcClient.UpdateContext, effectiveSettings.UpdateContextSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"context.name={request.Context.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"context.name={request.Context?.Name}"));
_callDeleteContext = clientHelper.BuildApiCall<DeleteContextRequest, pbwkt::Empty>(
GrpcClient.DeleteContextAsync, GrpcClient.DeleteContext, effectiveSettings.DeleteContextSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
Expand Down
Expand Up @@ -4103,7 +4103,7 @@ public EntityTypesClientImpl(EntityTypes.EntityTypesClient grpcClient, EntityTyp
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateEntityType = clientHelper.BuildApiCall<UpdateEntityTypeRequest, EntityType>(
GrpcClient.UpdateEntityTypeAsync, GrpcClient.UpdateEntityType, effectiveSettings.UpdateEntityTypeSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"entity_type.name={request.EntityType.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"entity_type.name={request.EntityType?.Name}"));
_callDeleteEntityType = clientHelper.BuildApiCall<DeleteEntityTypeRequest, pbwkt::Empty>(
GrpcClient.DeleteEntityTypeAsync, GrpcClient.DeleteEntityType, effectiveSettings.DeleteEntityTypeSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
Expand Down
Expand Up @@ -2520,7 +2520,7 @@ public IntentsClientImpl(Intents.IntentsClient grpcClient, IntentsSettings setti
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateIntent = clientHelper.BuildApiCall<UpdateIntentRequest, Intent>(
GrpcClient.UpdateIntentAsync, GrpcClient.UpdateIntent, effectiveSettings.UpdateIntentSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"intent.name={request.Intent.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"intent.name={request.Intent?.Name}"));
_callDeleteIntent = clientHelper.BuildApiCall<DeleteIntentRequest, pbwkt::Empty>(
GrpcClient.DeleteIntentAsync, GrpcClient.DeleteIntent, effectiveSettings.DeleteIntentSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
Expand Down
Expand Up @@ -1408,7 +1408,7 @@ public SessionEntityTypesClientImpl(SessionEntityTypes.SessionEntityTypesClient
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateSessionEntityType = clientHelper.BuildApiCall<UpdateSessionEntityTypeRequest, SessionEntityType>(
GrpcClient.UpdateSessionEntityTypeAsync, GrpcClient.UpdateSessionEntityType, effectiveSettings.UpdateSessionEntityTypeSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session_entity_type.name={request.SessionEntityType.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"session_entity_type.name={request.SessionEntityType?.Name}"));
_callDeleteSessionEntityType = clientHelper.BuildApiCall<DeleteSessionEntityTypeRequest, pbwkt::Empty>(
GrpcClient.DeleteSessionEntityTypeAsync, GrpcClient.DeleteSessionEntityType, effectiveSettings.DeleteSessionEntityTypeSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
Expand Down
Expand Up @@ -744,7 +744,7 @@ public ErrorGroupServiceClientImpl(ErrorGroupService.ErrorGroupServiceClient grp
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"group_name={request.GroupName}"));
_callUpdateGroup = clientHelper.BuildApiCall<UpdateGroupRequest, ErrorGroup>(
GrpcClient.UpdateGroupAsync, GrpcClient.UpdateGroup, effectiveSettings.UpdateGroupSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"group.name={request.Group.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"group.name={request.Group?.Name}"));
Modify_ApiCall(ref _callGetGroup);
Modify_GetGroupApiCall(ref _callGetGroup);
Modify_ApiCall(ref _callUpdateGroup);
Expand Down
Expand Up @@ -2444,7 +2444,7 @@ public FirestoreAdminClientImpl(FirestoreAdmin.FirestoreAdminClient grpcClient,
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateField = clientHelper.BuildApiCall<UpdateFieldRequest, lro::Operation>(
GrpcClient.UpdateFieldAsync, GrpcClient.UpdateField, effectiveSettings.UpdateFieldSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"field.name={request.Field.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"field.name={request.Field?.Name}"));
Modify_ApiCall(ref _callCreateIndex);
Modify_CreateIndexApiCall(ref _callCreateIndex);
Modify_ApiCall(ref _callListIndexes);
Expand Down
Expand Up @@ -1816,7 +1816,7 @@ public FirestoreClientImpl(Firestore.FirestoreClient grpcClient, FirestoreSettin
GrpcClient.CreateDocumentAsync, GrpcClient.CreateDocument, effectiveSettings.CreateDocumentSettings);
_callUpdateDocument = clientHelper.BuildApiCall<UpdateDocumentRequest, Document>(
GrpcClient.UpdateDocumentAsync, GrpcClient.UpdateDocument, effectiveSettings.UpdateDocumentSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"document.name={request.Document.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"document.name={request.Document?.Name}"));
_callDeleteDocument = clientHelper.BuildApiCall<DeleteDocumentRequest, pbwkt::Empty>(
GrpcClient.DeleteDocumentAsync, GrpcClient.DeleteDocument, effectiveSettings.DeleteDocumentSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
Expand Down
Expand Up @@ -7124,7 +7124,7 @@ public IncidentServiceClientImpl(IncidentService.IncidentServiceClient grpcClien
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateIncident = clientHelper.BuildApiCall<UpdateIncidentRequest, Incident>(
GrpcClient.UpdateIncidentAsync, GrpcClient.UpdateIncident, effectiveSettings.UpdateIncidentSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"incident.name={request.Incident.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"incident.name={request.Incident?.Name}"));
_callSearchSimilarIncidents = clientHelper.BuildApiCall<SearchSimilarIncidentsRequest, SearchSimilarIncidentsResponse>(
GrpcClient.SearchSimilarIncidentsAsync, GrpcClient.SearchSimilarIncidents, effectiveSettings.SearchSimilarIncidentsSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
Expand Down Expand Up @@ -7154,10 +7154,10 @@ public IncidentServiceClientImpl(IncidentService.IncidentServiceClient grpcClien
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
_callUpdateSignal = clientHelper.BuildApiCall<UpdateSignalRequest, Signal>(
GrpcClient.UpdateSignalAsync, GrpcClient.UpdateSignal, effectiveSettings.UpdateSignalSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"signal.name={request.Signal.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"signal.name={request.Signal?.Name}"));
_callEscalateIncident = clientHelper.BuildApiCall<EscalateIncidentRequest, EscalateIncidentResponse>(
GrpcClient.EscalateIncidentAsync, GrpcClient.EscalateIncident, effectiveSettings.EscalateIncidentSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"incident.name={request.Incident.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"incident.name={request.Incident?.Name}"));
_callCreateArtifact = clientHelper.BuildApiCall<CreateArtifactRequest, Artifact>(
GrpcClient.CreateArtifactAsync, GrpcClient.CreateArtifact, effectiveSettings.CreateArtifactSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
Expand All @@ -7166,7 +7166,7 @@ public IncidentServiceClientImpl(IncidentService.IncidentServiceClient grpcClien
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateArtifact = clientHelper.BuildApiCall<UpdateArtifactRequest, Artifact>(
GrpcClient.UpdateArtifactAsync, GrpcClient.UpdateArtifact, effectiveSettings.UpdateArtifactSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"artifact.name={request.Artifact.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"artifact.name={request.Artifact?.Name}"));
_callDeleteArtifact = clientHelper.BuildApiCall<DeleteArtifactRequest, pbwkt::Empty>(
GrpcClient.DeleteArtifactAsync, GrpcClient.DeleteArtifact, effectiveSettings.DeleteArtifactSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
Expand All @@ -7178,7 +7178,7 @@ public IncidentServiceClientImpl(IncidentService.IncidentServiceClient grpcClien
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateSubscription = clientHelper.BuildApiCall<UpdateSubscriptionRequest, Subscription>(
GrpcClient.UpdateSubscriptionAsync, GrpcClient.UpdateSubscription, effectiveSettings.UpdateSubscriptionSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"subscription.name={request.Subscription.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"subscription.name={request.Subscription?.Name}"));
_callListSubscriptions = clientHelper.BuildApiCall<ListSubscriptionsRequest, ListSubscriptionsResponse>(
GrpcClient.ListSubscriptionsAsync, GrpcClient.ListSubscriptions, effectiveSettings.ListSubscriptionsSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
Expand Down
Expand Up @@ -6662,10 +6662,10 @@ public KeyManagementServiceClientImpl(KeyManagementService.KeyManagementServiceC
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"parent={request.Parent}"));
_callUpdateCryptoKey = clientHelper.BuildApiCall<UpdateCryptoKeyRequest, CryptoKey>(
GrpcClient.UpdateCryptoKeyAsync, GrpcClient.UpdateCryptoKey, effectiveSettings.UpdateCryptoKeySettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"crypto_key.name={request.CryptoKey.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"crypto_key.name={request.CryptoKey?.Name}"));
_callUpdateCryptoKeyVersion = clientHelper.BuildApiCall<UpdateCryptoKeyVersionRequest, CryptoKeyVersion>(
GrpcClient.UpdateCryptoKeyVersionAsync, GrpcClient.UpdateCryptoKeyVersion, effectiveSettings.UpdateCryptoKeyVersionSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"crypto_key_version.name={request.CryptoKeyVersion.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"crypto_key_version.name={request.CryptoKeyVersion?.Name}"));
_callEncrypt = clientHelper.BuildApiCall<EncryptRequest, EncryptResponse>(
GrpcClient.EncryptAsync, GrpcClient.Encrypt, effectiveSettings.EncryptSettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
Expand Down
Expand Up @@ -1572,7 +1572,7 @@ public AlertPolicyServiceClientImpl(AlertPolicyService.AlertPolicyServiceClient
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"name={request.Name}"));
_callUpdateAlertPolicy = clientHelper.BuildApiCall<UpdateAlertPolicyRequest, AlertPolicy>(
GrpcClient.UpdateAlertPolicyAsync, GrpcClient.UpdateAlertPolicy, effectiveSettings.UpdateAlertPolicySettings)
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"alert_policy.name={request.AlertPolicy.Name}"));
.WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"alert_policy.name={request.AlertPolicy?.Name}"));
Modify_ApiCall(ref _callListAlertPolicies);
Modify_ListAlertPoliciesApiCall(ref _callListAlertPolicies);
Modify_ApiCall(ref _callGetAlertPolicy);
Expand Down

0 comments on commit 44d3d92

Please sign in to comment.