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

            _callGetKeywordThemeConstant = clientHelper.BuildApiCall <GetKeywordThemeConstantRequest, gagvr::KeywordThemeConstant>(grpcClient.GetKeywordThemeConstantAsync, grpcClient.GetKeywordThemeConstant, effectiveSettings.GetKeywordThemeConstantSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName);
            Modify_ApiCall(ref _callGetKeywordThemeConstant);
            Modify_GetKeywordThemeConstantApiCall(ref _callGetKeywordThemeConstant);
            _callSuggestKeywordThemeConstants = clientHelper.BuildApiCall <SuggestKeywordThemeConstantsRequest, SuggestKeywordThemeConstantsResponse>(grpcClient.SuggestKeywordThemeConstantsAsync, grpcClient.SuggestKeywordThemeConstants, effectiveSettings.SuggestKeywordThemeConstantsSettings);
            Modify_ApiCall(ref _callSuggestKeywordThemeConstants);
            Modify_SuggestKeywordThemeConstantsApiCall(ref _callSuggestKeywordThemeConstants);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
 partial void OnCopy(KeywordThemeConstantServiceSettings existing);
 partial void OnConstruction(KeywordThemeConstantService.KeywordThemeConstantServiceClient grpcClient, KeywordThemeConstantServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);
        /// <summary>
        /// Creates a <see cref="KeywordThemeConstantServiceClient"/> 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="KeywordThemeConstantServiceSettings"/>.</param>
        /// <returns>The created <see cref="KeywordThemeConstantServiceClient"/>.</returns>
        internal static KeywordThemeConstantServiceClient Create(grpccore::CallInvoker callInvoker, KeywordThemeConstantServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            KeywordThemeConstantService.KeywordThemeConstantServiceClient grpcClient = new KeywordThemeConstantService.KeywordThemeConstantServiceClient(callInvoker);
            return(new KeywordThemeConstantServiceClientImpl(grpcClient, settings));
        }