public static class GoogleApiDebugOptions.GoogleApiTracer extends Object implements com.google.api.client.googleapis.services.GoogleClientRequestInitializer
GoogleClientRequestInitializer that adds the trace destination to Google API calls.| Modifier and Type | Method and Description |
|---|---|
static GoogleApiDebugOptions.GoogleApiTracer |
create(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> request,
String traceDestination)
Creates a
GoogleApiDebugOptions.GoogleApiTracer that sets the trace traceDestination on all
calls that match for the given request type. |
static GoogleApiDebugOptions.GoogleApiTracer |
create(com.google.api.client.googleapis.services.AbstractGoogleClient client,
String traceDestination)
Creates a
GoogleApiDebugOptions.GoogleApiTracer that sets the trace destination on all
calls that match the given client type. |
static GoogleApiDebugOptions.GoogleApiTracer |
create(String value)
Creates a
GoogleClientRequestInitializer that adds the trace destination
based upon the passed in value. |
void |
initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> request) |
String |
toString() |
public static GoogleApiDebugOptions.GoogleApiTracer create(com.google.api.client.googleapis.services.AbstractGoogleClient client, String traceDestination)
GoogleApiDebugOptions.GoogleApiTracer that sets the trace destination on all
calls that match the given client type.public static GoogleApiDebugOptions.GoogleApiTracer create(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> request, String traceDestination)
GoogleApiDebugOptions.GoogleApiTracer that sets the trace traceDestination on all
calls that match for the given request type.public static GoogleApiDebugOptions.GoogleApiTracer create(String value)
GoogleClientRequestInitializer that adds the trace destination
based upon the passed in value.
The value represents a string containing ApiName#TraceDestination.
The ApiName is used to match against the request class
canonical name to determine the requests to which the
TraceDestination should be added.
For example, to match:
#TraceDestination
Dataflow#TraceDestination
Dataflow.V1b3#TraceDestination
Dataflow.V1b3.Projects.Jobs#TraceDestination
Dataflow.V1b3.Projects.Jobs.Get#TraceDestination
Jobs.Create#TraceDestination
public void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> request)
throws IOException
initialize in interface com.google.api.client.googleapis.services.GoogleClientRequestInitializerIOException