Class LabelServiceSettings.Builder (0.54.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(@Nullable ClientContext clientContext)

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

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

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

batchActivateLabelsSettings()

public UnaryCallSettings.Builder<BatchActivateLabelsRequest,BatchActivateLabelsResponse> batchActivateLabelsSettings()

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

Returns
Type Description
Builder<BatchActivateLabelsRequest,BatchActivateLabelsResponse>

batchCreateLabelsSettings()

public UnaryCallSettings.Builder<BatchCreateLabelsRequest,BatchCreateLabelsResponse> batchCreateLabelsSettings()

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

Returns
Type Description
Builder<BatchCreateLabelsRequest,BatchCreateLabelsResponse>

batchDeactivateLabelsSettings()

public UnaryCallSettings.Builder<BatchDeactivateLabelsRequest,BatchDeactivateLabelsResponse> batchDeactivateLabelsSettings()

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

Returns
Type Description
Builder<BatchDeactivateLabelsRequest,BatchDeactivateLabelsResponse>

batchUpdateLabelsSettings()

public UnaryCallSettings.Builder<BatchUpdateLabelsRequest,BatchUpdateLabelsResponse> batchUpdateLabelsSettings()

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

Returns
Type Description
Builder<BatchUpdateLabelsRequest,BatchUpdateLabelsResponse>

build()

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

createLabelSettings()

public UnaryCallSettings.Builder<CreateLabelRequest,Label> createLabelSettings()

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

Returns
Type Description
Builder<CreateLabelRequest,Label>

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>

updateLabelSettings()

public UnaryCallSettings.Builder<UpdateLabelRequest,Label> updateLabelSettings()

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

Returns
Type Description
Builder<UpdateLabelRequest,Label>