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

            _callGetCustomerUserAccessInvitation = clientHelper.BuildApiCall <GetCustomerUserAccessInvitationRequest, gagvr::CustomerUserAccessInvitation>(grpcClient.GetCustomerUserAccessInvitationAsync, grpcClient.GetCustomerUserAccessInvitation, effectiveSettings.GetCustomerUserAccessInvitationSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName);
            Modify_ApiCall(ref _callGetCustomerUserAccessInvitation);
            Modify_GetCustomerUserAccessInvitationApiCall(ref _callGetCustomerUserAccessInvitation);
            _callMutateCustomerUserAccessInvitation = clientHelper.BuildApiCall <MutateCustomerUserAccessInvitationRequest, MutateCustomerUserAccessInvitationResponse>(grpcClient.MutateCustomerUserAccessInvitationAsync, grpcClient.MutateCustomerUserAccessInvitation, effectiveSettings.MutateCustomerUserAccessInvitationSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId);
            Modify_ApiCall(ref _callMutateCustomerUserAccessInvitation);
            Modify_MutateCustomerUserAccessInvitationApiCall(ref _callMutateCustomerUserAccessInvitation);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnConstruction(CustomerUserAccessInvitationService.CustomerUserAccessInvitationServiceClient grpcClient, CustomerUserAccessInvitationServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
 partial void OnCopy(CustomerUserAccessInvitationServiceSettings existing);
        /// <summary>
        /// Creates a <see cref="CustomerUserAccessInvitationServiceClient"/> 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="CustomerUserAccessInvitationServiceSettings"/>.</param>
        /// <returns>The created <see cref="CustomerUserAccessInvitationServiceClient"/>.</returns>
        internal static CustomerUserAccessInvitationServiceClient Create(grpccore::CallInvoker callInvoker, CustomerUserAccessInvitationServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            CustomerUserAccessInvitationService.CustomerUserAccessInvitationServiceClient grpcClient = new CustomerUserAccessInvitationService.CustomerUserAccessInvitationServiceClient(callInvoker);
            return(new CustomerUserAccessInvitationServiceClientImpl(grpcClient, settings));
        }