Class ImageAnnotatorStubSettings.Builder (3.52.0)

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

Builder for ImageAnnotatorStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ImageAnnotatorStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ImageAnnotatorStubSettings settings)

protected Builder(ImageAnnotatorStubSettings settings)
Parameter
Name Description
settings ImageAnnotatorStubSettings

Methods

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

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

asyncBatchAnnotateFilesOperationSettings()

public OperationCallSettings.Builder<AsyncBatchAnnotateFilesRequest,AsyncBatchAnnotateFilesResponse,OperationMetadata> asyncBatchAnnotateFilesOperationSettings()

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

Returns
Type Description
Builder<AsyncBatchAnnotateFilesRequest,AsyncBatchAnnotateFilesResponse,OperationMetadata>

asyncBatchAnnotateFilesSettings()

public UnaryCallSettings.Builder<AsyncBatchAnnotateFilesRequest,Operation> asyncBatchAnnotateFilesSettings()

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

Returns
Type Description
Builder<AsyncBatchAnnotateFilesRequest,Operation>

batchAnnotateImagesSettings()

public UnaryCallSettings.Builder<BatchAnnotateImagesRequest,BatchAnnotateImagesResponse> batchAnnotateImagesSettings()

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

Returns
Type Description
Builder<BatchAnnotateImagesRequest,BatchAnnotateImagesResponse>

build()

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

unaryMethodSettingsBuilders()

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