Class DocumentUnderstandingServiceSettings.Builder (2.50.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
Name Description
clientContext ClientContext

Builder(DocumentUnderstandingServiceSettings settings)

protected Builder(DocumentUnderstandingServiceSettings settings)
Parameter
Name Description
settings DocumentUnderstandingServiceSettings

Builder(DocumentUnderstandingServiceStubSettings.Builder stubSettings)

protected Builder(DocumentUnderstandingServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings DocumentUnderstandingServiceStubSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
DocumentUnderstandingServiceSettings.Builder

batchProcessDocumentsOperationSettings()

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

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

Returns
Type Description
Builder<BatchProcessDocumentsRequest,BatchProcessDocumentsResponse,OperationMetadata>

batchProcessDocumentsSettings()

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

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

Returns
Type Description
Builder<BatchProcessDocumentsRequest,Operation>

build()

public DocumentUnderstandingServiceSettings build()
Returns
Type Description
DocumentUnderstandingServiceSettings
Overrides
Exceptions
Type Description
IOException

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getStubSettingsBuilder()

public DocumentUnderstandingServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
DocumentUnderstandingServiceStubSettings.Builder

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,DocumentUnderstandingServiceClient.ListLocationsPagedResponse> listLocationsSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

processDocumentSettings()

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

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

Returns
Type Description
Builder<ProcessDocumentRequest,Document>