Class LabelServiceSettings.Builder (0.4.0)

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

Builder for LabelServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > LabelServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(LabelServiceSettings settings)

protected Builder(LabelServiceSettings settings)
Parameter
Name Description
settings LabelServiceSettings

Builder(LabelServiceStubSettings.Builder stubSettings)

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

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

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

getStubSettingsBuilder()

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

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>