Class ContentLabelServiceSettings.Builder (0.54.0)

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

Builder for ContentLabelServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ContentLabelServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(@Nullable ClientContext clientContext)

protected Builder(@Nullable ClientContext clientContext)
Parameter
Name Description
clientContext @org.jspecify.annotations.Nullable com.google.api.gax.rpc.ClientContext

Builder(ContentLabelServiceSettings settings)

protected Builder(ContentLabelServiceSettings settings)
Parameter
Name Description
settings ContentLabelServiceSettings

Builder(ContentLabelServiceStubSettings.Builder stubSettings)

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

Methods

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

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

build()

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

getContentLabelSettings()

public UnaryCallSettings.Builder<GetContentLabelRequest,ContentLabel> getContentLabelSettings()

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

Returns
Type Description
Builder<GetContentLabelRequest,ContentLabel>

getStubSettingsBuilder()

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

listContentLabelsSettings()

public PagedCallSettings.Builder<ListContentLabelsRequest,ListContentLabelsResponse,ContentLabelServiceClient.ListContentLabelsPagedResponse> listContentLabelsSettings()

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

Returns
Type Description
Builder<ListContentLabelsRequest,ListContentLabelsResponse,ListContentLabelsPagedResponse>