/** * Returns of a list of traces that match the specified filter conditions. * * <p>Sample code: * * <pre><code> * try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) { * String projectId = ""; * for (Trace element : traceServiceClient.listTraces(projectId).iterateAllElements()) { * // doThingsWith(element); * } * } * </code></pre> * * @param projectId ID of the Cloud project where the trace data is stored. * @throws com.google.api.gax.grpc.ApiException if the remote call fails */ public final ListTracesPagedResponse listTraces(String projectId) { ListTracesRequest request = ListTracesRequest.newBuilder().setProjectId(projectId).build(); return listTraces(request); }
@Override public ListTracesRequest injectToken(ListTracesRequest payload, Object token) { return ListTracesRequest.newBuilder(payload).setPageToken((String) token).build(); }
/** * Returns of a list of traces that match the specified filter conditions. * * <p>Sample code: * * <pre><code> * try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) { * String projectId = ""; * for (Trace element : traceServiceClient.listTraces(projectId).iterateAll()) { * // doThingsWith(element); * } * } * </code></pre> * * @param projectId ID of the Cloud project where the trace data is stored. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTracesPagedResponse listTraces(String projectId) { ListTracesRequest request = ListTracesRequest.newBuilder().setProjectId(projectId).build(); return listTraces(request); }
@Override public ListTracesRequest injectToken(ListTracesRequest payload, String token) { return ListTracesRequest.newBuilder(payload).setPageToken(token).build(); }