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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonCloudTasksStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonCloudTasksStub
Exceptions
TypeDescription
IOException

create(CloudTasksStubSettings settings)

public static final HttpJsonCloudTasksStub create(CloudTasksStubSettings settings)
Parameter
NameDescription
settingsCloudTasksStubSettings
Returns
TypeDescription
HttpJsonCloudTasksStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsCloudTasksStubSettings
clientContextClientContext

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

Methods

awaitTermination(long duration, TimeUnit unit)

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

bufferTaskCallable()

public UnaryCallable<BufferTaskRequest,BufferTaskResponse> bufferTaskCallable()
Returns
TypeDescription
UnaryCallable<BufferTaskRequest,BufferTaskResponse>
Overrides

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

getLocationCallable()

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

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

listLocationsCallable()

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

listLocationsPagedCallable()

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

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