Class ImageAnnotatorStubSettings.Builder (3.37.0)

See more code actions.
public static class ImageAnnotatorStubSettings.Builder extends StubSettings.Builder<ImageAnnotatorStubSettings,ImageAnnotatorStubSettings.Builder>

Builder for ImageAnnotatorStubSettings.

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

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ImageAnnotatorStubSettings settings)

protected Builder(ImageAnnotatorStubSettings settings)
Parameter
NameDescription
settingsImageAnnotatorStubSettings

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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>

asyncBatchAnnotateFilesOperationSettings()

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

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

asyncBatchAnnotateFilesSettings()

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

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

batchAnnotateImagesSettings()

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

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

build()

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

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

unaryMethodSettingsBuilders()

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