/// <summary> /// Constructs a client wrapper for the ReportErrorsService service, with the specified gRPC client and settings. /// </summary> /// <param name="grpcClient">The underlying gRPC client.</param> /// <param name="settings">The base <see cref="ReportErrorsServiceSettings"/> used within this client </param> public ReportErrorsServiceClientImpl(ReportErrorsService.ReportErrorsServiceClient grpcClient, ReportErrorsServiceSettings settings) { this.GrpcClient = grpcClient; ReportErrorsServiceSettings effectiveSettings = settings ?? ReportErrorsServiceSettings.GetDefault(); _clientHelper = new ClientHelper(effectiveSettings); _callReportErrorEvent = _clientHelper.BuildApiCall <ReportErrorEventRequest, ReportErrorEventResponse>( GrpcClient.ReportErrorEventAsync, GrpcClient.ReportErrorEvent, effectiveSettings.ReportErrorEventSettings); }
/// <summary> /// Constructs a client wrapper for the ReportErrorsService service, with the specified gRPC client and /// settings. /// </summary> /// <param name="grpcClient">The underlying gRPC client.</param> /// <param name="settings">The base <see cref="ReportErrorsServiceSettings"/> used within this client.</param> public ReportErrorsServiceClientImpl(ReportErrorsService.ReportErrorsServiceClient grpcClient, ReportErrorsServiceSettings settings) { GrpcClient = grpcClient; ReportErrorsServiceSettings effectiveSettings = settings ?? ReportErrorsServiceSettings.GetDefault(); gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callReportErrorEvent = clientHelper.BuildApiCall <ReportErrorEventRequest, ReportErrorEventResponse>(grpcClient.ReportErrorEventAsync, grpcClient.ReportErrorEvent, effectiveSettings.ReportErrorEventSettings).WithGoogleRequestParam("project_name", request => request.ProjectName); Modify_ApiCall(ref _callReportErrorEvent); Modify_ReportErrorEventApiCall(ref _callReportErrorEvent); OnConstruction(grpcClient, effectiveSettings, clientHelper); }
/// <summary> /// Constructs a client wrapper for the ReportErrorsService service, with the specified gRPC client and /// settings. /// </summary> /// <param name="grpcClient">The underlying gRPC client.</param> /// <param name="settings">The base <see cref="ReportErrorsServiceSettings"/> used within this client.</param> public ReportErrorsServiceClientImpl(ReportErrorsService.ReportErrorsServiceClient grpcClient, ReportErrorsServiceSettings settings) { GrpcClient = grpcClient; ReportErrorsServiceSettings effectiveSettings = settings ?? ReportErrorsServiceSettings.GetDefault(); gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callReportErrorEvent = clientHelper.BuildApiCall <ReportErrorEventRequest, ReportErrorEventResponse>(grpcClient.ReportErrorEventAsync, grpcClient.ReportErrorEvent, effectiveSettings.ReportErrorEventSettings).WithCallSettingsOverlay(request => gaxgrpc::CallSettings.FromHeader("x-goog-request-params", $"project_name={(sysnet::WebUtility.UrlEncode(request.ProjectName))}")); Modify_ApiCall(ref _callReportErrorEvent); Modify_ReportErrorEventApiCall(ref _callReportErrorEvent); OnConstruction(grpcClient, effectiveSettings, clientHelper); }