Class TasksSettings.Builder (0.42.0)

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

Builder for TasksSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > TasksSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(TasksSettings settings)

protected Builder(TasksSettings settings)
Parameter
Name Description
settings TasksSettings

Builder(TasksStubSettings.Builder stubSettings)

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

Methods

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

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

build()

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

getStubSettingsBuilder()

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

getTaskSettings()

public UnaryCallSettings.Builder<GetTaskRequest,Task> getTaskSettings()

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

Returns
Type Description
Builder<GetTaskRequest,Task>

listTasksSettings()

public PagedCallSettings.Builder<ListTasksRequest,ListTasksResponse,TasksClient.ListTasksPagedResponse> listTasksSettings()

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

Returns
Type Description
Builder<ListTasksRequest,ListTasksResponse,ListTasksPagedResponse>