/// <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);
        }
 partial void OnCopy(LifeEventServiceSettings existing);
 private LifeEventServiceSettings(LifeEventServiceSettings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     GetLifeEventSettings = existing.GetLifeEventSettings;
     OnCopy(existing);
 }
 partial void OnConstruction(LifeEventService.LifeEventServiceClient grpcClient, LifeEventServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
        /// <summary>
        /// Creates a <see cref="LifeEventServiceClient"/> which uses the specified call invoker for remote operations.
        /// </summary>
        /// <param name="callInvoker">
        /// The <see cref="grpccore::CallInvoker"/> for remote operations. Must not be null.
        /// </param>
        /// <param name="settings">Optional <see cref="LifeEventServiceSettings"/>.</param>
        /// <returns>The created <see cref="LifeEventServiceClient"/>.</returns>
        internal static LifeEventServiceClient Create(grpccore::CallInvoker callInvoker, LifeEventServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            LifeEventService.LifeEventServiceClient grpcClient = new LifeEventService.LifeEventServiceClient(callInvoker);
            return(new LifeEventServiceClientImpl(grpcClient, settings));
        }