/// <summary>
        /// Constructs a client wrapper for the QuotaController service, with the specified gRPC client and settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">The base <see cref="QuotaControllerSettings"/> used within this client.</param>
        public QuotaControllerClientImpl(QuotaController.QuotaControllerClient grpcClient, QuotaControllerSettings settings)
        {
            GrpcClient = grpcClient;
            QuotaControllerSettings effectiveSettings = settings ?? QuotaControllerSettings.GetDefault();
            gaxgrpc::ClientHelper   clientHelper      = new gaxgrpc::ClientHelper(effectiveSettings);

            _callAllocateQuota = clientHelper.BuildApiCall <AllocateQuotaRequest, AllocateQuotaResponse>(grpcClient.AllocateQuotaAsync, grpcClient.AllocateQuota, effectiveSettings.AllocateQuotaSettings).WithGoogleRequestParam("service_name", request => request.ServiceName);
            Modify_ApiCall(ref _callAllocateQuota);
            Modify_AllocateQuotaApiCall(ref _callAllocateQuota);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
        /// <summary>
        /// Creates a <see cref="QuotaControllerClient"/> 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="QuotaControllerSettings"/>.</param>
        /// <returns>The created <see cref="QuotaControllerClient"/>.</returns>
        internal static QuotaControllerClient Create(grpccore::CallInvoker callInvoker, QuotaControllerSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            QuotaController.QuotaControllerClient grpcClient = new QuotaController.QuotaControllerClient(callInvoker);
            return(new QuotaControllerClientImpl(grpcClient, settings));
        }
 partial void OnConstruction(QuotaController.QuotaControllerClient grpcClient, QuotaControllerSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);