Class DocumentUnderstandingServiceSettings.Builder (2.15.0)

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

Builder for DocumentUnderstandingServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > DocumentUnderstandingServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(DocumentUnderstandingServiceSettings settings)

protected Builder(DocumentUnderstandingServiceSettings settings)
Parameter
NameDescription
settingsDocumentUnderstandingServiceSettings

Builder(DocumentUnderstandingServiceStubSettings.Builder stubSettings)

protected Builder(DocumentUnderstandingServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsDocumentUnderstandingServiceStubSettings.Builder

Methods

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

public DocumentUnderstandingServiceSettings.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
DocumentUnderstandingServiceSettings.Builder

batchProcessDocumentsOperationSettings()

public OperationCallSettings.Builder<BatchProcessDocumentsRequest,BatchProcessDocumentsResponse,OperationMetadata> batchProcessDocumentsOperationSettings()

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

Returns
TypeDescription
Builder<BatchProcessDocumentsRequest,BatchProcessDocumentsResponse,OperationMetadata>

batchProcessDocumentsSettings()

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

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

Returns
TypeDescription
Builder<BatchProcessDocumentsRequest,Operation>

build()

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

getStubSettingsBuilder()

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

processDocumentSettings()

public UnaryCallSettings.Builder<ProcessDocumentRequest,Document> processDocumentSettings()

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

Returns
TypeDescription
Builder<ProcessDocumentRequest,Document>