Class ImageAnnotatorSettings.Builder (3.44.0)

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

Builder for ImageAnnotatorSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ImageAnnotatorSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ImageAnnotatorSettings settings)

protected Builder(ImageAnnotatorSettings settings)
Parameter
Name Description
settings ImageAnnotatorSettings

Builder(ImageAnnotatorStubSettings.Builder stubSettings)

protected Builder(ImageAnnotatorStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings ImageAnnotatorStubSettings.Builder

Methods

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

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

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 ImageAnnotatorSettings build()
Returns
Type Description
ImageAnnotatorSettings
Overrides
Exceptions
Type Description
IOException

getStubSettingsBuilder()

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