ContentUploadServiceImpl.Builder

public static class ContentUploadServiceImpl.Builder extends AbstractBuilder<ContentUploadServiceImpl.Builder, CloudSearch>

Builder to create an instance of ContentUploadServiceImpl.

Public Constructor Summary

Public Method Summary

ContentUploadServiceImpl
build()
Builder to create a content upload service.
Set<String>
getApiScopes()
Gets API scopes to be used for uploading content using Cloud Search API.
AbstractGoogleJsonClient.Builder
getServiceBuilder(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer requestInitializer)
Gets CloudSearch.Builder instance used for creating CloudSearch API client.
ContentUploadServiceImpl.Builder
getThis()
Gets this instance of ContentUploadServiceImpl.Builder
ContentUploadServiceImpl.Builder
setExecutorService(ExecutorService executorService)
Sets ExecutorService used by ContentUploadServiceImpl for uploading content asynchronously.

Inherited Method Summary

Public Constructors

public ContentUploadServiceImpl.Builder ()

Public Methods

public ContentUploadServiceImpl build ()

Builder to create a content upload service.

The IndexingServiceImpl creates this content upload service by infusing the required objects obtained during connector initialization.

Returns
  • a fully instantiated content upload service
Throws
IOException on errors creating the HTTP transport or credential
GeneralSecurityException on security errors creating the HTTP transport or credential

public Set<String> getApiScopes ()

Gets API scopes to be used for uploading content using Cloud Search API.

Returns
  • set of scopes to be used.

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

Gets CloudSearch.Builder instance used for creating CloudSearch API client.

Parameters
transport HttpTranport to be used for creating AbstractGoogleJsonClient
jsonFactory JsonFactory to be used for creating AbstractGoogleJsonClient
requestInitializer HttpRequestInitializer to be used for creating AbstractGoogleJsonClient
Returns

public ContentUploadServiceImpl.Builder getThis ()

Gets this instance of ContentUploadServiceImpl.Builder

Returns
  • current builder instance

public ContentUploadServiceImpl.Builder setExecutorService (ExecutorService executorService)

Sets ExecutorService used by ContentUploadServiceImpl for uploading content asynchronously.

Parameters
executorService used by ContentUploadServiceImpl for uploading content asynchronously
Returns

Send feedback about...

Cloud Search
Cloud Search