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