Class ContentLabelServiceStubSettings.Builder (0.39.0)

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

Builder for ContentLabelServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ContentLabelServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ContentLabelServiceStubSettings settings)

protected Builder(ContentLabelServiceStubSettings settings)
Parameter
Name Description
settings ContentLabelServiceStubSettings

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

public ContentLabelServiceStubSettings build()
Returns
Type Description
ContentLabelServiceStubSettings
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>

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>

unaryMethodSettingsBuilders()

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