Class TasksSettings.Builder (0.23.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
NameDescription
clientContextClientContext

Builder(TasksSettings settings)

protected Builder(TasksSettings settings)
Parameter
NameDescription
settingsTasksSettings

Builder(TasksStubSettings.Builder stubSettings)

protected Builder(TasksStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsTasksStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
TasksSettings.Builder

build()

public TasksSettings build()
Returns
TypeDescription
TasksSettings
Overrides
Exceptions
TypeDescription
IOException

getStubSettingsBuilder()

public TasksStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
TasksStubSettings.Builder

getTaskSettings()

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

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

Returns
TypeDescription
Builder<GetTaskRequest,Task>

listTasksSettings()

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

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

Returns
TypeDescription
Builder<ListTasksRequest,ListTasksResponse,ListTasksPagedResponse>