Class DocumentProcessorServiceSettings.Builder

public static class DocumentProcessorServiceSettings.Builder extends ClientSettings.Builder<DocumentProcessorServiceSettings,DocumentProcessorServiceSettings.Builder>

Builder for DocumentProcessorServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > DocumentProcessorServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(DocumentProcessorServiceSettings settings)

protected Builder(DocumentProcessorServiceSettings settings)
Parameter
NameDescription
settingsDocumentProcessorServiceSettings

Builder(DocumentProcessorServiceStubSettings.Builder stubSettings)

protected Builder(DocumentProcessorServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsDocumentProcessorServiceStubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public DocumentProcessorServiceSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
DocumentProcessorServiceSettings.Builder

batchProcessDocumentsOperationSettings()

public OperationCallSettings.Builder<BatchProcessRequest,BatchProcessResponse,BatchProcessMetadata> batchProcessDocumentsOperationSettings()

Returns the builder for the settings used for calls to batchProcessDocuments.

Returns
TypeDescription
Builder<BatchProcessRequest,BatchProcessResponse,BatchProcessMetadata>

batchProcessDocumentsSettings()

public UnaryCallSettings.Builder<BatchProcessRequest,Operation> batchProcessDocumentsSettings()

Returns the builder for the settings used for calls to batchProcessDocuments.

Returns
TypeDescription
Builder<BatchProcessRequest,Operation>

build()

public DocumentProcessorServiceSettings build()
Returns
TypeDescription
DocumentProcessorServiceSettings
Overrides Exceptions
TypeDescription
IOException

getStubSettingsBuilder()

public DocumentProcessorServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
DocumentProcessorServiceStubSettings.Builder

processDocumentSettings()

public UnaryCallSettings.Builder<ProcessRequest,ProcessResponse> processDocumentSettings()

Returns the builder for the settings used for calls to processDocument.

Returns
TypeDescription
Builder<ProcessRequest,ProcessResponse>

reviewDocumentOperationSettings()

public OperationCallSettings.Builder<ReviewDocumentRequest,ReviewDocumentResponse,ReviewDocumentOperationMetadata> reviewDocumentOperationSettings()

Returns the builder for the settings used for calls to reviewDocument.

Returns
TypeDescription
Builder<ReviewDocumentRequest,ReviewDocumentResponse,ReviewDocumentOperationMetadata>

reviewDocumentSettings()

public UnaryCallSettings.Builder<ReviewDocumentRequest,Operation> reviewDocumentSettings()

Returns the builder for the settings used for calls to reviewDocument.

Returns
TypeDescription
Builder<ReviewDocumentRequest,Operation>