IndexingServiceImpl.Builder

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

Public Constructor Summary

Public Method Summary

IndexingServiceImpl
build()
Get instance of BaseApiService implementation.
static IndexingServiceImpl.Builder
fromConfiguration(Optional<CredentialFactory> credentialFactory, String defaultConnectorName)
Generates a IndexingServiceImpl.Builder instance from configuration parameters.
Set<String>
getApiScopes()
Get scopes to be used while making Google API requests.
AbstractGoogleJsonClient.Builder
getServiceBuilder(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer requestInitializer)
IndexingServiceImpl.Builder
getThis()
Get current builder instance.
IndexingServiceImpl.Builder
setAllowUnknownGsuitePrincipals(boolean allowUnknownGsuitePrincipals)
IndexingServiceImpl.Builder
IndexingServiceImpl.Builder
setConnectorId(String connectorId)
IndexingServiceImpl.Builder
setContentUploadRequestTimeout(int connectTimeoutSeconds, int readTimeoutSeconds)
IndexingServiceImpl.Builder
IndexingServiceImpl.Builder
IndexingServiceImpl.Builder
setEnableDebugging(boolean enableDebugging)
IndexingServiceImpl.Builder
setIdentitySourceId(String identitySourceId)
IndexingServiceImpl.Builder
IndexingServiceImpl.Builder
IndexingServiceImpl.Builder
IndexingServiceImpl.Builder
setSourceId(String sourceId)

Inherited Method Summary

Public Constructors

public IndexingServiceImpl.Builder ()

Public Methods

public IndexingServiceImpl build ()

Get instance of BaseApiService implementation. Implementation should call ERROR(/#setupServiceAndCredentials) as part of build implementation.

Returns
Throws
IOException
GeneralSecurityException

public static IndexingServiceImpl.Builder fromConfiguration (Optional<CredentialFactory> credentialFactory, String defaultConnectorName)

Generates a IndexingServiceImpl.Builder instance from configuration parameters.

This method returns a fully initialized builder object for an IndexingServiceImpl instance created from defaulted values and configuration parameters. The caller can optionally use setter methods to make changes on the builder before creating the final instance by calling build().

Parameters
credentialFactory
defaultConnectorName

public Set<String> getApiScopes ()

Get scopes to be used while making Google API requests.

Returns
  • set of scopes to be used.

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

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 IndexingServiceImpl.Builder getThis ()

Get current builder instance.

Returns
  • current builder instance

public IndexingServiceImpl.Builder setAllowUnknownGsuitePrincipals (boolean allowUnknownGsuitePrincipals)

Parameters
allowUnknownGsuitePrincipals

public IndexingServiceImpl.Builder setBatchingIndexingService (BatchingIndexingService batchingService)

Parameters
batchingService

public IndexingServiceImpl.Builder setConnectorId (String connectorId)

Parameters
connectorId

public IndexingServiceImpl.Builder setContentUploadRequestTimeout (int connectTimeoutSeconds, int readTimeoutSeconds)

Parameters
connectTimeoutSeconds
readTimeoutSeconds

public IndexingServiceImpl.Builder setContentUploadService (ContentUploadService contentUploadService)

Parameters
contentUploadService

public IndexingServiceImpl.Builder setContentUploadThreshold (int thresold)

Parameters
thresold

public IndexingServiceImpl.Builder setEnableDebugging (boolean enableDebugging)

Parameters
enableDebugging

public IndexingServiceImpl.Builder setIdentitySourceId (String identitySourceId)

Parameters
identitySourceId

public IndexingServiceImpl.Builder setQuotaServer (QuotaServer<IndexingServiceImpl.Operations> quotaServer)

Parameters
quotaServer

public IndexingServiceImpl.Builder setRequestMode (IndexingService.RequestMode requestMode)

Parameters
requestMode

public IndexingServiceImpl.Builder setServiceManagerHelper (IndexingServiceImpl.ServiceManagerHelper serviceManagerHelper)

Parameters
serviceManagerHelper

public IndexingServiceImpl.Builder setSourceId (String sourceId)

Parameters
sourceId