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

            _callGetSmartCampaignSearchTermView = clientHelper.BuildApiCall <GetSmartCampaignSearchTermViewRequest, gagvr::SmartCampaignSearchTermView>(grpcClient.GetSmartCampaignSearchTermViewAsync, grpcClient.GetSmartCampaignSearchTermView, effectiveSettings.GetSmartCampaignSearchTermViewSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName);
            Modify_ApiCall(ref _callGetSmartCampaignSearchTermView);
            Modify_GetSmartCampaignSearchTermViewApiCall(ref _callGetSmartCampaignSearchTermView);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnConstruction(SmartCampaignSearchTermViewService.SmartCampaignSearchTermViewServiceClient grpcClient, SmartCampaignSearchTermViewServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
        /// <summary>
        /// Creates a <see cref="SmartCampaignSearchTermViewServiceClient"/> 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="SmartCampaignSearchTermViewServiceSettings"/>.</param>
        /// <returns>The created <see cref="SmartCampaignSearchTermViewServiceClient"/>.</returns>
        internal static SmartCampaignSearchTermViewServiceClient Create(grpccore::CallInvoker callInvoker, SmartCampaignSearchTermViewServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            SmartCampaignSearchTermViewService.SmartCampaignSearchTermViewServiceClient grpcClient = new SmartCampaignSearchTermViewService.SmartCampaignSearchTermViewServiceClient(callInvoker);
            return(new SmartCampaignSearchTermViewServiceClientImpl(grpcClient, settings));
        }