/// <summary> /// Constructs a client wrapper for the LifeEventService service, with the specified gRPC client and settings. /// </summary> /// <param name="grpcClient">The underlying gRPC client.</param> /// <param name="settings">The base <see cref="LifeEventServiceSettings"/> used within this client.</param> public LifeEventServiceClientImpl(LifeEventService.LifeEventServiceClient grpcClient, LifeEventServiceSettings settings) { GrpcClient = grpcClient; LifeEventServiceSettings effectiveSettings = settings ?? LifeEventServiceSettings.GetDefault(); gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings); _callGetLifeEvent = clientHelper.BuildApiCall <GetLifeEventRequest, gagvr::LifeEvent>(grpcClient.GetLifeEventAsync, grpcClient.GetLifeEvent, effectiveSettings.GetLifeEventSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); Modify_ApiCall(ref _callGetLifeEvent); Modify_GetLifeEventApiCall(ref _callGetLifeEvent); OnConstruction(grpcClient, effectiveSettings, clientHelper); }