Class ImageAnnotatorSettings.Builder (3.21.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
NameDescription
clientContextClientContext

Builder(ImageAnnotatorSettings settings)

protected Builder(ImageAnnotatorSettings settings)
Parameter
NameDescription
settingsImageAnnotatorSettings

Builder(ImageAnnotatorStubSettings.Builder stubSettings)

protected Builder(ImageAnnotatorStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsImageAnnotatorStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
ImageAnnotatorSettings.Builder

asyncBatchAnnotateFilesOperationSettings()

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

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

Returns
TypeDescription
Builder<AsyncBatchAnnotateFilesRequest,AsyncBatchAnnotateFilesResponse,OperationMetadata>

asyncBatchAnnotateFilesSettings()

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

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

Returns
TypeDescription
Builder<AsyncBatchAnnotateFilesRequest,Operation>

batchAnnotateImagesSettings()

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

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

Returns
TypeDescription
Builder<BatchAnnotateImagesRequest,BatchAnnotateImagesResponse>

build()

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

getStubSettingsBuilder()

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