private CustomerUserAccessServiceSettings(CustomerUserAccessServiceSettings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     GetCustomerUserAccessSettings    = existing.GetCustomerUserAccessSettings;
     MutateCustomerUserAccessSettings = existing.MutateCustomerUserAccessSettings;
     OnCopy(existing);
 }
        /// <summary>
        /// Constructs a client wrapper for the CustomerUserAccessService service, with the specified gRPC client and
        /// settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">
        /// The base <see cref="CustomerUserAccessServiceSettings"/> used within this client.
        /// </param>
        public CustomerUserAccessServiceClientImpl(CustomerUserAccessService.CustomerUserAccessServiceClient grpcClient, CustomerUserAccessServiceSettings settings)
        {
            GrpcClient = grpcClient;
            CustomerUserAccessServiceSettings effectiveSettings = settings ?? CustomerUserAccessServiceSettings.GetDefault();
            gaxgrpc::ClientHelper             clientHelper      = new gaxgrpc::ClientHelper(effectiveSettings);

            _callGetCustomerUserAccess = clientHelper.BuildApiCall <GetCustomerUserAccessRequest, gagvr::CustomerUserAccess>(grpcClient.GetCustomerUserAccessAsync, grpcClient.GetCustomerUserAccess, effectiveSettings.GetCustomerUserAccessSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName);
            Modify_ApiCall(ref _callGetCustomerUserAccess);
            Modify_GetCustomerUserAccessApiCall(ref _callGetCustomerUserAccess);
            _callMutateCustomerUserAccess = clientHelper.BuildApiCall <MutateCustomerUserAccessRequest, MutateCustomerUserAccessResponse>(grpcClient.MutateCustomerUserAccessAsync, grpcClient.MutateCustomerUserAccess, effectiveSettings.MutateCustomerUserAccessSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId);
            Modify_ApiCall(ref _callMutateCustomerUserAccess);
            Modify_MutateCustomerUserAccessApiCall(ref _callMutateCustomerUserAccess);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnConstruction(CustomerUserAccessService.CustomerUserAccessServiceClient grpcClient, CustomerUserAccessServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
 partial void OnCopy(CustomerUserAccessServiceSettings existing);
        /// <summary>
        /// Creates a <see cref="CustomerUserAccessServiceClient"/> 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="CustomerUserAccessServiceSettings"/>.</param>
        /// <returns>The created <see cref="CustomerUserAccessServiceClient"/>.</returns>
        internal static CustomerUserAccessServiceClient Create(grpccore::CallInvoker callInvoker, CustomerUserAccessServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            CustomerUserAccessService.CustomerUserAccessServiceClient grpcClient = new CustomerUserAccessService.CustomerUserAccessServiceClient(callInvoker);
            return(new CustomerUserAccessServiceClientImpl(grpcClient, settings));
        }