BaseApiService.AbstractBuilder

public static abstract class BaseApiService.AbstractBuilder extends Object
Known Direct Subclasses

Field Summary

protected BatchPolicy batchPolicy
protected CredentialFactory credentialFactory
protected JsonFactory jsonFactory
protected HttpRequestInitializer requestInitializer
protected HttpRequestInitializer requestTimeoutInitializer
protected RetryPolicy retryPolicy
protected String rootUrl
protected T extends AbstractGoogleJsonClient service
protected HttpTransport transport

Public Constructor Summary

Public Method Summary

abstract BaseApiService<T>
build()
abstract Set<String>
abstract AbstractGoogleJsonClient.Builder
getServiceBuilder(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer requestInitializer)
abstract B
B
B
B
setJsonFactory(JsonFactory jsonFactory)
B
setRequestInitializer(HttpRequestInitializer requestInitializer)
B
setRequestTimeout(int connectTimeoutSeconds, int readTimeoutSeconds)
B
B
setRootUrl(String rootUrl)
B
setService(T service)
B
setTransport(HttpTransport transport)

Protected Method Summary

GoogleCredential

Inherited Method Summary

Fields

protected BatchPolicy batchPolicy

protected CredentialFactory credentialFactory

protected JsonFactory jsonFactory

protected HttpRequestInitializer requestInitializer

protected HttpRequestInitializer requestTimeoutInitializer

protected RetryPolicy retryPolicy

protected String rootUrl

protected T extends AbstractGoogleJsonClient service

protected HttpTransport transport

Public Constructors

public BaseApiService.AbstractBuilder ()

Public Methods

public abstract BaseApiService<T> build ()

Throws
GeneralSecurityException
IOException

public abstract Set<String> getApiScopes ()

public abstract AbstractGoogleJsonClient.Builder getServiceBuilder (HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer requestInitializer)

Parameters
transport
jsonFactory
requestInitializer

public abstract B getThis ()

public B setBatchPolicy (BatchPolicy batchPolicy)

Parameters
batchPolicy

public B setCredentialFactory (CredentialFactory credentialFactory)

Parameters
credentialFactory

public B setJsonFactory (JsonFactory jsonFactory)

Parameters
jsonFactory

public B setRequestInitializer (HttpRequestInitializer requestInitializer)

Parameters
requestInitializer

public B setRequestTimeout (int connectTimeoutSeconds, int readTimeoutSeconds)

Parameters
connectTimeoutSeconds
readTimeoutSeconds

public B setRetryPolicy (RetryPolicy retryPolicy)

Parameters
retryPolicy

public B setRootUrl (String rootUrl)

Parameters
rootUrl

public B setService (T service)

Parameters
service

public B setTransport (HttpTransport transport)

Parameters
transport

Protected Methods

protected GoogleCredential setupServiceAndCredentials ()

Throws
GeneralSecurityException
IOException

Send feedback about...

Cloud Search
Cloud Search