Class GrpcCloudTasksStub
- java.lang.Object
-
- com.google.cloud.tasks.v2beta3.stub.CloudTasksStub
-
- com.google.cloud.tasks.v2beta3.stub.GrpcCloudTasksStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcCloudTasksStub(CloudTasksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcCloudTasksStub, using the given settings.protectedGrpcCloudTasksStub(CloudTasksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcCloudTasksStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)com.google.api.gax.rpc.UnaryCallable<BufferTaskRequest,BufferTaskResponse>bufferTaskCallable()voidclose()static GrpcCloudTasksStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcCloudTasksStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcCloudTasksStubcreate(CloudTasksStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateQueueRequest,Queue>createQueueCallable()com.google.api.gax.rpc.UnaryCallable<CreateTaskRequest,Task>createTaskCallable()com.google.api.gax.rpc.UnaryCallable<DeleteQueueRequest,com.google.protobuf.Empty>deleteQueueCallable()com.google.api.gax.rpc.UnaryCallable<DeleteTaskRequest,com.google.protobuf.Empty>deleteTaskCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetQueueRequest,Queue>getQueueCallable()com.google.api.gax.rpc.UnaryCallable<GetTaskRequest,Task>getTaskCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>listLocationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,CloudTasksClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListQueuesRequest,ListQueuesResponse>listQueuesCallable()com.google.api.gax.rpc.UnaryCallable<ListQueuesRequest,CloudTasksClient.ListQueuesPagedResponse>listQueuesPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListTasksRequest,ListTasksResponse>listTasksCallable()com.google.api.gax.rpc.UnaryCallable<ListTasksRequest,CloudTasksClient.ListTasksPagedResponse>listTasksPagedCallable()com.google.api.gax.rpc.UnaryCallable<PauseQueueRequest,Queue>pauseQueueCallable()com.google.api.gax.rpc.UnaryCallable<PurgeQueueRequest,Queue>purgeQueueCallable()com.google.api.gax.rpc.UnaryCallable<ResumeQueueRequest,Queue>resumeQueueCallable()com.google.api.gax.rpc.UnaryCallable<RunTaskRequest,Task>runTaskCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateQueueRequest,Queue>updateQueueCallable()
-
-
-
Constructor Detail
-
GrpcCloudTasksStub
protected GrpcCloudTasksStub(CloudTasksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
GrpcCloudTasksStub
protected GrpcCloudTasksStub(CloudTasksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcCloudTasksStub create(CloudTasksStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcCloudTasksStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcCloudTasksStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
listQueuesCallable
public com.google.api.gax.rpc.UnaryCallable<ListQueuesRequest,ListQueuesResponse> listQueuesCallable()
- Overrides:
listQueuesCallablein classCloudTasksStub
-
listQueuesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListQueuesRequest,CloudTasksClient.ListQueuesPagedResponse> listQueuesPagedCallable()
- Overrides:
listQueuesPagedCallablein classCloudTasksStub
-
getQueueCallable
public com.google.api.gax.rpc.UnaryCallable<GetQueueRequest,Queue> getQueueCallable()
- Overrides:
getQueueCallablein classCloudTasksStub
-
createQueueCallable
public com.google.api.gax.rpc.UnaryCallable<CreateQueueRequest,Queue> createQueueCallable()
- Overrides:
createQueueCallablein classCloudTasksStub
-
updateQueueCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateQueueRequest,Queue> updateQueueCallable()
- Overrides:
updateQueueCallablein classCloudTasksStub
-
deleteQueueCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteQueueRequest,com.google.protobuf.Empty> deleteQueueCallable()
- Overrides:
deleteQueueCallablein classCloudTasksStub
-
purgeQueueCallable
public com.google.api.gax.rpc.UnaryCallable<PurgeQueueRequest,Queue> purgeQueueCallable()
- Overrides:
purgeQueueCallablein classCloudTasksStub
-
pauseQueueCallable
public com.google.api.gax.rpc.UnaryCallable<PauseQueueRequest,Queue> pauseQueueCallable()
- Overrides:
pauseQueueCallablein classCloudTasksStub
-
resumeQueueCallable
public com.google.api.gax.rpc.UnaryCallable<ResumeQueueRequest,Queue> resumeQueueCallable()
- Overrides:
resumeQueueCallablein classCloudTasksStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classCloudTasksStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classCloudTasksStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classCloudTasksStub
-
listTasksCallable
public com.google.api.gax.rpc.UnaryCallable<ListTasksRequest,ListTasksResponse> listTasksCallable()
- Overrides:
listTasksCallablein classCloudTasksStub
-
listTasksPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTasksRequest,CloudTasksClient.ListTasksPagedResponse> listTasksPagedCallable()
- Overrides:
listTasksPagedCallablein classCloudTasksStub
-
getTaskCallable
public com.google.api.gax.rpc.UnaryCallable<GetTaskRequest,Task> getTaskCallable()
- Overrides:
getTaskCallablein classCloudTasksStub
-
createTaskCallable
public com.google.api.gax.rpc.UnaryCallable<CreateTaskRequest,Task> createTaskCallable()
- Overrides:
createTaskCallablein classCloudTasksStub
-
deleteTaskCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteTaskRequest,com.google.protobuf.Empty> deleteTaskCallable()
- Overrides:
deleteTaskCallablein classCloudTasksStub
-
runTaskCallable
public com.google.api.gax.rpc.UnaryCallable<RunTaskRequest,Task> runTaskCallable()
- Overrides:
runTaskCallablein classCloudTasksStub
-
bufferTaskCallable
public com.google.api.gax.rpc.UnaryCallable<BufferTaskRequest,BufferTaskResponse> bufferTaskCallable()
- Overrides:
bufferTaskCallablein classCloudTasksStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classCloudTasksStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,CloudTasksClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classCloudTasksStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classCloudTasksStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCloudTasksStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-