Class GrpcCloudTasksStub (2.55.0)

publicclass GrpcCloudTasksStubextendsCloudTasksStub

gRPC stub implementation for the CloudTasks service API.

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

Inheritance

java.lang.Object > CloudTasksStub > GrpcCloudTasksStub

Inherited Members

Static Methods

create(ClientContext clientContext)

publicstaticfinalGrpcCloudTasksStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcCloudTasksStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(CloudTasksStubSettings settings)

publicstaticfinalGrpcCloudTasksStubcreate(CloudTasksStubSettingssettings)
Parameter
Name Description
settings CloudTasksStubSettings
Returns
Type Description
GrpcCloudTasksStub
Exceptions
Type Description
IOException

Constructors

GrpcCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext)

protectedGrpcCloudTasksStub(CloudTasksStubSettingssettings,ClientContextclientContext)

Constructs an instance of GrpcCloudTasksStub, 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 CloudTasksStubSettings
clientContext ClientContext

GrpcCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protectedGrpcCloudTasksStub(CloudTasksStubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

Constructs an instance of GrpcCloudTasksStub, 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 CloudTasksStubSettings
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

createQueueCallable()

publicUnaryCallable<CreateQueueRequest,Queue>createQueueCallable()
Returns
Type Description
UnaryCallable<CreateQueueRequest,Queue>
Overrides

createTaskCallable()

publicUnaryCallable<CreateTaskRequest,Task>createTaskCallable()
Returns
Type Description
UnaryCallable<CreateTaskRequest,Task>
Overrides

deleteQueueCallable()

publicUnaryCallable<DeleteQueueRequest,Empty>deleteQueueCallable()
Returns
Type Description
UnaryCallable<DeleteQueueRequest,Empty>
Overrides

deleteTaskCallable()

publicUnaryCallable<DeleteTaskRequest,Empty>deleteTaskCallable()
Returns
Type Description
UnaryCallable<DeleteTaskRequest,Empty>
Overrides

getIamPolicyCallable()

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

getLocationCallable()

publicUnaryCallable<GetLocationRequest,Location>getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description
GrpcOperationsStub

getQueueCallable()

publicUnaryCallable<GetQueueRequest,Queue>getQueueCallable()
Returns
Type Description
UnaryCallable<GetQueueRequest,Queue>
Overrides

getTaskCallable()

publicUnaryCallable<GetTaskRequest,Task>getTaskCallable()
Returns
Type Description
UnaryCallable<GetTaskRequest,Task>
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listLocationsCallable()

publicUnaryCallable<ListLocationsRequest,ListLocationsResponse>listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

publicUnaryCallable<ListLocationsRequest,CloudTasksClient.ListLocationsPagedResponse>listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listQueuesCallable()

publicUnaryCallable<ListQueuesRequest,ListQueuesResponse>listQueuesCallable()
Returns
Type Description
UnaryCallable<ListQueuesRequest,ListQueuesResponse>
Overrides

listQueuesPagedCallable()

publicUnaryCallable<ListQueuesRequest,CloudTasksClient.ListQueuesPagedResponse>listQueuesPagedCallable()
Returns
Type Description
UnaryCallable<ListQueuesRequest,ListQueuesPagedResponse>
Overrides

listTasksCallable()

publicUnaryCallable<ListTasksRequest,ListTasksResponse>listTasksCallable()
Returns
Type Description
UnaryCallable<ListTasksRequest,ListTasksResponse>
Overrides

listTasksPagedCallable()

publicUnaryCallable<ListTasksRequest,CloudTasksClient.ListTasksPagedResponse>listTasksPagedCallable()
Returns
Type Description
UnaryCallable<ListTasksRequest,ListTasksPagedResponse>
Overrides

pauseQueueCallable()

publicUnaryCallable<PauseQueueRequest,Queue>pauseQueueCallable()
Returns
Type Description
UnaryCallable<PauseQueueRequest,Queue>
Overrides

purgeQueueCallable()

publicUnaryCallable<PurgeQueueRequest,Queue>purgeQueueCallable()
Returns
Type Description
UnaryCallable<PurgeQueueRequest,Queue>
Overrides

resumeQueueCallable()

publicUnaryCallable<ResumeQueueRequest,Queue>resumeQueueCallable()
Returns
Type Description
UnaryCallable<ResumeQueueRequest,Queue>
Overrides

runTaskCallable()

publicUnaryCallable<RunTaskRequest,Task>runTaskCallable()
Returns
Type Description
UnaryCallable<RunTaskRequest,Task>
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

updateQueueCallable()

publicUnaryCallable<UpdateQueueRequest,Queue>updateQueueCallable()
Returns
Type Description
UnaryCallable<UpdateQueueRequest,Queue>
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年11月19日 UTC.