Constructor and Description |
---|
Builder(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Returns an instance of a new builder.
|
Modifier and Type | Method and Description |
---|---|
Drive |
build()
Builds a new instance of
Drive . |
Drive.Builder |
setApplicationName(String applicationName) |
Drive.Builder |
setBatchPath(String batchPath) |
Drive.Builder |
setDriveRequestInitializer(DriveRequestInitializer driveRequestInitializer)
Set the
DriveRequestInitializer . |
Drive.Builder |
setGoogleClientRequestInitializer(com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) |
Drive.Builder |
setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) |
Drive.Builder |
setRootUrl(String rootUrl) |
Drive.Builder |
setServicePath(String servicePath) |
Drive.Builder |
setSuppressAllChecks(boolean suppressAllChecks) |
Drive.Builder |
setSuppressPatternChecks(boolean suppressPatternChecks) |
Drive.Builder |
setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) |
Drive.Builder |
setUniverseDomain(String universeDomain) |
getJsonFactory, getObjectParser
public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
transport
- HTTP transport, which should normally be:
com.google.api.client.extensions.appengine.http.UrlFetchTransport
newCompatibleTransport
from
com.google.api.client.extensions.android.http.AndroidHttp
com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
jsonFactory
- JSON factory, which may be:
com.google.api.client.json.jackson2.JacksonFactory
com.google.api.client.json.gson.GsonFactory
com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer
- HTTP request initializer or null
for nonepublic Drive build()
Drive
.build
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
public Drive.Builder setRootUrl(String rootUrl)
setRootUrl
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
public Drive.Builder setServicePath(String servicePath)
setServicePath
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
public Drive.Builder setBatchPath(String batchPath)
setBatchPath
in class com.google.api.client.googleapis.services.AbstractGoogleClient.Builder
public Drive.Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
setHttpRequestInitializer
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
public Drive.Builder setApplicationName(String applicationName)
setApplicationName
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
public Drive.Builder setSuppressPatternChecks(boolean suppressPatternChecks)
setSuppressPatternChecks
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
public Drive.Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks)
setSuppressRequiredParameterChecks
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
public Drive.Builder setSuppressAllChecks(boolean suppressAllChecks)
setSuppressAllChecks
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
public Drive.Builder setDriveRequestInitializer(DriveRequestInitializer driveRequestInitializer)
DriveRequestInitializer
.public Drive.Builder setGoogleClientRequestInitializer(com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer)
setGoogleClientRequestInitializer
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder
public Drive.Builder setUniverseDomain(String universeDomain)
setUniverseDomain
in class com.google.api.client.googleapis.services.AbstractGoogleClient.Builder
Copyright © 2011–2024 Google. All rights reserved.