Class GrpcCloudTasksStub (2.18.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcCloudTasksStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcCloudTasksStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcCloudTasksStub
Exceptions
TypeDescription
IOException

create(CloudTasksStubSettings settings)

public static final GrpcCloudTasksStub create(CloudTasksStubSettings settings)
Parameter
NameDescription
settingsCloudTasksStubSettings
Returns
TypeDescription
GrpcCloudTasksStub
Exceptions
TypeDescription
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
NameDescription
settingsCloudTasksStubSettings
clientContextClientContext

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
NameDescription
settingsCloudTasksStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createQueueCallable()

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

createTaskCallable()

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

deleteQueueCallable()

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

deleteTaskCallable()

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

getIamPolicyCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getQueueCallable()

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

getTaskCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listQueuesCallable()

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

listQueuesPagedCallable()

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

listTasksCallable()

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

listTasksPagedCallable()

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

pauseQueueCallable()

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

purgeQueueCallable()

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

resumeQueueCallable()

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

runTaskCallable()

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

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
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
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateQueueCallable()

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