Class GrpcWorkerPoolsStub (0.74.0)

publicclass GrpcWorkerPoolsStubextendsWorkerPoolsStub

gRPC stub implementation for the WorkerPools service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > WorkerPoolsStub > GrpcWorkerPoolsStub

Inherited Members

Static Methods

create(ClientContext clientContext)

publicstaticfinalGrpcWorkerPoolsStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcWorkerPoolsStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

publicstaticfinalGrpcWorkerPoolsStubcreate(ClientContextclientContext,GrpcStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcWorkerPoolsStub
Exceptions
Type Description
IOException

create(WorkerPoolsStubSettings settings)

publicstaticfinalGrpcWorkerPoolsStubcreate(WorkerPoolsStubSettingssettings)
Parameter
Name Description
settings WorkerPoolsStubSettings
Returns
Type Description
GrpcWorkerPoolsStub
Exceptions
Type Description
IOException

Constructors

GrpcWorkerPoolsStub(WorkerPoolsStubSettings settings, ClientContext clientContext)

protectedGrpcWorkerPoolsStub(WorkerPoolsStubSettingssettings,ClientContextclientContext)

Constructs an instance of GrpcWorkerPoolsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings WorkerPoolsStubSettings
clientContext ClientContext

GrpcWorkerPoolsStub(WorkerPoolsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protectedGrpcWorkerPoolsStub(WorkerPoolsStubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

Constructs an instance of GrpcWorkerPoolsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings WorkerPoolsStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

publicfinalvoidclose()
Overrides

createWorkerPoolCallable()

publicUnaryCallable<CreateWorkerPoolRequest,Operation>createWorkerPoolCallable()
Returns
Type Description
UnaryCallable<CreateWorkerPoolRequest,Operation>
Overrides

createWorkerPoolOperationCallable()

publicOperationCallable<CreateWorkerPoolRequest,WorkerPool,WorkerPool>createWorkerPoolOperationCallable()
Returns
Type Description
OperationCallable<CreateWorkerPoolRequest,WorkerPool,WorkerPool>
Overrides

deleteWorkerPoolCallable()

publicUnaryCallable<DeleteWorkerPoolRequest,Operation>deleteWorkerPoolCallable()
Returns
Type Description
UnaryCallable<DeleteWorkerPoolRequest,Operation>
Overrides

deleteWorkerPoolOperationCallable()

publicOperationCallable<DeleteWorkerPoolRequest,WorkerPool,WorkerPool>deleteWorkerPoolOperationCallable()
Returns
Type Description
OperationCallable<DeleteWorkerPoolRequest,WorkerPool,WorkerPool>
Overrides

getIamPolicyCallable()

publicUnaryCallable<GetIamPolicyRequest,Policy>getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getWorkerPoolCallable()

publicUnaryCallable<GetWorkerPoolRequest,WorkerPool>getWorkerPoolCallable()
Returns
Type Description
UnaryCallable<GetWorkerPoolRequest,WorkerPool>
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listWorkerPoolsCallable()

publicUnaryCallable<ListWorkerPoolsRequest,ListWorkerPoolsResponse>listWorkerPoolsCallable()
Returns
Type Description
UnaryCallable<ListWorkerPoolsRequest,ListWorkerPoolsResponse>
Overrides

listWorkerPoolsPagedCallable()

publicUnaryCallable<ListWorkerPoolsRequest,WorkerPoolsClient.ListWorkerPoolsPagedResponse>listWorkerPoolsPagedCallable()
Returns
Type Description
UnaryCallable<ListWorkerPoolsRequest,ListWorkerPoolsPagedResponse>
Overrides

setIamPolicyCallable()

publicUnaryCallable<SetIamPolicyRequest,Policy>setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

testIamPermissionsCallable()

publicUnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse>testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateWorkerPoolCallable()

publicUnaryCallable<UpdateWorkerPoolRequest,Operation>updateWorkerPoolCallable()
Returns
Type Description
UnaryCallable<UpdateWorkerPoolRequest,Operation>
Overrides

updateWorkerPoolOperationCallable()

publicOperationCallable<UpdateWorkerPoolRequest,WorkerPool,WorkerPool>updateWorkerPoolOperationCallable()
Returns
Type Description
OperationCallable<UpdateWorkerPoolRequest,WorkerPool,WorkerPool>
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.