AbstractGoogleClient.Builder
instead.@Deprecated public static class GoogleClient.Builder extends com.google.api.client.http.json.JsonHttpClient.Builder
GoogleClient.
Implementation is not thread-safe.
| Modifier | Constructor and Description |
|---|---|
protected |
GoogleClient.Builder(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.GenericUrl baseUrl)
Deprecated.
Returns an instance of a new builder.
|
|
GoogleClient.Builder(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
String rootUrl,
String servicePath,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Deprecated.
Returns an instance of a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
GoogleClient |
build()
Deprecated.
Builds a new instance of
GoogleClient. |
boolean |
getSuppressPatternChecks()
Deprecated.
Returns whether discovery pattern checks should be suppressed on required parameters.
|
GoogleClient.Builder |
setSuppressPatternChecks(boolean suppressPatternChecks)
Deprecated.
Sets whether discovery pattern checks should be suppressed on required parameters.
|
getApplicationName, getBaseUrl, getHttpRequestInitializer, getJsonFactory, getJsonHttpRequestInitializer, getObjectParser, getRootUrl, getServicePath, getTransport, isBaseUrlUsed, setApplicationName, setBaseUrl, setHttpRequestInitializer, setJsonHttpRequestInitializer, setObjectParser, setRootUrl, setServicePathprotected GoogleClient.Builder(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.GenericUrl baseUrl)
transport - The transport to use for requestsjsonFactory - A factory for creating JSON parsers and serializersbaseUrl - The base URL of the service. Must end with a "/"public GoogleClient.Builder(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
String rootUrl,
String servicePath,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
transport - The transport to use for requestsjsonFactory - A factory for creating JSON parsers and serializersrootUrl - The root URL of the service. Must end with a "/"servicePath - The service path of the service. Must end with a "/" and not begin with a
"/". It is allowed to be an empty string ""httpRequestInitializer - The HTTP request initializer or null for nonepublic final boolean getSuppressPatternChecks()
public GoogleClient.Builder setSuppressPatternChecks(boolean suppressPatternChecks)
Default value is false.
public GoogleClient build()
GoogleClient.build in class com.google.api.client.http.json.JsonHttpClient.BuilderCopyright © 2010-2013 Google. All Rights Reserved.