private ReachPlanServiceSettings(ReachPlanServiceSettings existing) : base(existing)
 {
     gax::GaxPreconditions.CheckNotNull(existing, nameof(existing));
     ListPlannableLocationsSettings  = existing.ListPlannableLocationsSettings;
     ListPlannableProductsSettings   = existing.ListPlannableProductsSettings;
     GenerateProductMixIdeasSettings = existing.GenerateProductMixIdeasSettings;
     GenerateReachForecastSettings   = existing.GenerateReachForecastSettings;
     OnCopy(existing);
 }
 partial void OnCopy(ReachPlanServiceSettings existing);
        /// <summary>
        /// Creates a <see cref="ReachPlanServiceClient"/> 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="ReachPlanServiceSettings"/>.</param>
        /// <returns>The created <see cref="ReachPlanServiceClient"/>.</returns>
        internal static ReachPlanServiceClient Create(grpccore::CallInvoker callInvoker, ReachPlanServiceSettings settings = null)
        {
            gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker));
            grpcinter::Interceptor interceptor = settings?.Interceptor;

            if (interceptor != null)
            {
                callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor);
            }
            ReachPlanService.ReachPlanServiceClient grpcClient = new ReachPlanService.ReachPlanServiceClient(callInvoker);
            return(new ReachPlanServiceClientImpl(grpcClient, settings));
        }