Class HttpJsonCloudTasksStub (2.53.0)

publicclass HttpJsonCloudTasksStubextendsCloudTasksStub

REST stub implementation for the CloudTasks service API.

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

Inheritance

java.lang.Object > CloudTasksStub > HttpJsonCloudTasksStub

Inherited Members

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonCloudTasksStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonCloudTasksStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonCloudTasksStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonCloudTasksStub
Exceptions
Type Description
IOException

create(CloudTasksStubSettings settings)

publicstaticfinalHttpJsonCloudTasksStubcreate(CloudTasksStubSettingssettings)
Parameter
Name Description
settings CloudTasksStubSettings
Returns
Type Description
HttpJsonCloudTasksStub
Exceptions
Type Description
IOException

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext)

protectedHttpJsonCloudTasksStub(CloudTasksStubSettingssettings,ClientContextclientContext)

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

HttpJsonCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonCloudTasksStub(CloudTasksStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

Constructs an instance of HttpJsonCloudTasksStub, 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 HttpJsonStubCallableFactory

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

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.