Class LabelServiceStubSettings.Builder (0.5.0)

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

Builder for LabelServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > LabelServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(LabelServiceStubSettings settings)

protected Builder(LabelServiceStubSettings settings)
Parameter
Name Description
settings LabelServiceStubSettings

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

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

getLabelSettings()

public UnaryCallSettings.Builder<GetLabelRequest,Label> getLabelSettings()

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

Returns
Type Description
Builder<GetLabelRequest,Label>

listLabelsSettings()

public PagedCallSettings.Builder<ListLabelsRequest,ListLabelsResponse,LabelServiceClient.ListLabelsPagedResponse> listLabelsSettings()

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

Returns
Type Description
Builder<ListLabelsRequest,ListLabelsResponse,ListLabelsPagedResponse>

unaryMethodSettingsBuilders()

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