1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.google.cloud.tasks.v2.stub; 18 19 import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse; 20 import static com.google.cloud.tasks.v2.CloudTasksClient.ListTasksPagedResponse; 21 22 import com.google.api.gax.core.BackgroundResource; 23 import com.google.api.gax.rpc.UnaryCallable; 24 import com.google.cloud.tasks.v2.CreateQueueRequest; 25 import com.google.cloud.tasks.v2.CreateTaskRequest; 26 import com.google.cloud.tasks.v2.DeleteQueueRequest; 27 import com.google.cloud.tasks.v2.DeleteTaskRequest; 28 import com.google.cloud.tasks.v2.GetQueueRequest; 29 import com.google.cloud.tasks.v2.GetTaskRequest; 30 import com.google.cloud.tasks.v2.ListQueuesRequest; 31 import com.google.cloud.tasks.v2.ListQueuesResponse; 32 import com.google.cloud.tasks.v2.ListTasksRequest; 33 import com.google.cloud.tasks.v2.ListTasksResponse; 34 import com.google.cloud.tasks.v2.PauseQueueRequest; 35 import com.google.cloud.tasks.v2.PurgeQueueRequest; 36 import com.google.cloud.tasks.v2.Queue; 37 import com.google.cloud.tasks.v2.ResumeQueueRequest; 38 import com.google.cloud.tasks.v2.RunTaskRequest; 39 import com.google.cloud.tasks.v2.Task; 40 import com.google.cloud.tasks.v2.UpdateQueueRequest; 41 import com.google.iam.v1.GetIamPolicyRequest; 42 import com.google.iam.v1.Policy; 43 import com.google.iam.v1.SetIamPolicyRequest; 44 import com.google.iam.v1.TestIamPermissionsRequest; 45 import com.google.iam.v1.TestIamPermissionsResponse; 46 import com.google.protobuf.Empty; 47 import javax.annotation.Generated; 48 49 // AUTO-GENERATED DOCUMENTATION AND CLASS. 50 /** 51 * Base stub class for the CloudTasks service API. 52 * 53 * <p>This class is for advanced usage and reflects the underlying API directly. 54 */ 55 @Generated("by gapic-generator-java") 56 public abstract class CloudTasksStub implements BackgroundResource { 57 listQueuesPagedCallable()58 public UnaryCallable<ListQueuesRequest, ListQueuesPagedResponse> listQueuesPagedCallable() { 59 throw new UnsupportedOperationException("Not implemented: listQueuesPagedCallable()"); 60 } 61 listQueuesCallable()62 public UnaryCallable<ListQueuesRequest, ListQueuesResponse> listQueuesCallable() { 63 throw new UnsupportedOperationException("Not implemented: listQueuesCallable()"); 64 } 65 getQueueCallable()66 public UnaryCallable<GetQueueRequest, Queue> getQueueCallable() { 67 throw new UnsupportedOperationException("Not implemented: getQueueCallable()"); 68 } 69 createQueueCallable()70 public UnaryCallable<CreateQueueRequest, Queue> createQueueCallable() { 71 throw new UnsupportedOperationException("Not implemented: createQueueCallable()"); 72 } 73 updateQueueCallable()74 public UnaryCallable<UpdateQueueRequest, Queue> updateQueueCallable() { 75 throw new UnsupportedOperationException("Not implemented: updateQueueCallable()"); 76 } 77 deleteQueueCallable()78 public UnaryCallable<DeleteQueueRequest, Empty> deleteQueueCallable() { 79 throw new UnsupportedOperationException("Not implemented: deleteQueueCallable()"); 80 } 81 purgeQueueCallable()82 public UnaryCallable<PurgeQueueRequest, Queue> purgeQueueCallable() { 83 throw new UnsupportedOperationException("Not implemented: purgeQueueCallable()"); 84 } 85 pauseQueueCallable()86 public UnaryCallable<PauseQueueRequest, Queue> pauseQueueCallable() { 87 throw new UnsupportedOperationException("Not implemented: pauseQueueCallable()"); 88 } 89 resumeQueueCallable()90 public UnaryCallable<ResumeQueueRequest, Queue> resumeQueueCallable() { 91 throw new UnsupportedOperationException("Not implemented: resumeQueueCallable()"); 92 } 93 getIamPolicyCallable()94 public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() { 95 throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); 96 } 97 setIamPolicyCallable()98 public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() { 99 throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); 100 } 101 102 public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse> testIamPermissionsCallable()103 testIamPermissionsCallable() { 104 throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); 105 } 106 listTasksPagedCallable()107 public UnaryCallable<ListTasksRequest, ListTasksPagedResponse> listTasksPagedCallable() { 108 throw new UnsupportedOperationException("Not implemented: listTasksPagedCallable()"); 109 } 110 listTasksCallable()111 public UnaryCallable<ListTasksRequest, ListTasksResponse> listTasksCallable() { 112 throw new UnsupportedOperationException("Not implemented: listTasksCallable()"); 113 } 114 getTaskCallable()115 public UnaryCallable<GetTaskRequest, Task> getTaskCallable() { 116 throw new UnsupportedOperationException("Not implemented: getTaskCallable()"); 117 } 118 createTaskCallable()119 public UnaryCallable<CreateTaskRequest, Task> createTaskCallable() { 120 throw new UnsupportedOperationException("Not implemented: createTaskCallable()"); 121 } 122 deleteTaskCallable()123 public UnaryCallable<DeleteTaskRequest, Empty> deleteTaskCallable() { 124 throw new UnsupportedOperationException("Not implemented: deleteTaskCallable()"); 125 } 126 runTaskCallable()127 public UnaryCallable<RunTaskRequest, Task> runTaskCallable() { 128 throw new UnsupportedOperationException("Not implemented: runTaskCallable()"); 129 } 130 131 @Override close()132 public abstract void close(); 133 } 134