Class WorkerPoolsSettings.Builder (0.95.0)

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

Builder for WorkerPoolsSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > WorkerPoolsSettings.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(WorkerPoolsSettings settings)

protected Builder(WorkerPoolsSettings settings)
Parameter
Name Description
settings WorkerPoolsSettings

Builder(WorkerPoolsStubSettings.Builder stubSettings)

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

Methods

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

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

build()

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

createWorkerPoolOperationSettings()

public OperationCallSettings.Builder<CreateWorkerPoolRequest,WorkerPool,WorkerPool> createWorkerPoolOperationSettings()

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

Returns
Type Description
Builder<CreateWorkerPoolRequest,WorkerPool,WorkerPool>

createWorkerPoolSettings()

public UnaryCallSettings.Builder<CreateWorkerPoolRequest,Operation> createWorkerPoolSettings()

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

Returns
Type Description
Builder<CreateWorkerPoolRequest,Operation>

deleteWorkerPoolOperationSettings()

public OperationCallSettings.Builder<DeleteWorkerPoolRequest,WorkerPool,WorkerPool> deleteWorkerPoolOperationSettings()

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

Returns
Type Description
Builder<DeleteWorkerPoolRequest,WorkerPool,WorkerPool>

deleteWorkerPoolSettings()

public UnaryCallSettings.Builder<DeleteWorkerPoolRequest,Operation> deleteWorkerPoolSettings()

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

Returns
Type Description
Builder<DeleteWorkerPoolRequest,Operation>

getIamPolicySettings()

public UnaryCallSettings.Builder<GetIamPolicyRequest,Policy> getIamPolicySettings()

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

Returns
Type Description
Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

getStubSettingsBuilder()

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

getWorkerPoolSettings()

public UnaryCallSettings.Builder<GetWorkerPoolRequest,WorkerPool> getWorkerPoolSettings()

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

Returns
Type Description
Builder<GetWorkerPoolRequest,WorkerPool>

listWorkerPoolsSettings()

public PagedCallSettings.Builder<ListWorkerPoolsRequest,ListWorkerPoolsResponse,WorkerPoolsClient.ListWorkerPoolsPagedResponse> listWorkerPoolsSettings()

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

Returns
Type Description
Builder<ListWorkerPoolsRequest,ListWorkerPoolsResponse,ListWorkerPoolsPagedResponse>

setIamPolicySettings()

public UnaryCallSettings.Builder<SetIamPolicyRequest,Policy> setIamPolicySettings()

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

Returns
Type Description
Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

testIamPermissionsSettings()

public UnaryCallSettings.Builder<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()

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

Returns
Type Description
Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

updateWorkerPoolOperationSettings()

public OperationCallSettings.Builder<UpdateWorkerPoolRequest,WorkerPool,WorkerPool> updateWorkerPoolOperationSettings()

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

Returns
Type Description
Builder<UpdateWorkerPoolRequest,WorkerPool,WorkerPool>

updateWorkerPoolSettings()

public UnaryCallSettings.Builder<UpdateWorkerPoolRequest,Operation> updateWorkerPoolSettings()

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

Returns
Type Description
Builder<UpdateWorkerPoolRequest,Operation>