/// <summary>
        /// Creates a <see cref="SmartCampaignSettingServiceClient"/> 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="SmartCampaignSettingServiceSettings"/>.</param>
        /// <returns>The created <see cref="SmartCampaignSettingServiceClient"/>.</returns>
        internal static SmartCampaignSettingServiceClient Create(grpccore::CallInvoker callInvoker, SmartCampaignSettingServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            SmartCampaignSettingService.SmartCampaignSettingServiceClient grpcClient = new SmartCampaignSettingService.SmartCampaignSettingServiceClient(callInvoker);
            return(new SmartCampaignSettingServiceClientImpl(grpcClient, settings));
        }
        /// <summary>
        /// Constructs a client wrapper for the SmartCampaignSettingService service, with the specified gRPC client and
        /// settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">
        /// The base <see cref="SmartCampaignSettingServiceSettings"/> used within this client.
        /// </param>
        public SmartCampaignSettingServiceClientImpl(SmartCampaignSettingService.SmartCampaignSettingServiceClient grpcClient, SmartCampaignSettingServiceSettings settings)
        {
            GrpcClient = grpcClient;
            SmartCampaignSettingServiceSettings effectiveSettings = settings ?? SmartCampaignSettingServiceSettings.GetDefault();
            gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings);

            _callGetSmartCampaignSetting = clientHelper.BuildApiCall <GetSmartCampaignSettingRequest, gagvr::SmartCampaignSetting>(grpcClient.GetSmartCampaignSettingAsync, grpcClient.GetSmartCampaignSetting, effectiveSettings.GetSmartCampaignSettingSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName);
            Modify_ApiCall(ref _callGetSmartCampaignSetting);
            Modify_GetSmartCampaignSettingApiCall(ref _callGetSmartCampaignSetting);
            _callMutateSmartCampaignSettings = clientHelper.BuildApiCall <MutateSmartCampaignSettingsRequest, MutateSmartCampaignSettingsResponse>(grpcClient.MutateSmartCampaignSettingsAsync, grpcClient.MutateSmartCampaignSettings, effectiveSettings.MutateSmartCampaignSettingsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId);
            Modify_ApiCall(ref _callMutateSmartCampaignSettings);
            Modify_MutateSmartCampaignSettingsApiCall(ref _callMutateSmartCampaignSettings);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnConstruction(SmartCampaignSettingService.SmartCampaignSettingServiceClient grpcClient, SmartCampaignSettingServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);