/// <summary>
        /// Constructs a client wrapper for the TraceService service, with the specified gRPC client and settings.
        /// </summary>
        /// <param name="grpcClient">The underlying gRPC client.</param>
        /// <param name="settings">The base <see cref="TraceServiceSettings"/> used within this client </param>
        public TraceServiceClientImpl(TraceService.TraceServiceClient grpcClient, TraceServiceSettings settings)
        {
            this.GrpcClient = grpcClient;
            TraceServiceSettings effectiveSettings = settings ?? TraceServiceSettings.GetDefault();

            _clientHelper    = new ClientHelper(effectiveSettings);
            _callPatchTraces = _clientHelper.BuildApiCall <PatchTracesRequest, Empty>(
                GrpcClient.PatchTracesAsync, GrpcClient.PatchTraces, effectiveSettings.PatchTracesSettings);
            _callGetTrace = _clientHelper.BuildApiCall <GetTraceRequest, Trace>(
                GrpcClient.GetTraceAsync, GrpcClient.GetTrace, effectiveSettings.GetTraceSettings);
            _callListTraces = _clientHelper.BuildApiCall <ListTracesRequest, ListTracesResponse>(
                GrpcClient.ListTracesAsync, GrpcClient.ListTraces, effectiveSettings.ListTracesSettings);
        }
 /// <summary>
 /// Creates a <see cref="TraceServiceClient"/> which uses the specified channel for remote operations.
 /// </summary>
 /// <param name="channel">The <see cref="Channel"/> for remote operations. Must not be null.</param>
 /// <param name="settings">Optional <see cref="TraceServiceSettings"/>.</param>
 /// <returns>The created <see cref="TraceServiceClient"/>.</returns>
 public static TraceServiceClient Create(Channel channel, TraceServiceSettings settings = null)
 {
     GaxPreconditions.CheckNotNull(channel, nameof(channel));
     TraceService.TraceServiceClient grpcClient = new TraceService.TraceServiceClient(channel);
     return(new TraceServiceClientImpl(grpcClient, settings));
 }