Class GrpcCloudTasksStub (2.54.0)

public class GrpcCloudTasksStub extends CloudTasksStub

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

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(CloudTasksStubSettings settings)

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

Constructors

GrpcCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext)

protected GrpcCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext)

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)

protected GrpcCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

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