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

            _callMutateCampaignGroups = clientHelper.BuildApiCall <MutateCampaignGroupsRequest, MutateCampaignGroupsResponse>(grpcClient.MutateCampaignGroupsAsync, grpcClient.MutateCampaignGroups, effectiveSettings.MutateCampaignGroupsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId);
            Modify_ApiCall(ref _callMutateCampaignGroups);
            Modify_MutateCampaignGroupsApiCall(ref _callMutateCampaignGroups);
            OnConstruction(grpcClient, effectiveSettings, clientHelper);
        }
        /// <summary>
        /// Creates a <see cref="CampaignGroupServiceClient"/> 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="CampaignGroupServiceSettings"/>.</param>
        /// <returns>The created <see cref="CampaignGroupServiceClient"/>.</returns>
        internal static CampaignGroupServiceClient Create(grpccore::CallInvoker callInvoker, CampaignGroupServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            CampaignGroupService.CampaignGroupServiceClient grpcClient = new CampaignGroupService.CampaignGroupServiceClient(callInvoker);
            return(new CampaignGroupServiceClientImpl(grpcClient, settings));
        }
 partial void OnConstruction(CampaignGroupService.CampaignGroupServiceClient grpcClient, CampaignGroupServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper);