Class HttpJsonCloudTasksStub (2.43.0)

public class HttpJsonCloudTasksStub extends CloudTasksStub

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

Static Methods

create(ClientContext clientContext)

public static final HttpJsonCloudTasksStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonCloudTasksStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonCloudTasksStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonCloudTasksStub
Exceptions
Type Description
IOException

create(CloudTasksStubSettings settings)

public static final HttpJsonCloudTasksStub create(CloudTasksStubSettings settings)
Parameter
Name Description
settings CloudTasksStubSettings
Returns
Type Description
HttpJsonCloudTasksStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext)

protected HttpJsonCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext)

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)

protected HttpJsonCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

acknowledgeTaskCallable()

public UnaryCallable<AcknowledgeTaskRequest,Empty> acknowledgeTaskCallable()
Returns
Type Description
UnaryCallable<AcknowledgeTaskRequest,Empty>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

cancelLeaseCallable()

public UnaryCallable<CancelLeaseRequest,Task> cancelLeaseCallable()
Returns
Type Description
UnaryCallable<CancelLeaseRequest,Task>
Overrides

close()

public final void close()
Overrides

createQueueCallable()

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

createTaskCallable()

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

deleteQueueCallable()

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

deleteTaskCallable()

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

getIamPolicyCallable()

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

getLocationCallable()

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

getQueueCallable()

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

getTaskCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

leaseTasksCallable()

public UnaryCallable<LeaseTasksRequest,LeaseTasksResponse> leaseTasksCallable()
Returns
Type Description
UnaryCallable<LeaseTasksRequest,LeaseTasksResponse>
Overrides

listLocationsCallable()

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

listLocationsPagedCallable()

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

listQueuesCallable()

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

listQueuesPagedCallable()

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

listTasksCallable()

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

listTasksPagedCallable()

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

pauseQueueCallable()

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

purgeQueueCallable()

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

renewLeaseCallable()

public UnaryCallable<RenewLeaseRequest,Task> renewLeaseCallable()
Returns
Type Description
UnaryCallable<RenewLeaseRequest,Task>
Overrides

resumeQueueCallable()

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

runTaskCallable()

public UnaryCallable<RunTaskRequest,Task> runTaskCallable()
Returns
Type Description
UnaryCallable<RunTaskRequest,Task>
Overrides

setIamPolicyCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

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

updateQueueCallable()

public UnaryCallable<UpdateQueueRequest,Queue> updateQueueCallable()
Returns
Type Description
UnaryCallable<UpdateQueueRequest,Queue>
Overrides

uploadQueueYamlCallable()

public UnaryCallable<UploadQueueYamlRequest,Empty> uploadQueueYamlCallable()
Returns
Type Description
UnaryCallable<UploadQueueYamlRequest,Empty>
Overrides