Class DocumentUnderstandingServiceStubSettings.Builder

public static class DocumentUnderstandingServiceStubSettings.Builder extends StubSettings.Builder<DocumentUnderstandingServiceStubSettings,DocumentUnderstandingServiceStubSettings.Builder>

Builder for DocumentUnderstandingServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > DocumentUnderstandingServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(DocumentUnderstandingServiceStubSettings settings)

protected Builder(DocumentUnderstandingServiceStubSettings settings)
Parameter
NameDescription
settingsDocumentUnderstandingServiceStubSettings

Methods

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

public DocumentUnderstandingServiceStubSettings.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
DocumentUnderstandingServiceStubSettings.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 DocumentUnderstandingServiceStubSettings build()
Returns
TypeDescription
DocumentUnderstandingServiceStubSettings
Overrides Exceptions
TypeDescription
IOException

processDocumentSettings()

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

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

Returns
TypeDescription
Builder<ProcessDocumentRequest,Document>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>