/// <summary> /// Creates a <see cref="BiddingStrategySimulationServiceClient"/> 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="BiddingStrategySimulationServiceSettings"/>.</param> /// <returns>The created <see cref="BiddingStrategySimulationServiceClient"/>.</returns> internal static BiddingStrategySimulationServiceClient Create(grpccore::CallInvoker callInvoker, BiddingStrategySimulationServiceSettings settings = null) { gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); grpcinter::Interceptor interceptor = settings?.Interceptor; if (interceptor != null) { callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); } BiddingStrategySimulationService.BiddingStrategySimulationServiceClient grpcClient = new BiddingStrategySimulationService.BiddingStrategySimulationServiceClient(callInvoker); return(new BiddingStrategySimulationServiceClientImpl(grpcClient, settings)); }