diff --git a/google-api-grpc/grpc-google-cloud-tasks-v2/pom.xml b/google-api-grpc/grpc-google-cloud-tasks-v2/pom.xml
new file mode 100644
index 000000000000..bd28d04f3499
--- /dev/null
+++ b/google-api-grpc/grpc-google-cloud-tasks-v2/pom.xml
@@ -0,0 +1,31 @@
+
+ * Cloud Tasks allows developers to manage the execution of background + * work in their applications. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/tasks/v2/cloudtasks.proto") +public final class CloudTasksGrpc { + + private CloudTasksGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.tasks.v2.CloudTasks"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListQueuesMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse> + METHOD_LIST_QUEUES = getListQueuesMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse> + getListQueuesMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse> + getListQueuesMethod() { + return getListQueuesMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse> + getListQueuesMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.tasks.v2.ListQueuesRequest, + com.google.cloud.tasks.v2.ListQueuesResponse> + getListQueuesMethod; + if ((getListQueuesMethod = CloudTasksGrpc.getListQueuesMethod) == null) { + synchronized (CloudTasksGrpc.class) { + if ((getListQueuesMethod = CloudTasksGrpc.getListQueuesMethod) == null) { + CloudTasksGrpc.getListQueuesMethod = + getListQueuesMethod = + io.grpc.MethodDescriptor + .
+ * Cloud Tasks allows developers to manage the execution of background + * work in their applications. + *+ */ + public abstract static class CloudTasksImplBase implements io.grpc.BindableService { + + /** + * + * + *
+ * Lists queues. + * Queues are returned in lexicographical order. + *+ */ + public void listQueues( + com.google.cloud.tasks.v2.ListQueuesRequest request, + io.grpc.stub.StreamObserver
+ * Gets a queue. + *+ */ + public void getQueue( + com.google.cloud.tasks.v2.GetQueueRequest request, + io.grpc.stub.StreamObserver
+ * Creates a queue. + * Queues created with this method allow tasks to live for a maximum of 31 + * days. After a task is 31 days old, the task will be deleted regardless of whether + * it was dispatched or not. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public void createQueue( + com.google.cloud.tasks.v2.CreateQueueRequest request, + io.grpc.stub.StreamObserver
+ * Updates a queue. + * This method creates the queue if it does not exist and updates + * the queue if it does exist. + * Queues created with this method allow tasks to live for a maximum of 31 + * days. After a task is 31 days old, the task will be deleted regardless of whether + * it was dispatched or not. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public void updateQueue( + com.google.cloud.tasks.v2.UpdateQueueRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a queue. + * This command will delete the queue even if it has tasks in it. + * Note: If you delete a queue, a queue with the same name can't be created + * for 7 days. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public void deleteQueue( + com.google.cloud.tasks.v2.DeleteQueueRequest request, + io.grpc.stub.StreamObserver
+ * Purges a queue by deleting all of its tasks. + * All tasks created before this method is called are permanently deleted. + * Purge operations can take up to one minute to take effect. Tasks + * might be dispatched before the purge takes effect. A purge is irreversible. + *+ */ + public void purgeQueue( + com.google.cloud.tasks.v2.PurgeQueueRequest request, + io.grpc.stub.StreamObserver
+ * Pauses the queue. + * If a queue is paused then the system will stop dispatching tasks + * until the queue is resumed via + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added + * when the queue is paused. A queue is paused if its + * [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. + *+ */ + public void pauseQueue( + com.google.cloud.tasks.v2.PauseQueueRequest request, + io.grpc.stub.StreamObserver
+ * Resume a queue. + * This method resumes a queue after it has been + * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or + * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored + * in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it + * will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. + * WARNING: Resuming many high-QPS queues at the same time can + * lead to target overloading. If you are resuming high-QPS + * queues, follow the 500/50/5 pattern described in + * [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). + *+ */ + public void resumeQueue( + com.google.cloud.tasks.v2.ResumeQueueRequest request, + io.grpc.stub.StreamObserver
+ * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. + * Returns an empty policy if the resource exists and does not have a policy + * set. + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: + * * `cloudtasks.queues.getIamPolicy` + *+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing + * policy. + * Note: The Cloud Console does not check queue-level IAM permissions yet. + * Project-level permissions are required to use the Cloud Console. + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: + * * `cloudtasks.queues.setIamPolicy` + *+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. + * If the resource does not exist, this will return an empty set of + * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. + * Note: This operation is designed to be used for building permission-aware + * UIs and command-line tools, not for authorization checking. This operation + * may "fail open" without warning. + *+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver
+ * Lists the tasks in a queue. + * By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved + * due to performance considerations; + * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the + * subset of information which is returned. + * The tasks may be returned in any order. The ordering may change at any + * time. + *+ */ + public void listTasks( + com.google.cloud.tasks.v2.ListTasksRequest request, + io.grpc.stub.StreamObserver
+ * Gets a task. + *+ */ + public void getTask( + com.google.cloud.tasks.v2.GetTaskRequest request, + io.grpc.stub.StreamObserver
+ * Creates a task and adds it to a queue. + * Tasks cannot be updated after creation; there is no UpdateTask command. + * * For [App Engine queues][google.cloud.tasks.v2.AppEngineHttpQueue], the maximum task size is + * 100KB. + *+ */ + public void createTask( + com.google.cloud.tasks.v2.CreateTaskRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a task. + * A task can be deleted if it is scheduled or dispatched. A task + * cannot be deleted if it has executed successfully or permanently + * failed. + *+ */ + public void deleteTask( + com.google.cloud.tasks.v2.DeleteTaskRequest request, + io.grpc.stub.StreamObserver
+ * Forces a task to run now. + * When this method is called, Cloud Tasks will dispatch the task, even if + * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or + * is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. + * This command is meant to be used for manual debugging. For + * example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed + * task after a fix has been made or to manually force a task to be + * dispatched now. + * The dispatched task is returned. That is, the task that is returned + * contains the [status][Task.status] after the task is dispatched but + * before the task is received by its target. + * If Cloud Tasks receives a successful response from the task's + * target, then the task will be deleted; otherwise the task's + * [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that + * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified + * in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. + * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns + * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a + * task that has already succeeded or permanently failed. + *+ */ + public void runTask( + com.google.cloud.tasks.v2.RunTaskRequest request, + io.grpc.stub.StreamObserver
+ * Cloud Tasks allows developers to manage the execution of background + * work in their applications. + *+ */ + public static final class CloudTasksStub extends io.grpc.stub.AbstractStub
+ * Lists queues. + * Queues are returned in lexicographical order. + *+ */ + public void listQueues( + com.google.cloud.tasks.v2.ListQueuesRequest request, + io.grpc.stub.StreamObserver
+ * Gets a queue. + *+ */ + public void getQueue( + com.google.cloud.tasks.v2.GetQueueRequest request, + io.grpc.stub.StreamObserver
+ * Creates a queue. + * Queues created with this method allow tasks to live for a maximum of 31 + * days. After a task is 31 days old, the task will be deleted regardless of whether + * it was dispatched or not. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public void createQueue( + com.google.cloud.tasks.v2.CreateQueueRequest request, + io.grpc.stub.StreamObserver
+ * Updates a queue. + * This method creates the queue if it does not exist and updates + * the queue if it does exist. + * Queues created with this method allow tasks to live for a maximum of 31 + * days. After a task is 31 days old, the task will be deleted regardless of whether + * it was dispatched or not. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public void updateQueue( + com.google.cloud.tasks.v2.UpdateQueueRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a queue. + * This command will delete the queue even if it has tasks in it. + * Note: If you delete a queue, a queue with the same name can't be created + * for 7 days. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public void deleteQueue( + com.google.cloud.tasks.v2.DeleteQueueRequest request, + io.grpc.stub.StreamObserver
+ * Purges a queue by deleting all of its tasks. + * All tasks created before this method is called are permanently deleted. + * Purge operations can take up to one minute to take effect. Tasks + * might be dispatched before the purge takes effect. A purge is irreversible. + *+ */ + public void purgeQueue( + com.google.cloud.tasks.v2.PurgeQueueRequest request, + io.grpc.stub.StreamObserver
+ * Pauses the queue. + * If a queue is paused then the system will stop dispatching tasks + * until the queue is resumed via + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added + * when the queue is paused. A queue is paused if its + * [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. + *+ */ + public void pauseQueue( + com.google.cloud.tasks.v2.PauseQueueRequest request, + io.grpc.stub.StreamObserver
+ * Resume a queue. + * This method resumes a queue after it has been + * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or + * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored + * in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it + * will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. + * WARNING: Resuming many high-QPS queues at the same time can + * lead to target overloading. If you are resuming high-QPS + * queues, follow the 500/50/5 pattern described in + * [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). + *+ */ + public void resumeQueue( + com.google.cloud.tasks.v2.ResumeQueueRequest request, + io.grpc.stub.StreamObserver
+ * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. + * Returns an empty policy if the resource exists and does not have a policy + * set. + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: + * * `cloudtasks.queues.getIamPolicy` + *+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing + * policy. + * Note: The Cloud Console does not check queue-level IAM permissions yet. + * Project-level permissions are required to use the Cloud Console. + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: + * * `cloudtasks.queues.setIamPolicy` + *+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver
+ * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. + * If the resource does not exist, this will return an empty set of + * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. + * Note: This operation is designed to be used for building permission-aware + * UIs and command-line tools, not for authorization checking. This operation + * may "fail open" without warning. + *+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver
+ * Lists the tasks in a queue. + * By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved + * due to performance considerations; + * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the + * subset of information which is returned. + * The tasks may be returned in any order. The ordering may change at any + * time. + *+ */ + public void listTasks( + com.google.cloud.tasks.v2.ListTasksRequest request, + io.grpc.stub.StreamObserver
+ * Gets a task. + *+ */ + public void getTask( + com.google.cloud.tasks.v2.GetTaskRequest request, + io.grpc.stub.StreamObserver
+ * Creates a task and adds it to a queue. + * Tasks cannot be updated after creation; there is no UpdateTask command. + * * For [App Engine queues][google.cloud.tasks.v2.AppEngineHttpQueue], the maximum task size is + * 100KB. + *+ */ + public void createTask( + com.google.cloud.tasks.v2.CreateTaskRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a task. + * A task can be deleted if it is scheduled or dispatched. A task + * cannot be deleted if it has executed successfully or permanently + * failed. + *+ */ + public void deleteTask( + com.google.cloud.tasks.v2.DeleteTaskRequest request, + io.grpc.stub.StreamObserver
+ * Forces a task to run now. + * When this method is called, Cloud Tasks will dispatch the task, even if + * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or + * is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. + * This command is meant to be used for manual debugging. For + * example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed + * task after a fix has been made or to manually force a task to be + * dispatched now. + * The dispatched task is returned. That is, the task that is returned + * contains the [status][Task.status] after the task is dispatched but + * before the task is received by its target. + * If Cloud Tasks receives a successful response from the task's + * target, then the task will be deleted; otherwise the task's + * [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that + * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified + * in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. + * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns + * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a + * task that has already succeeded or permanently failed. + *+ */ + public void runTask( + com.google.cloud.tasks.v2.RunTaskRequest request, + io.grpc.stub.StreamObserver
+ * Cloud Tasks allows developers to manage the execution of background + * work in their applications. + *+ */ + public static final class CloudTasksBlockingStub + extends io.grpc.stub.AbstractStub
+ * Lists queues. + * Queues are returned in lexicographical order. + *+ */ + public com.google.cloud.tasks.v2.ListQueuesResponse listQueues( + com.google.cloud.tasks.v2.ListQueuesRequest request) { + return blockingUnaryCall( + getChannel(), getListQueuesMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets a queue. + *+ */ + public com.google.cloud.tasks.v2.Queue getQueue( + com.google.cloud.tasks.v2.GetQueueRequest request) { + return blockingUnaryCall(getChannel(), getGetQueueMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a queue. + * Queues created with this method allow tasks to live for a maximum of 31 + * days. After a task is 31 days old, the task will be deleted regardless of whether + * it was dispatched or not. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public com.google.cloud.tasks.v2.Queue createQueue( + com.google.cloud.tasks.v2.CreateQueueRequest request) { + return blockingUnaryCall( + getChannel(), getCreateQueueMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates a queue. + * This method creates the queue if it does not exist and updates + * the queue if it does exist. + * Queues created with this method allow tasks to live for a maximum of 31 + * days. After a task is 31 days old, the task will be deleted regardless of whether + * it was dispatched or not. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public com.google.cloud.tasks.v2.Queue updateQueue( + com.google.cloud.tasks.v2.UpdateQueueRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateQueueMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a queue. + * This command will delete the queue even if it has tasks in it. + * Note: If you delete a queue, a queue with the same name can't be created + * for 7 days. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public com.google.protobuf.Empty deleteQueue( + com.google.cloud.tasks.v2.DeleteQueueRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteQueueMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Purges a queue by deleting all of its tasks. + * All tasks created before this method is called are permanently deleted. + * Purge operations can take up to one minute to take effect. Tasks + * might be dispatched before the purge takes effect. A purge is irreversible. + *+ */ + public com.google.cloud.tasks.v2.Queue purgeQueue( + com.google.cloud.tasks.v2.PurgeQueueRequest request) { + return blockingUnaryCall( + getChannel(), getPurgeQueueMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Pauses the queue. + * If a queue is paused then the system will stop dispatching tasks + * until the queue is resumed via + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added + * when the queue is paused. A queue is paused if its + * [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. + *+ */ + public com.google.cloud.tasks.v2.Queue pauseQueue( + com.google.cloud.tasks.v2.PauseQueueRequest request) { + return blockingUnaryCall( + getChannel(), getPauseQueueMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Resume a queue. + * This method resumes a queue after it has been + * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or + * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored + * in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it + * will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. + * WARNING: Resuming many high-QPS queues at the same time can + * lead to target overloading. If you are resuming high-QPS + * queues, follow the 500/50/5 pattern described in + * [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). + *+ */ + public com.google.cloud.tasks.v2.Queue resumeQueue( + com.google.cloud.tasks.v2.ResumeQueueRequest request) { + return blockingUnaryCall( + getChannel(), getResumeQueueMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. + * Returns an empty policy if the resource exists and does not have a policy + * set. + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: + * * `cloudtasks.queues.getIamPolicy` + *+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getGetIamPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing + * policy. + * Note: The Cloud Console does not check queue-level IAM permissions yet. + * Project-level permissions are required to use the Cloud Console. + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: + * * `cloudtasks.queues.setIamPolicy` + *+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return blockingUnaryCall( + getChannel(), getSetIamPolicyMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. + * If the resource does not exist, this will return an empty set of + * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. + * Note: This operation is designed to be used for building permission-aware + * UIs and command-line tools, not for authorization checking. This operation + * may "fail open" without warning. + *+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return blockingUnaryCall( + getChannel(), getTestIamPermissionsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists the tasks in a queue. + * By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved + * due to performance considerations; + * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the + * subset of information which is returned. + * The tasks may be returned in any order. The ordering may change at any + * time. + *+ */ + public com.google.cloud.tasks.v2.ListTasksResponse listTasks( + com.google.cloud.tasks.v2.ListTasksRequest request) { + return blockingUnaryCall(getChannel(), getListTasksMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets a task. + *+ */ + public com.google.cloud.tasks.v2.Task getTask( + com.google.cloud.tasks.v2.GetTaskRequest request) { + return blockingUnaryCall(getChannel(), getGetTaskMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a task and adds it to a queue. + * Tasks cannot be updated after creation; there is no UpdateTask command. + * * For [App Engine queues][google.cloud.tasks.v2.AppEngineHttpQueue], the maximum task size is + * 100KB. + *+ */ + public com.google.cloud.tasks.v2.Task createTask( + com.google.cloud.tasks.v2.CreateTaskRequest request) { + return blockingUnaryCall( + getChannel(), getCreateTaskMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a task. + * A task can be deleted if it is scheduled or dispatched. A task + * cannot be deleted if it has executed successfully or permanently + * failed. + *+ */ + public com.google.protobuf.Empty deleteTask( + com.google.cloud.tasks.v2.DeleteTaskRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteTaskMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+ * Forces a task to run now. + * When this method is called, Cloud Tasks will dispatch the task, even if + * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or + * is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. + * This command is meant to be used for manual debugging. For + * example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed + * task after a fix has been made or to manually force a task to be + * dispatched now. + * The dispatched task is returned. That is, the task that is returned + * contains the [status][Task.status] after the task is dispatched but + * before the task is received by its target. + * If Cloud Tasks receives a successful response from the task's + * target, then the task will be deleted; otherwise the task's + * [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that + * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified + * in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. + * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns + * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a + * task that has already succeeded or permanently failed. + *+ */ + public com.google.cloud.tasks.v2.Task runTask( + com.google.cloud.tasks.v2.RunTaskRequest request) { + return blockingUnaryCall(getChannel(), getRunTaskMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * Cloud Tasks allows developers to manage the execution of background + * work in their applications. + *+ */ + public static final class CloudTasksFutureStub + extends io.grpc.stub.AbstractStub
+ * Lists queues. + * Queues are returned in lexicographical order. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tasks.v2.ListQueuesResponse> + listQueues(com.google.cloud.tasks.v2.ListQueuesRequest request) { + return futureUnaryCall( + getChannel().newCall(getListQueuesMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets a queue. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a queue. + * Queues created with this method allow tasks to live for a maximum of 31 + * days. After a task is 31 days old, the task will be deleted regardless of whether + * it was dispatched or not. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates a queue. + * This method creates the queue if it does not exist and updates + * the queue if it does exist. + * Queues created with this method allow tasks to live for a maximum of 31 + * days. After a task is 31 days old, the task will be deleted regardless of whether + * it was dispatched or not. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a queue. + * This command will delete the queue even if it has tasks in it. + * Note: If you delete a queue, a queue with the same name can't be created + * for 7 days. + * WARNING: Using this method may have unintended side effects if you are + * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. + * Read + * [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) + * before using this method. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Purges a queue by deleting all of its tasks. + * All tasks created before this method is called are permanently deleted. + * Purge operations can take up to one minute to take effect. Tasks + * might be dispatched before the purge takes effect. A purge is irreversible. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Pauses the queue. + * If a queue is paused then the system will stop dispatching tasks + * until the queue is resumed via + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added + * when the queue is paused. A queue is paused if its + * [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Resume a queue. + * This method resumes a queue after it has been + * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or + * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored + * in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it + * will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. + * WARNING: Resuming many high-QPS queues at the same time can + * lead to target overloading. If you are resuming high-QPS + * queues, follow the 500/50/5 pattern described in + * [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. + * Returns an empty policy if the resource exists and does not have a policy + * set. + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: + * * `cloudtasks.queues.getIamPolicy` + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing + * policy. + * Note: The Cloud Console does not check queue-level IAM permissions yet. + * Project-level permissions are required to use the Cloud Console. + * Authorization requires the following + * [Google IAM](https://cloud.google.com/iam) permission on the specified + * resource parent: + * * `cloudtasks.queues.setIamPolicy` + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. + * If the resource does not exist, this will return an empty set of + * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. + * Note: This operation is designed to be used for building permission-aware + * UIs and command-line tools, not for authorization checking. This operation + * may "fail open" without warning. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Lists the tasks in a queue. + * By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved + * due to performance considerations; + * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the + * subset of information which is returned. + * The tasks may be returned in any order. The ordering may change at any + * time. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tasks.v2.ListTasksResponse> + listTasks(com.google.cloud.tasks.v2.ListTasksRequest request) { + return futureUnaryCall( + getChannel().newCall(getListTasksMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets a task. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a task and adds it to a queue. + * Tasks cannot be updated after creation; there is no UpdateTask command. + * * For [App Engine queues][google.cloud.tasks.v2.AppEngineHttpQueue], the maximum task size is + * 100KB. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a task. + * A task can be deleted if it is scheduled or dispatched. A task + * cannot be deleted if it has executed successfully or permanently + * failed. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Forces a task to run now. + * When this method is called, Cloud Tasks will dispatch the task, even if + * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or + * is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. + * This command is meant to be used for manual debugging. For + * example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed + * task after a fix has been made or to manually force a task to be + * dispatched now. + * The dispatched task is returned. That is, the task that is returned + * contains the [status][Task.status] after the task is dispatched but + * before the task is received by its target. + * If Cloud Tasks receives a successful response from the task's + * target, then the task will be deleted; otherwise the task's + * [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that + * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified + * in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. + * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns + * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a + * task that has already succeeded or permanently failed. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * App Engine HTTP request. + * The message defines the HTTP request that is sent to an App Engine app when + * the task is dispatched. + * This proto can only be used for tasks in a queue which has + * [app_engine_http_queue][Queue.app_engine_http_queue] set. + * Using [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] requires + * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) + * Google IAM permission for the project + * and the following scope: + * `https://www.googleapis.com/auth/cloud-platform` + * The task will be delivered to the App Engine app which belongs to the same + * project as the queue. For more information, see + * [How Requests are + * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and how routing is affected by + * [dispatch + * files](https://cloud.google.com/appengine/docs/python/config/dispatchref). + * Traffic is encrypted during transport and never leaves Google datacenters. + * Because this traffic is carried over a communication mechanism internal to + * Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS). + * The request to the handler, however, will appear to have used the HTTP + * protocol. + * The [AppEngineRouting][google.cloud.tasks.v2.AppEngineRouting] used to construct the URL that the task is + * delivered to can be set at the queue-level or task-level: + * * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting + * is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * The `url` that the task will be sent to is: + * * `url =` [host][google.cloud.tasks.v2.AppEngineRouting.host] `+` + * [relative_uri][google.cloud.tasks.v2.AppEngineHttpRequest.relative_uri] + * Tasks can be dispatched to secure app handlers, unsecure app handlers, and + * URIs restricted with + * [`login: + * admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref). + * Because tasks are not run as any user, they cannot be dispatched to URIs + * restricted with + * [`login: + * required`](https://cloud.google.com/appengine/docs/standard/python/config/appref) + * Task dispatches also do not follow redirects. + * The task attempt has succeeded if the app's request handler returns + * an HTTP response code in the range [`200` - `299`]. `503` is + * considered an App Engine system error instead of an application + * error. Requests returning error `503` will be retried regardless of + * retry configuration and not counted against retry counts. + * Any other response code or a failure to receive a response before the + * deadline is a failed attempt. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.AppEngineHttpRequest} + */ +public final class AppEngineHttpRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.AppEngineHttpRequest) + AppEngineHttpRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AppEngineHttpRequest.newBuilder() to construct. + private AppEngineHttpRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AppEngineHttpRequest() { + httpMethod_ = 0; + relativeUri_ = ""; + body_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AppEngineHttpRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + httpMethod_ = rawValue; + break; + } + case 18: + { + com.google.cloud.tasks.v2.AppEngineRouting.Builder subBuilder = null; + if (appEngineRouting_ != null) { + subBuilder = appEngineRouting_.toBuilder(); + } + appEngineRouting_ = + input.readMessage( + com.google.cloud.tasks.v2.AppEngineRouting.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(appEngineRouting_); + appEngineRouting_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + relativeUri_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + headers_ = + com.google.protobuf.MapField.newMapField( + HeadersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry
+ * The HTTP method to use for the request. The default is POST. + * The app's request handler for the task's target URL must be able to handle + * HTTP requests with this http_method, otherwise the task attempt will fail + * with error code 405 (Method Not Allowed). See + * [Writing a push task request + * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + * and the documentation for the request handlers in the language your app is + * written in e.g. + * [Python Request + * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). + *+ * + *
.google.cloud.tasks.v2.HttpMethod http_method = 1;
+ */
+ public int getHttpMethodValue() {
+ return httpMethod_;
+ }
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. The default is POST. + * The app's request handler for the task's target URL must be able to handle + * HTTP requests with this http_method, otherwise the task attempt will fail + * with error code 405 (Method Not Allowed). See + * [Writing a push task request + * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + * and the documentation for the request handlers in the language your app is + * written in e.g. + * [Python Request + * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). + *+ * + *
.google.cloud.tasks.v2.HttpMethod http_method = 1;
+ */
+ public com.google.cloud.tasks.v2.HttpMethod getHttpMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.tasks.v2.HttpMethod result =
+ com.google.cloud.tasks.v2.HttpMethod.valueOf(httpMethod_);
+ return result == null ? com.google.cloud.tasks.v2.HttpMethod.UNRECOGNIZED : result;
+ }
+
+ public static final int APP_ENGINE_ROUTING_FIELD_NUMBER = 2;
+ private com.google.cloud.tasks.v2.AppEngineRouting appEngineRouting_;
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ public boolean hasAppEngineRouting() {
+ return appEngineRouting_ != null;
+ }
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRouting() {
+ return appEngineRouting_ == null
+ ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance()
+ : appEngineRouting_;
+ }
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() {
+ return getAppEngineRouting();
+ }
+
+ public static final int RELATIVE_URI_FIELD_NUMBER = 3;
+ private volatile java.lang.Object relativeUri_;
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URI must begin with "/" and must be a valid HTTP relative URI. + * It can contain a path and query string arguments. + * If the relative URI is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public java.lang.String getRelativeUri() {
+ java.lang.Object ref = relativeUri_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ relativeUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URI must begin with "/" and must be a valid HTTP relative URI. + * It can contain a path and query string arguments. + * If the relative URI is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public com.google.protobuf.ByteString getRelativeUriBytes() {
+ java.lang.Object ref = relativeUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ relativeUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HEADERS_FIELD_NUMBER = 4;
+
+ private static final class HeadersDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ public boolean containsHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetHeaders().getMap().containsKey(key);
+ }
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.lang.String getHeadersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * HTTP request body. + * A request body is allowed only if the HTTP method is POST or PUT. It is + * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod]. + *+ * + *
bytes body = 5;
+ */
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (httpMethod_ != com.google.cloud.tasks.v2.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) {
+ output.writeEnum(1, httpMethod_);
+ }
+ if (appEngineRouting_ != null) {
+ output.writeMessage(2, getAppEngineRouting());
+ }
+ if (!getRelativeUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeUri_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 4);
+ if (!body_.isEmpty()) {
+ output.writeBytes(5, body_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (httpMethod_ != com.google.cloud.tasks.v2.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, httpMethod_);
+ }
+ if (appEngineRouting_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAppEngineRouting());
+ }
+ if (!getRelativeUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeUri_);
+ }
+ for (java.util.Map.Entry+ * App Engine HTTP request. + * The message defines the HTTP request that is sent to an App Engine app when + * the task is dispatched. + * This proto can only be used for tasks in a queue which has + * [app_engine_http_queue][Queue.app_engine_http_queue] set. + * Using [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] requires + * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) + * Google IAM permission for the project + * and the following scope: + * `https://www.googleapis.com/auth/cloud-platform` + * The task will be delivered to the App Engine app which belongs to the same + * project as the queue. For more information, see + * [How Requests are + * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and how routing is affected by + * [dispatch + * files](https://cloud.google.com/appengine/docs/python/config/dispatchref). + * Traffic is encrypted during transport and never leaves Google datacenters. + * Because this traffic is carried over a communication mechanism internal to + * Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS). + * The request to the handler, however, will appear to have used the HTTP + * protocol. + * The [AppEngineRouting][google.cloud.tasks.v2.AppEngineRouting] used to construct the URL that the task is + * delivered to can be set at the queue-level or task-level: + * * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting + * is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * The `url` that the task will be sent to is: + * * `url =` [host][google.cloud.tasks.v2.AppEngineRouting.host] `+` + * [relative_uri][google.cloud.tasks.v2.AppEngineHttpRequest.relative_uri] + * Tasks can be dispatched to secure app handlers, unsecure app handlers, and + * URIs restricted with + * [`login: + * admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref). + * Because tasks are not run as any user, they cannot be dispatched to URIs + * restricted with + * [`login: + * required`](https://cloud.google.com/appengine/docs/standard/python/config/appref) + * Task dispatches also do not follow redirects. + * The task attempt has succeeded if the app's request handler returns + * an HTTP response code in the range [`200` - `299`]. `503` is + * considered an App Engine system error instead of an application + * error. Requests returning error `503` will be retried regardless of + * retry configuration and not counted against retry counts. + * Any other response code or a failure to receive a response before the + * deadline is a failed attempt. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.AppEngineHttpRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The HTTP method to use for the request. The default is POST. + * The app's request handler for the task's target URL must be able to handle + * HTTP requests with this http_method, otherwise the task attempt will fail + * with error code 405 (Method Not Allowed). See + * [Writing a push task request + * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + * and the documentation for the request handlers in the language your app is + * written in e.g. + * [Python Request + * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). + *+ * + *
.google.cloud.tasks.v2.HttpMethod http_method = 1;
+ */
+ public int getHttpMethodValue() {
+ return httpMethod_;
+ }
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. The default is POST. + * The app's request handler for the task's target URL must be able to handle + * HTTP requests with this http_method, otherwise the task attempt will fail + * with error code 405 (Method Not Allowed). See + * [Writing a push task request + * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + * and the documentation for the request handlers in the language your app is + * written in e.g. + * [Python Request + * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). + *+ * + *
.google.cloud.tasks.v2.HttpMethod http_method = 1;
+ */
+ public Builder setHttpMethodValue(int value) {
+ httpMethod_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. The default is POST. + * The app's request handler for the task's target URL must be able to handle + * HTTP requests with this http_method, otherwise the task attempt will fail + * with error code 405 (Method Not Allowed). See + * [Writing a push task request + * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + * and the documentation for the request handlers in the language your app is + * written in e.g. + * [Python Request + * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). + *+ * + *
.google.cloud.tasks.v2.HttpMethod http_method = 1;
+ */
+ public com.google.cloud.tasks.v2.HttpMethod getHttpMethod() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.tasks.v2.HttpMethod result =
+ com.google.cloud.tasks.v2.HttpMethod.valueOf(httpMethod_);
+ return result == null ? com.google.cloud.tasks.v2.HttpMethod.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. The default is POST. + * The app's request handler for the task's target URL must be able to handle + * HTTP requests with this http_method, otherwise the task attempt will fail + * with error code 405 (Method Not Allowed). See + * [Writing a push task request + * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + * and the documentation for the request handlers in the language your app is + * written in e.g. + * [Python Request + * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). + *+ * + *
.google.cloud.tasks.v2.HttpMethod http_method = 1;
+ */
+ public Builder setHttpMethod(com.google.cloud.tasks.v2.HttpMethod value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ httpMethod_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. The default is POST. + * The app's request handler for the task's target URL must be able to handle + * HTTP requests with this http_method, otherwise the task attempt will fail + * with error code 405 (Method Not Allowed). See + * [Writing a push task request + * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + * and the documentation for the request handlers in the language your app is + * written in e.g. + * [Python Request + * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). + *+ * + *
.google.cloud.tasks.v2.HttpMethod http_method = 1;
+ */
+ public Builder clearHttpMethod() {
+
+ httpMethod_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.tasks.v2.AppEngineRouting appEngineRouting_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.AppEngineRouting,
+ com.google.cloud.tasks.v2.AppEngineRouting.Builder,
+ com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder>
+ appEngineRoutingBuilder_;
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ public boolean hasAppEngineRouting() {
+ return appEngineRoutingBuilder_ != null || appEngineRouting_ != null;
+ }
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRouting() {
+ if (appEngineRoutingBuilder_ == null) {
+ return appEngineRouting_ == null
+ ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance()
+ : appEngineRouting_;
+ } else {
+ return appEngineRoutingBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ public Builder setAppEngineRouting(com.google.cloud.tasks.v2.AppEngineRouting value) {
+ if (appEngineRoutingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ appEngineRouting_ = value;
+ onChanged();
+ } else {
+ appEngineRoutingBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ public Builder setAppEngineRouting(
+ com.google.cloud.tasks.v2.AppEngineRouting.Builder builderForValue) {
+ if (appEngineRoutingBuilder_ == null) {
+ appEngineRouting_ = builderForValue.build();
+ onChanged();
+ } else {
+ appEngineRoutingBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ public Builder mergeAppEngineRouting(com.google.cloud.tasks.v2.AppEngineRouting value) {
+ if (appEngineRoutingBuilder_ == null) {
+ if (appEngineRouting_ != null) {
+ appEngineRouting_ =
+ com.google.cloud.tasks.v2.AppEngineRouting.newBuilder(appEngineRouting_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ appEngineRouting_ = value;
+ }
+ onChanged();
+ } else {
+ appEngineRoutingBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ public Builder clearAppEngineRouting() {
+ if (appEngineRoutingBuilder_ == null) {
+ appEngineRouting_ = null;
+ onChanged();
+ } else {
+ appEngineRouting_ = null;
+ appEngineRoutingBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.tasks.v2.AppEngineRouting.Builder getAppEngineRoutingBuilder() {
+
+ onChanged();
+ return getAppEngineRoutingFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ public com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() {
+ if (appEngineRoutingBuilder_ != null) {
+ return appEngineRoutingBuilder_.getMessageOrBuilder();
+ } else {
+ return appEngineRouting_ == null
+ ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance()
+ : appEngineRouting_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.AppEngineRouting,
+ com.google.cloud.tasks.v2.AppEngineRouting.Builder,
+ com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder>
+ getAppEngineRoutingFieldBuilder() {
+ if (appEngineRoutingBuilder_ == null) {
+ appEngineRoutingBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.AppEngineRouting,
+ com.google.cloud.tasks.v2.AppEngineRouting.Builder,
+ com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder>(
+ getAppEngineRouting(), getParentForChildren(), isClean());
+ appEngineRouting_ = null;
+ }
+ return appEngineRoutingBuilder_;
+ }
+
+ private java.lang.Object relativeUri_ = "";
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URI must begin with "/" and must be a valid HTTP relative URI. + * It can contain a path and query string arguments. + * If the relative URI is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public java.lang.String getRelativeUri() {
+ java.lang.Object ref = relativeUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ relativeUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URI must begin with "/" and must be a valid HTTP relative URI. + * It can contain a path and query string arguments. + * If the relative URI is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public com.google.protobuf.ByteString getRelativeUriBytes() {
+ java.lang.Object ref = relativeUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ relativeUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URI must begin with "/" and must be a valid HTTP relative URI. + * It can contain a path and query string arguments. + * If the relative URI is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public Builder setRelativeUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ relativeUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URI must begin with "/" and must be a valid HTTP relative URI. + * It can contain a path and query string arguments. + * If the relative URI is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public Builder clearRelativeUri() {
+
+ relativeUri_ = getDefaultInstance().getRelativeUri();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URI must begin with "/" and must be a valid HTTP relative URI. + * It can contain a path and query string arguments. + * If the relative URI is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ public Builder setRelativeUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ relativeUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ public boolean containsHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetHeaders().getMap().containsKey(key);
+ }
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.lang.String getHeadersOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ public java.lang.String getHeadersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ public Builder removeHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableHeaders().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ public Builder putHeaders(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableHeaders().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ public Builder putAllHeaders(java.util.Map+ * HTTP request body. + * A request body is allowed only if the HTTP method is POST or PUT. It is + * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod]. + *+ * + *
bytes body = 5;
+ */
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+ /**
+ *
+ *
+ * + * HTTP request body. + * A request body is allowed only if the HTTP method is POST or PUT. It is + * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod]. + *+ * + *
bytes body = 5;
+ */
+ public Builder setBody(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ body_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * HTTP request body. + * A request body is allowed only if the HTTP method is POST or PUT. It is + * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod]. + *+ * + *
bytes body = 5;
+ */
+ public Builder clearBody() {
+
+ body_ = getDefaultInstance().getBody();
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.AppEngineHttpRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.AppEngineHttpRequest)
+ private static final com.google.cloud.tasks.v2.AppEngineHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.AppEngineHttpRequest();
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The HTTP method to use for the request. The default is POST. + * The app's request handler for the task's target URL must be able to handle + * HTTP requests with this http_method, otherwise the task attempt will fail + * with error code 405 (Method Not Allowed). See + * [Writing a push task request + * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + * and the documentation for the request handlers in the language your app is + * written in e.g. + * [Python Request + * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). + *+ * + *
.google.cloud.tasks.v2.HttpMethod http_method = 1;
+ */
+ int getHttpMethodValue();
+ /**
+ *
+ *
+ * + * The HTTP method to use for the request. The default is POST. + * The app's request handler for the task's target URL must be able to handle + * HTTP requests with this http_method, otherwise the task attempt will fail + * with error code 405 (Method Not Allowed). See + * [Writing a push task request + * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) + * and the documentation for the request handlers in the language your app is + * written in e.g. + * [Python Request + * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). + *+ * + *
.google.cloud.tasks.v2.HttpMethod http_method = 1;
+ */
+ com.google.cloud.tasks.v2.HttpMethod getHttpMethod();
+
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ boolean hasAppEngineRouting();
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRouting();
+ /**
+ *
+ *
+ * + * Task-level setting for App Engine routing. + * If set, + * [app_engine_routing_override][google.cloud.tasks.v2.AppEngineHttpQueue.app_engine_routing_override] + * is used for all tasks in the queue, no matter what the setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2;
+ */
+ com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder();
+
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URI must begin with "/" and must be a valid HTTP relative URI. + * It can contain a path and query string arguments. + * If the relative URI is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ java.lang.String getRelativeUri();
+ /**
+ *
+ *
+ * + * The relative URI. + * The relative URI must begin with "/" and must be a valid HTTP relative URI. + * It can contain a path and query string arguments. + * If the relative URI is empty, then the root path "/" will be used. + * No spaces are allowed, and the maximum length allowed is 2083 characters. + *+ * + *
string relative_uri = 3;
+ */
+ com.google.protobuf.ByteString getRelativeUriBytes();
+
+ /**
+ *
+ *
+ * + * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ int getHeadersCount();
+ /**
+ *
+ *
+ * + * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ boolean containsHeaders(java.lang.String key);
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ java.util.Map+ * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /**
+ *
+ *
+ * + * HTTP request headers. + * This map contains the header field names and values. + * Headers can be set when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * Repeated headers are not supported but a header value can contain commas. + * Cloud Tasks sets some headers to default values: + * * `User-Agent`: By default, this header is + * `"AppEngine-Google; (+http://code.google.com/appengine)"`. + * This header can be modified, but Cloud Tasks will append + * `"AppEngine-Google; (+http://code.google.com/appengine)"` to the + * modified `User-Agent`. + * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud + * Tasks sets the following headers: + * * `Content-Type`: By default, the `Content-Type` header is set to + * `"application/octet-stream"`. The default can be overridden by explicitly + * setting `Content-Type` to a particular media type when the + * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. + * For example, `Content-Type` can be set to `"application/json"`. + * * `Content-Length`: This is computed by Cloud Tasks. This value is + * output only. It cannot be changed. + * The headers below cannot be set or overridden: + * * `Host` + * * `X-Google-*` + * * `X-AppEngine-*` + * In addition, Cloud Tasks sets some headers when the task is dispatched, + * such as headers containing information about the task; see + * [request + * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). + * These headers are set only when the task is dispatched, so they are not + * visible when the task is returned in a Cloud Tasks response. + * Although there is no specific limit for the maximum number of headers or + * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more + * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. + *+ * + *
map<string, string> headers = 4;
+ */
+ java.lang.String getHeadersOrThrow(java.lang.String key);
+
+ /**
+ *
+ *
+ * + * HTTP request body. + * A request body is allowed only if the HTTP method is POST or PUT. It is + * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod]. + *+ * + *
bytes body = 5;
+ */
+ com.google.protobuf.ByteString getBody();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java
new file mode 100644
index 000000000000..5bb726abe0e2
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java
@@ -0,0 +1,1409 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/target.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * App Engine Routing. + * Defines routing characteristics specific to App Engine - service, version, + * and instance. + * For more information about services, versions, and instances see + * [An Overview of App + * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), + * [Microservices Architecture on Google App + * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + * Protobuf type {@code google.cloud.tasks.v2.AppEngineRouting} + */ +public final class AppEngineRouting extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.AppEngineRouting) + AppEngineRoutingOrBuilder { + private static final long serialVersionUID = 0L; + // Use AppEngineRouting.newBuilder() to construct. + private AppEngineRouting(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AppEngineRouting() { + service_ = ""; + version_ = ""; + instance_ = ""; + host_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AppEngineRouting( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + service_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + instance_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + host_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.TargetProto + .internal_static_google_cloud_tasks_v2_AppEngineRouting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.TargetProto + .internal_static_google_cloud_tasks_v2_AppEngineRouting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.AppEngineRouting.class, + com.google.cloud.tasks.v2.AppEngineRouting.Builder.class); + } + + public static final int SERVICE_FIELD_NUMBER = 1; + private volatile java.lang.Object service_; + /** + * + * + *
+ * App service. + * By default, the task is sent to the service which is the default + * service when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string service = 1;
+ */
+ public java.lang.String getService() {
+ java.lang.Object ref = service_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ service_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * App service. + * By default, the task is sent to the service which is the default + * service when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string service = 1;
+ */
+ public com.google.protobuf.ByteString getServiceBytes() {
+ java.lang.Object ref = service_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ service_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object version_;
+ /**
+ *
+ *
+ * + * App version. + * By default, the task is sent to the version which is the default + * version when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * App version. + * By default, the task is sent to the version which is the default + * version when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string version = 2;
+ */
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object instance_;
+ /**
+ *
+ *
+ * + * App instance. + * By default, the task is sent to an instance which is available when + * the task is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public java.lang.String getInstance() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instance_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * App instance. + * By default, the task is sent to an instance which is available when + * the task is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public com.google.protobuf.ByteString getInstanceBytes() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HOST_FIELD_NUMBER = 4;
+ private volatile java.lang.Object host_;
+ /**
+ *
+ *
+ * + * Output only. The host that the task is sent to. + * The host is constructed from the domain name of the app associated with + * the queue's project ID (for example <app-id>.appspot.com), and the + * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version], + * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using + * the App Engine SDK might have a custom domain name. + * For more information, see + * [How Requests are + * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + *+ * + *
string host = 4;
+ */
+ public java.lang.String getHost() {
+ java.lang.Object ref = host_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ host_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The host that the task is sent to. + * The host is constructed from the domain name of the app associated with + * the queue's project ID (for example <app-id>.appspot.com), and the + * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version], + * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using + * the App Engine SDK might have a custom domain name. + * For more information, see + * [How Requests are + * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + *+ * + *
string host = 4;
+ */
+ public com.google.protobuf.ByteString getHostBytes() {
+ java.lang.Object ref = host_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ host_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getServiceBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_);
+ }
+ if (!getVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
+ }
+ if (!getInstanceBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_);
+ }
+ if (!getHostBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getServiceBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_);
+ }
+ if (!getVersionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
+ }
+ if (!getInstanceBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_);
+ }
+ if (!getHostBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.AppEngineRouting)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.AppEngineRouting other =
+ (com.google.cloud.tasks.v2.AppEngineRouting) obj;
+
+ if (!getService().equals(other.getService())) return false;
+ if (!getVersion().equals(other.getVersion())) return false;
+ if (!getInstance().equals(other.getInstance())) return false;
+ if (!getHost().equals(other.getHost())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SERVICE_FIELD_NUMBER;
+ hash = (53 * hash) + getService().hashCode();
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstance().hashCode();
+ hash = (37 * hash) + HOST_FIELD_NUMBER;
+ hash = (53 * hash) + getHost().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.AppEngineRouting prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * App Engine Routing. + * Defines routing characteristics specific to App Engine - service, version, + * and instance. + * For more information about services, versions, and instances see + * [An Overview of App + * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), + * [Microservices Architecture on Google App + * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + * Protobuf type {@code google.cloud.tasks.v2.AppEngineRouting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * App service. + * By default, the task is sent to the service which is the default + * service when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string service = 1;
+ */
+ public java.lang.String getService() {
+ java.lang.Object ref = service_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ service_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App service. + * By default, the task is sent to the service which is the default + * service when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string service = 1;
+ */
+ public com.google.protobuf.ByteString getServiceBytes() {
+ java.lang.Object ref = service_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ service_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App service. + * By default, the task is sent to the service which is the default + * service when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string service = 1;
+ */
+ public Builder setService(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ service_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App service. + * By default, the task is sent to the service which is the default + * service when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string service = 1;
+ */
+ public Builder clearService() {
+
+ service_ = getDefaultInstance().getService();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App service. + * By default, the task is sent to the service which is the default + * service when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string service = 1;
+ */
+ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ service_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object version_ = "";
+ /**
+ *
+ *
+ * + * App version. + * By default, the task is sent to the version which is the default + * version when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App version. + * By default, the task is sent to the version which is the default + * version when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string version = 2;
+ */
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App version. + * By default, the task is sent to the version which is the default + * version when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string version = 2;
+ */
+ public Builder setVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App version. + * By default, the task is sent to the version which is the default + * version when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string version = 2;
+ */
+ public Builder clearVersion() {
+
+ version_ = getDefaultInstance().getVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App version. + * By default, the task is sent to the version which is the default + * version when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string version = 2;
+ */
+ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instance_ = "";
+ /**
+ *
+ *
+ * + * App instance. + * By default, the task is sent to an instance which is available when + * the task is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public java.lang.String getInstance() {
+ java.lang.Object ref = instance_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instance_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App instance. + * By default, the task is sent to an instance which is available when + * the task is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public com.google.protobuf.ByteString getInstanceBytes() {
+ java.lang.Object ref = instance_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instance_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * App instance. + * By default, the task is sent to an instance which is available when + * the task is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public Builder setInstance(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ instance_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App instance. + * By default, the task is sent to an instance which is available when + * the task is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public Builder clearInstance() {
+
+ instance_ = getDefaultInstance().getInstance();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * App instance. + * By default, the task is sent to an instance which is available when + * the task is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ public Builder setInstanceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ instance_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object host_ = "";
+ /**
+ *
+ *
+ * + * Output only. The host that the task is sent to. + * The host is constructed from the domain name of the app associated with + * the queue's project ID (for example <app-id>.appspot.com), and the + * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version], + * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using + * the App Engine SDK might have a custom domain name. + * For more information, see + * [How Requests are + * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + *+ * + *
string host = 4;
+ */
+ public java.lang.String getHost() {
+ java.lang.Object ref = host_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ host_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The host that the task is sent to. + * The host is constructed from the domain name of the app associated with + * the queue's project ID (for example <app-id>.appspot.com), and the + * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version], + * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using + * the App Engine SDK might have a custom domain name. + * For more information, see + * [How Requests are + * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + *+ * + *
string host = 4;
+ */
+ public com.google.protobuf.ByteString getHostBytes() {
+ java.lang.Object ref = host_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ host_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The host that the task is sent to. + * The host is constructed from the domain name of the app associated with + * the queue's project ID (for example <app-id>.appspot.com), and the + * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version], + * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using + * the App Engine SDK might have a custom domain name. + * For more information, see + * [How Requests are + * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + *+ * + *
string host = 4;
+ */
+ public Builder setHost(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ host_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The host that the task is sent to. + * The host is constructed from the domain name of the app associated with + * the queue's project ID (for example <app-id>.appspot.com), and the + * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version], + * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using + * the App Engine SDK might have a custom domain name. + * For more information, see + * [How Requests are + * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + *+ * + *
string host = 4;
+ */
+ public Builder clearHost() {
+
+ host_ = getDefaultInstance().getHost();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The host that the task is sent to. + * The host is constructed from the domain name of the app associated with + * the queue's project ID (for example <app-id>.appspot.com), and the + * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version], + * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using + * the App Engine SDK might have a custom domain name. + * For more information, see + * [How Requests are + * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + *+ * + *
string host = 4;
+ */
+ public Builder setHostBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ host_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.AppEngineRouting)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.AppEngineRouting)
+ private static final com.google.cloud.tasks.v2.AppEngineRouting DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.AppEngineRouting();
+ }
+
+ public static com.google.cloud.tasks.v2.AppEngineRouting getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * App service. + * By default, the task is sent to the service which is the default + * service when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string service = 1;
+ */
+ java.lang.String getService();
+ /**
+ *
+ *
+ * + * App service. + * By default, the task is sent to the service which is the default + * service when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string service = 1;
+ */
+ com.google.protobuf.ByteString getServiceBytes();
+
+ /**
+ *
+ *
+ * + * App version. + * By default, the task is sent to the version which is the default + * version when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string version = 2;
+ */
+ java.lang.String getVersion();
+ /**
+ *
+ *
+ * + * App version. + * By default, the task is sent to the version which is the default + * version when the task is attempted. + * For some queues or tasks which were created using the App Engine + * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable + * into [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks + * which were created using the App Engine SDK use a custom domain + * name; custom domains are not parsed by Cloud Tasks. If + * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then + * [service][google.cloud.tasks.v2.AppEngineRouting.service], + * [version][google.cloud.tasks.v2.AppEngineRouting.version], and + * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. + *+ * + *
string version = 2;
+ */
+ com.google.protobuf.ByteString getVersionBytes();
+
+ /**
+ *
+ *
+ * + * App instance. + * By default, the task is sent to an instance which is available when + * the task is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ java.lang.String getInstance();
+ /**
+ *
+ *
+ * + * App instance. + * By default, the task is sent to an instance which is available when + * the task is attempted. + * Requests can only be sent to a specific instance if + * [manual scaling is used in App Engine + * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). + * App Engine Flex does not support instances. For more information, see + * [App Engine Standard request + * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) + * and [App Engine Flex request + * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). + *+ * + *
string instance = 3;
+ */
+ com.google.protobuf.ByteString getInstanceBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The host that the task is sent to. + * The host is constructed from the domain name of the app associated with + * the queue's project ID (for example <app-id>.appspot.com), and the + * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version], + * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using + * the App Engine SDK might have a custom domain name. + * For more information, see + * [How Requests are + * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + *+ * + *
string host = 4;
+ */
+ java.lang.String getHost();
+ /**
+ *
+ *
+ * + * Output only. The host that the task is sent to. + * The host is constructed from the domain name of the app associated with + * the queue's project ID (for example <app-id>.appspot.com), and the + * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version], + * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using + * the App Engine SDK might have a custom domain name. + * For more information, see + * [How Requests are + * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). + *+ * + *
string host = 4;
+ */
+ com.google.protobuf.ByteString getHostBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java
new file mode 100644
index 000000000000..05798497da7d
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java
@@ -0,0 +1,1543 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/task.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * The status of a task attempt. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.Attempt} + */ +public final class Attempt extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.Attempt) + AttemptOrBuilder { + private static final long serialVersionUID = 0L; + // Use Attempt.newBuilder() to construct. + private Attempt(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Attempt() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Attempt( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); + } + scheduleTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (dispatchTime_ != null) { + subBuilder = dispatchTime_.toBuilder(); + } + dispatchTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dispatchTime_); + dispatchTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (responseTime_ != null) { + subBuilder = responseTime_.toBuilder(); + } + responseTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(responseTime_); + responseTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.rpc.Status.Builder subBuilder = null; + if (responseStatus_ != null) { + subBuilder = responseStatus_.toBuilder(); + } + responseStatus_ = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(responseStatus_); + responseStatus_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.TaskProto + .internal_static_google_cloud_tasks_v2_Attempt_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.TaskProto + .internal_static_google_cloud_tasks_v2_Attempt_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.Attempt.class, + com.google.cloud.tasks.v2.Attempt.Builder.class); + } + + public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp scheduleTime_; + /** + * + * + *
+ * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ public boolean hasScheduleTime() {
+ return scheduleTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ public com.google.protobuf.Timestamp getScheduleTime() {
+ return scheduleTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : scheduleTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
+ return getScheduleTime();
+ }
+
+ public static final int DISPATCH_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp dispatchTime_;
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ public boolean hasDispatchTime() {
+ return dispatchTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ public com.google.protobuf.Timestamp getDispatchTime() {
+ return dispatchTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : dispatchTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder() {
+ return getDispatchTime();
+ }
+
+ public static final int RESPONSE_TIME_FIELD_NUMBER = 3;
+ private com.google.protobuf.Timestamp responseTime_;
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ public boolean hasResponseTime() {
+ return responseTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ public com.google.protobuf.Timestamp getResponseTime() {
+ return responseTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : responseTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
+ return getResponseTime();
+ }
+
+ public static final int RESPONSE_STATUS_FIELD_NUMBER = 4;
+ private com.google.rpc.Status responseStatus_;
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ public boolean hasResponseStatus() {
+ return responseStatus_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ public com.google.rpc.Status getResponseStatus() {
+ return responseStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : responseStatus_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ public com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder() {
+ return getResponseStatus();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (scheduleTime_ != null) {
+ output.writeMessage(1, getScheduleTime());
+ }
+ if (dispatchTime_ != null) {
+ output.writeMessage(2, getDispatchTime());
+ }
+ if (responseTime_ != null) {
+ output.writeMessage(3, getResponseTime());
+ }
+ if (responseStatus_ != null) {
+ output.writeMessage(4, getResponseStatus());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (scheduleTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime());
+ }
+ if (dispatchTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDispatchTime());
+ }
+ if (responseTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponseTime());
+ }
+ if (responseStatus_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponseStatus());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.Attempt)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.Attempt other = (com.google.cloud.tasks.v2.Attempt) obj;
+
+ if (hasScheduleTime() != other.hasScheduleTime()) return false;
+ if (hasScheduleTime()) {
+ if (!getScheduleTime().equals(other.getScheduleTime())) return false;
+ }
+ if (hasDispatchTime() != other.hasDispatchTime()) return false;
+ if (hasDispatchTime()) {
+ if (!getDispatchTime().equals(other.getDispatchTime())) return false;
+ }
+ if (hasResponseTime() != other.hasResponseTime()) return false;
+ if (hasResponseTime()) {
+ if (!getResponseTime().equals(other.getResponseTime())) return false;
+ }
+ if (hasResponseStatus() != other.hasResponseStatus()) return false;
+ if (hasResponseStatus()) {
+ if (!getResponseStatus().equals(other.getResponseStatus())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasScheduleTime()) {
+ hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getScheduleTime().hashCode();
+ }
+ if (hasDispatchTime()) {
+ hash = (37 * hash) + DISPATCH_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getDispatchTime().hashCode();
+ }
+ if (hasResponseTime()) {
+ hash = (37 * hash) + RESPONSE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getResponseTime().hashCode();
+ }
+ if (hasResponseStatus()) {
+ hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getResponseStatus().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.Attempt prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The status of a task attempt. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.Attempt} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ public boolean hasScheduleTime() {
+ return scheduleTimeBuilder_ != null || scheduleTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ public com.google.protobuf.Timestamp getScheduleTime() {
+ if (scheduleTimeBuilder_ == null) {
+ return scheduleTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : scheduleTime_;
+ } else {
+ return scheduleTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
+ if (scheduleTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ scheduleTime_ = value;
+ onChanged();
+ } else {
+ scheduleTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (scheduleTimeBuilder_ == null) {
+ scheduleTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ scheduleTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
+ if (scheduleTimeBuilder_ == null) {
+ if (scheduleTime_ != null) {
+ scheduleTime_ =
+ com.google.protobuf.Timestamp.newBuilder(scheduleTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ scheduleTime_ = value;
+ }
+ onChanged();
+ } else {
+ scheduleTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ public Builder clearScheduleTime() {
+ if (scheduleTimeBuilder_ == null) {
+ scheduleTime_ = null;
+ onChanged();
+ } else {
+ scheduleTime_ = null;
+ scheduleTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
+
+ onChanged();
+ return getScheduleTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
+ if (scheduleTimeBuilder_ != null) {
+ return scheduleTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return scheduleTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : scheduleTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getScheduleTimeFieldBuilder() {
+ if (scheduleTimeBuilder_ == null) {
+ scheduleTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getScheduleTime(), getParentForChildren(), isClean());
+ scheduleTime_ = null;
+ }
+ return scheduleTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp dispatchTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ dispatchTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ public boolean hasDispatchTime() {
+ return dispatchTimeBuilder_ != null || dispatchTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ public com.google.protobuf.Timestamp getDispatchTime() {
+ if (dispatchTimeBuilder_ == null) {
+ return dispatchTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : dispatchTime_;
+ } else {
+ return dispatchTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ public Builder setDispatchTime(com.google.protobuf.Timestamp value) {
+ if (dispatchTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dispatchTime_ = value;
+ onChanged();
+ } else {
+ dispatchTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ public Builder setDispatchTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (dispatchTimeBuilder_ == null) {
+ dispatchTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ dispatchTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ public Builder mergeDispatchTime(com.google.protobuf.Timestamp value) {
+ if (dispatchTimeBuilder_ == null) {
+ if (dispatchTime_ != null) {
+ dispatchTime_ =
+ com.google.protobuf.Timestamp.newBuilder(dispatchTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ dispatchTime_ = value;
+ }
+ onChanged();
+ } else {
+ dispatchTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ public Builder clearDispatchTime() {
+ if (dispatchTimeBuilder_ == null) {
+ dispatchTime_ = null;
+ onChanged();
+ } else {
+ dispatchTime_ = null;
+ dispatchTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getDispatchTimeBuilder() {
+
+ onChanged();
+ return getDispatchTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder() {
+ if (dispatchTimeBuilder_ != null) {
+ return dispatchTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return dispatchTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : dispatchTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getDispatchTimeFieldBuilder() {
+ if (dispatchTimeBuilder_ == null) {
+ dispatchTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getDispatchTime(), getParentForChildren(), isClean());
+ dispatchTime_ = null;
+ }
+ return dispatchTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp responseTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ responseTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ public boolean hasResponseTime() {
+ return responseTimeBuilder_ != null || responseTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ public com.google.protobuf.Timestamp getResponseTime() {
+ if (responseTimeBuilder_ == null) {
+ return responseTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : responseTime_;
+ } else {
+ return responseTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ public Builder setResponseTime(com.google.protobuf.Timestamp value) {
+ if (responseTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ responseTime_ = value;
+ onChanged();
+ } else {
+ responseTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ public Builder setResponseTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (responseTimeBuilder_ == null) {
+ responseTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ responseTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ public Builder mergeResponseTime(com.google.protobuf.Timestamp value) {
+ if (responseTimeBuilder_ == null) {
+ if (responseTime_ != null) {
+ responseTime_ =
+ com.google.protobuf.Timestamp.newBuilder(responseTime_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ responseTime_ = value;
+ }
+ onChanged();
+ } else {
+ responseTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ public Builder clearResponseTime() {
+ if (responseTimeBuilder_ == null) {
+ responseTime_ = null;
+ onChanged();
+ } else {
+ responseTime_ = null;
+ responseTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ public com.google.protobuf.Timestamp.Builder getResponseTimeBuilder() {
+
+ onChanged();
+ return getResponseTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() {
+ if (responseTimeBuilder_ != null) {
+ return responseTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return responseTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : responseTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getResponseTimeFieldBuilder() {
+ if (responseTimeBuilder_ == null) {
+ responseTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getResponseTime(), getParentForChildren(), isClean());
+ responseTime_ = null;
+ }
+ return responseTimeBuilder_;
+ }
+
+ private com.google.rpc.Status responseStatus_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ responseStatusBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ public boolean hasResponseStatus() {
+ return responseStatusBuilder_ != null || responseStatus_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ public com.google.rpc.Status getResponseStatus() {
+ if (responseStatusBuilder_ == null) {
+ return responseStatus_ == null
+ ? com.google.rpc.Status.getDefaultInstance()
+ : responseStatus_;
+ } else {
+ return responseStatusBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ public Builder setResponseStatus(com.google.rpc.Status value) {
+ if (responseStatusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ responseStatus_ = value;
+ onChanged();
+ } else {
+ responseStatusBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ public Builder setResponseStatus(com.google.rpc.Status.Builder builderForValue) {
+ if (responseStatusBuilder_ == null) {
+ responseStatus_ = builderForValue.build();
+ onChanged();
+ } else {
+ responseStatusBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ public Builder mergeResponseStatus(com.google.rpc.Status value) {
+ if (responseStatusBuilder_ == null) {
+ if (responseStatus_ != null) {
+ responseStatus_ =
+ com.google.rpc.Status.newBuilder(responseStatus_).mergeFrom(value).buildPartial();
+ } else {
+ responseStatus_ = value;
+ }
+ onChanged();
+ } else {
+ responseStatusBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ public Builder clearResponseStatus() {
+ if (responseStatusBuilder_ == null) {
+ responseStatus_ = null;
+ onChanged();
+ } else {
+ responseStatus_ = null;
+ responseStatusBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ public com.google.rpc.Status.Builder getResponseStatusBuilder() {
+
+ onChanged();
+ return getResponseStatusFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ public com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder() {
+ if (responseStatusBuilder_ != null) {
+ return responseStatusBuilder_.getMessageOrBuilder();
+ } else {
+ return responseStatus_ == null
+ ? com.google.rpc.Status.getDefaultInstance()
+ : responseStatus_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getResponseStatusFieldBuilder() {
+ if (responseStatusBuilder_ == null) {
+ responseStatusBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(
+ getResponseStatus(), getParentForChildren(), isClean());
+ responseStatus_ = null;
+ }
+ return responseStatusBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.Attempt)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.Attempt)
+ private static final com.google.cloud.tasks.v2.Attempt DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.Attempt();
+ }
+
+ public static com.google.cloud.tasks.v2.Attempt getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ boolean hasScheduleTime();
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ com.google.protobuf.Timestamp getScheduleTime();
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was scheduled. + * `schedule_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp schedule_time = 1;
+ */
+ com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ boolean hasDispatchTime();
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ com.google.protobuf.Timestamp getDispatchTime();
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt was dispatched. + * `dispatch_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp dispatch_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ boolean hasResponseTime();
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ com.google.protobuf.Timestamp getResponseTime();
+ /**
+ *
+ *
+ * + * Output only. The time that this attempt response was received. + * `response_time` will be truncated to the nearest microsecond. + *+ * + *
.google.protobuf.Timestamp response_time = 3;
+ */
+ com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ boolean hasResponseStatus();
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ com.google.rpc.Status getResponseStatus();
+ /**
+ *
+ *
+ * + * Output only. The response from the worker for this attempt. + * If `response_time` is unset, then the task has not been attempted or is + * currently running and the `response_status` field is meaningless. + *+ * + *
.google.rpc.Status response_status = 4;
+ */
+ com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksProto.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksProto.java
new file mode 100644
index 000000000000..831c0531456e
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksProto.java
@@ -0,0 +1,344 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/cloudtasks.proto
+
+package com.google.cloud.tasks.v2;
+
+public final class CloudTasksProto {
+ private CloudTasksProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_ListQueuesRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_ListQueuesRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_ListQueuesResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_ListQueuesResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_GetQueueRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_GetQueueRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_CreateQueueRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_CreateQueueRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_UpdateQueueRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_UpdateQueueRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_DeleteQueueRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_DeleteQueueRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_PurgeQueueRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_PurgeQueueRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_PauseQueueRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_PauseQueueRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_ResumeQueueRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_ResumeQueueRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_ListTasksRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_ListTasksRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_ListTasksResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_ListTasksResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_GetTaskRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_GetTaskRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_CreateTaskRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_CreateTaskRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_DeleteTaskRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_DeleteTaskRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_RunTaskRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_RunTaskRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n&google/cloud/tasks/v2/cloudtasks.proto"
+ + "\022\025google.cloud.tasks.v2\032\034google/api/anno"
+ + "tations.proto\032\031google/api/resource.proto"
+ + "\032\033google/protobuf/empty.proto\032 google/pr"
+ + "otobuf/field_mask.proto\032 google/cloud/ta"
+ + "sks/v2/task.proto\032!google/cloud/tasks/v2"
+ + "/queue.proto\032\036google/iam/v1/iam_policy.p"
+ + "roto\032\032google/iam/v1/policy.proto\032\025google"
+ + "/rpc/code.proto\"Z\n\021ListQueuesRequest\022\016\n\006"
+ + "parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_siz"
+ + "e\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"[\n\022ListQueue"
+ + "sResponse\022,\n\006queues\030\001 \003(\0132\034.google.cloud"
+ + ".tasks.v2.Queue\022\027\n\017next_page_token\030\002 \001(\t"
+ + "\"\037\n\017GetQueueRequest\022\014\n\004name\030\001 \001(\t\"Q\n\022Cre"
+ + "ateQueueRequest\022\016\n\006parent\030\001 \001(\t\022+\n\005queue"
+ + "\030\002 \001(\0132\034.google.cloud.tasks.v2.Queue\"r\n\022"
+ + "UpdateQueueRequest\022+\n\005queue\030\001 \001(\0132\034.goog"
+ + "le.cloud.tasks.v2.Queue\022/\n\013update_mask\030\002"
+ + " \001(\0132\032.google.protobuf.FieldMask\"\"\n\022Dele"
+ + "teQueueRequest\022\014\n\004name\030\001 \001(\t\"!\n\021PurgeQue"
+ + "ueRequest\022\014\n\004name\030\001 \001(\t\"!\n\021PauseQueueReq"
+ + "uest\022\014\n\004name\030\001 \001(\t\"\"\n\022ResumeQueueRequest"
+ + "\022\014\n\004name\030\001 \001(\t\"\202\001\n\020ListTasksRequest\022\016\n\006p"
+ + "arent\030\001 \001(\t\0227\n\rresponse_view\030\002 \001(\0162 .goo"
+ + "gle.cloud.tasks.v2.Task.View\022\021\n\tpage_siz"
+ + "e\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"X\n\021ListTasks"
+ + "Response\022*\n\005tasks\030\001 \003(\0132\033.google.cloud.t"
+ + "asks.v2.Task\022\027\n\017next_page_token\030\002 \001(\t\"W\n"
+ + "\016GetTaskRequest\022\014\n\004name\030\001 \001(\t\0227\n\rrespons"
+ + "e_view\030\002 \001(\0162 .google.cloud.tasks.v2.Tas"
+ + "k.View\"\207\001\n\021CreateTaskRequest\022\016\n\006parent\030\001"
+ + " \001(\t\022)\n\004task\030\002 \001(\0132\033.google.cloud.tasks."
+ + "v2.Task\0227\n\rresponse_view\030\003 \001(\0162 .google."
+ + "cloud.tasks.v2.Task.View\"!\n\021DeleteTaskRe"
+ + "quest\022\014\n\004name\030\001 \001(\t\"W\n\016RunTaskRequest\022\014\n"
+ + "\004name\030\001 \001(\t\0227\n\rresponse_view\030\002 \001(\0162 .goo"
+ + "gle.cloud.tasks.v2.Task.View2\337\022\n\nCloudTa"
+ + "sks\022\225\001\n\nListQueues\022(.google.cloud.tasks."
+ + "v2.ListQueuesRequest\032).google.cloud.task"
+ + "s.v2.ListQueuesResponse\"2\202\323\344\223\002,\022*/v2/{pa"
+ + "rent=projects/*/locations/*}/queues\022\204\001\n\010"
+ + "GetQueue\022&.google.cloud.tasks.v2.GetQueu"
+ + "eRequest\032\034.google.cloud.tasks.v2.Queue\"2"
+ + "\202\323\344\223\002,\022*/v2/{name=projects/*/locations/*"
+ + "/queues/*}\022\221\001\n\013CreateQueue\022).google.clou"
+ + "d.tasks.v2.CreateQueueRequest\032\034.google.c"
+ + "loud.tasks.v2.Queue\"9\202\323\344\223\0023\"*/v2/{parent"
+ + "=projects/*/locations/*}/queues:\005queue\022\227"
+ + "\001\n\013UpdateQueue\022).google.cloud.tasks.v2.U"
+ + "pdateQueueRequest\032\034.google.cloud.tasks.v"
+ + "2.Queue\"?\202\323\344\223\002920/v2/{queue.name=project"
+ + "s/*/locations/*/queues/*}:\005queue\022\204\001\n\013Del"
+ + "eteQueue\022).google.cloud.tasks.v2.DeleteQ"
+ + "ueueRequest\032\026.google.protobuf.Empty\"2\202\323\344"
+ + "\223\002,**/v2/{name=projects/*/locations/*/qu"
+ + "eues/*}\022\221\001\n\nPurgeQueue\022(.google.cloud.ta"
+ + "sks.v2.PurgeQueueRequest\032\034.google.cloud."
+ + "tasks.v2.Queue\";\202\323\344\223\0025\"0/v2/{name=projec"
+ + "ts/*/locations/*/queues/*}:purge:\001*\022\221\001\n\n"
+ + "PauseQueue\022(.google.cloud.tasks.v2.Pause"
+ + "QueueRequest\032\034.google.cloud.tasks.v2.Que"
+ + "ue\";\202\323\344\223\0025\"0/v2/{name=projects/*/locatio"
+ + "ns/*/queues/*}:pause:\001*\022\224\001\n\013ResumeQueue\022"
+ + ").google.cloud.tasks.v2.ResumeQueueReque"
+ + "st\032\034.google.cloud.tasks.v2.Queue\"<\202\323\344\223\0026"
+ + "\"1/v2/{name=projects/*/locations/*/queue"
+ + "s/*}:resume:\001*\022\221\001\n\014GetIamPolicy\022\".google"
+ + ".iam.v1.GetIamPolicyRequest\032\025.google.iam"
+ + ".v1.Policy\"F\202\323\344\223\002@\";/v2/{resource=projec"
+ + "ts/*/locations/*/queues/*}:getIamPolicy:"
+ + "\001*\022\221\001\n\014SetIamPolicy\022\".google.iam.v1.SetI"
+ + "amPolicyRequest\032\025.google.iam.v1.Policy\"F"
+ + "\202\323\344\223\002@\";/v2/{resource=projects/*/locatio"
+ + "ns/*/queues/*}:setIamPolicy:\001*\022\267\001\n\022TestI"
+ + "amPermissions\022(.google.iam.v1.TestIamPer"
+ + "missionsRequest\032).google.iam.v1.TestIamP"
+ + "ermissionsResponse\"L\202\323\344\223\002F\"A/v2/{resourc"
+ + "e=projects/*/locations/*/queues/*}:testI"
+ + "amPermissions:\001*\022\232\001\n\tListTasks\022\'.google."
+ + "cloud.tasks.v2.ListTasksRequest\032(.google"
+ + ".cloud.tasks.v2.ListTasksResponse\":\202\323\344\223\002"
+ + "4\0222/v2/{parent=projects/*/locations/*/qu"
+ + "eues/*}/tasks\022\211\001\n\007GetTask\022%.google.cloud"
+ + ".tasks.v2.GetTaskRequest\032\033.google.cloud."
+ + "tasks.v2.Task\":\202\323\344\223\0024\0222/v2/{name=project"
+ + "s/*/locations/*/queues/*/tasks/*}\022\222\001\n\nCr"
+ + "eateTask\022(.google.cloud.tasks.v2.CreateT"
+ + "askRequest\032\033.google.cloud.tasks.v2.Task\""
+ + "=\202\323\344\223\0027\"2/v2/{parent=projects/*/location"
+ + "s/*/queues/*}/tasks:\001*\022\212\001\n\nDeleteTask\022(."
+ + "google.cloud.tasks.v2.DeleteTaskRequest\032"
+ + "\026.google.protobuf.Empty\":\202\323\344\223\0024*2/v2/{na"
+ + "me=projects/*/locations/*/queues/*/tasks"
+ + "/*}\022\220\001\n\007RunTask\022%.google.cloud.tasks.v2."
+ + "RunTaskRequest\032\033.google.cloud.tasks.v2.T"
+ + "ask\"A\202\323\344\223\002;\"6/v2/{name=projects/*/locati"
+ + "ons/*/queues/*/tasks/*}:run:\001*Br\n\031com.go"
+ + "ogle.cloud.tasks.v2B\017CloudTasksProtoP\001Z:"
+ + "google.golang.org/genproto/googleapis/cl"
+ + "oud/tasks/v2;tasks\242\002\005TASKSb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.protobuf.EmptyProto.getDescriptor(),
+ com.google.protobuf.FieldMaskProto.getDescriptor(),
+ com.google.cloud.tasks.v2.TaskProto.getDescriptor(),
+ com.google.cloud.tasks.v2.QueueProto.getDescriptor(),
+ com.google.iam.v1.IamPolicyProto.getDescriptor(),
+ com.google.iam.v1.PolicyProto.getDescriptor(),
+ com.google.rpc.CodeProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_cloud_tasks_v2_ListQueuesRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_tasks_v2_ListQueuesRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_ListQueuesRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Filter", "PageSize", "PageToken",
+ });
+ internal_static_google_cloud_tasks_v2_ListQueuesResponse_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_tasks_v2_ListQueuesResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_ListQueuesResponse_descriptor,
+ new java.lang.String[] {
+ "Queues", "NextPageToken",
+ });
+ internal_static_google_cloud_tasks_v2_GetQueueRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_tasks_v2_GetQueueRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_GetQueueRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_tasks_v2_CreateQueueRequest_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_tasks_v2_CreateQueueRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_CreateQueueRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Queue",
+ });
+ internal_static_google_cloud_tasks_v2_UpdateQueueRequest_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_cloud_tasks_v2_UpdateQueueRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_UpdateQueueRequest_descriptor,
+ new java.lang.String[] {
+ "Queue", "UpdateMask",
+ });
+ internal_static_google_cloud_tasks_v2_DeleteQueueRequest_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_cloud_tasks_v2_DeleteQueueRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_DeleteQueueRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_tasks_v2_PurgeQueueRequest_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_cloud_tasks_v2_PurgeQueueRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_PurgeQueueRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_tasks_v2_PauseQueueRequest_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_cloud_tasks_v2_PauseQueueRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_PauseQueueRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_tasks_v2_ResumeQueueRequest_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_google_cloud_tasks_v2_ResumeQueueRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_ResumeQueueRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_tasks_v2_ListTasksRequest_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_cloud_tasks_v2_ListTasksRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_ListTasksRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "ResponseView", "PageSize", "PageToken",
+ });
+ internal_static_google_cloud_tasks_v2_ListTasksResponse_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_google_cloud_tasks_v2_ListTasksResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_ListTasksResponse_descriptor,
+ new java.lang.String[] {
+ "Tasks", "NextPageToken",
+ });
+ internal_static_google_cloud_tasks_v2_GetTaskRequest_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_google_cloud_tasks_v2_GetTaskRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_GetTaskRequest_descriptor,
+ new java.lang.String[] {
+ "Name", "ResponseView",
+ });
+ internal_static_google_cloud_tasks_v2_CreateTaskRequest_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_google_cloud_tasks_v2_CreateTaskRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_CreateTaskRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Task", "ResponseView",
+ });
+ internal_static_google_cloud_tasks_v2_DeleteTaskRequest_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_google_cloud_tasks_v2_DeleteTaskRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_DeleteTaskRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_cloud_tasks_v2_RunTaskRequest_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_google_cloud_tasks_v2_RunTaskRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_RunTaskRequest_descriptor,
+ new java.lang.String[] {
+ "Name", "ResponseView",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.AnnotationsProto.http);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.protobuf.EmptyProto.getDescriptor();
+ com.google.protobuf.FieldMaskProto.getDescriptor();
+ com.google.cloud.tasks.v2.TaskProto.getDescriptor();
+ com.google.cloud.tasks.v2.QueueProto.getDescriptor();
+ com.google.iam.v1.IamPolicyProto.getDescriptor();
+ com.google.iam.v1.PolicyProto.getDescriptor();
+ com.google.rpc.CodeProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java
new file mode 100644
index 000000000000..08b6175a45be
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java
@@ -0,0 +1,912 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/cloudtasks.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * Request message for [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.CreateQueueRequest} + */ +public final class CreateQueueRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.CreateQueueRequest) + CreateQueueRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateQueueRequest.newBuilder() to construct. + private CreateQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CreateQueueRequest() { + parent_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateQueueRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.tasks.v2.Queue.Builder subBuilder = null; + if (queue_ != null) { + subBuilder = queue_.toBuilder(); + } + queue_ = + input.readMessage(com.google.cloud.tasks.v2.Queue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queue_); + queue_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_CreateQueueRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_CreateQueueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.CreateQueueRequest.class, + com.google.cloud.tasks.v2.CreateQueueRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * Required. + * The location name in which the queue will be created. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + * The list of allowed locations can be obtained by calling Cloud + * Tasks' implementation of + * [ListLocations][google.cloud.location.Locations.ListLocations]. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name in which the queue will be created. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + * The list of allowed locations can be obtained by calling Cloud + * Tasks' implementation of + * [ListLocations][google.cloud.location.Locations.ListLocations]. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QUEUE_FIELD_NUMBER = 2;
+ private com.google.cloud.tasks.v2.Queue queue_;
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ public boolean hasQueue() {
+ return queue_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ public com.google.cloud.tasks.v2.Queue getQueue() {
+ return queue_ == null ? com.google.cloud.tasks.v2.Queue.getDefaultInstance() : queue_;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ public com.google.cloud.tasks.v2.QueueOrBuilder getQueueOrBuilder() {
+ return getQueue();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (queue_ != null) {
+ output.writeMessage(2, getQueue());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (queue_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueue());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.CreateQueueRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.CreateQueueRequest other =
+ (com.google.cloud.tasks.v2.CreateQueueRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (hasQueue() != other.hasQueue()) return false;
+ if (hasQueue()) {
+ if (!getQueue().equals(other.getQueue())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasQueue()) {
+ hash = (37 * hash) + QUEUE_FIELD_NUMBER;
+ hash = (53 * hash) + getQueue().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.CreateQueueRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.CreateQueueRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The location name in which the queue will be created. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + * The list of allowed locations can be obtained by calling Cloud + * Tasks' implementation of + * [ListLocations][google.cloud.location.Locations.ListLocations]. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name in which the queue will be created. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + * The list of allowed locations can be obtained by calling Cloud + * Tasks' implementation of + * [ListLocations][google.cloud.location.Locations.ListLocations]. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name in which the queue will be created. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + * The list of allowed locations can be obtained by calling Cloud + * Tasks' implementation of + * [ListLocations][google.cloud.location.Locations.ListLocations]. + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name in which the queue will be created. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + * The list of allowed locations can be obtained by calling Cloud + * Tasks' implementation of + * [ListLocations][google.cloud.location.Locations.ListLocations]. + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name in which the queue will be created. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + * The list of allowed locations can be obtained by calling Cloud + * Tasks' implementation of + * [ListLocations][google.cloud.location.Locations.ListLocations]. + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.tasks.v2.Queue queue_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.Queue,
+ com.google.cloud.tasks.v2.Queue.Builder,
+ com.google.cloud.tasks.v2.QueueOrBuilder>
+ queueBuilder_;
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ public boolean hasQueue() {
+ return queueBuilder_ != null || queue_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ public com.google.cloud.tasks.v2.Queue getQueue() {
+ if (queueBuilder_ == null) {
+ return queue_ == null ? com.google.cloud.tasks.v2.Queue.getDefaultInstance() : queue_;
+ } else {
+ return queueBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ public Builder setQueue(com.google.cloud.tasks.v2.Queue value) {
+ if (queueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ queue_ = value;
+ onChanged();
+ } else {
+ queueBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ public Builder setQueue(com.google.cloud.tasks.v2.Queue.Builder builderForValue) {
+ if (queueBuilder_ == null) {
+ queue_ = builderForValue.build();
+ onChanged();
+ } else {
+ queueBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ public Builder mergeQueue(com.google.cloud.tasks.v2.Queue value) {
+ if (queueBuilder_ == null) {
+ if (queue_ != null) {
+ queue_ =
+ com.google.cloud.tasks.v2.Queue.newBuilder(queue_).mergeFrom(value).buildPartial();
+ } else {
+ queue_ = value;
+ }
+ onChanged();
+ } else {
+ queueBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ public Builder clearQueue() {
+ if (queueBuilder_ == null) {
+ queue_ = null;
+ onChanged();
+ } else {
+ queue_ = null;
+ queueBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ public com.google.cloud.tasks.v2.Queue.Builder getQueueBuilder() {
+
+ onChanged();
+ return getQueueFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ public com.google.cloud.tasks.v2.QueueOrBuilder getQueueOrBuilder() {
+ if (queueBuilder_ != null) {
+ return queueBuilder_.getMessageOrBuilder();
+ } else {
+ return queue_ == null ? com.google.cloud.tasks.v2.Queue.getDefaultInstance() : queue_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.Queue,
+ com.google.cloud.tasks.v2.Queue.Builder,
+ com.google.cloud.tasks.v2.QueueOrBuilder>
+ getQueueFieldBuilder() {
+ if (queueBuilder_ == null) {
+ queueBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.Queue,
+ com.google.cloud.tasks.v2.Queue.Builder,
+ com.google.cloud.tasks.v2.QueueOrBuilder>(
+ getQueue(), getParentForChildren(), isClean());
+ queue_ = null;
+ }
+ return queueBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.CreateQueueRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.CreateQueueRequest)
+ private static final com.google.cloud.tasks.v2.CreateQueueRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.CreateQueueRequest();
+ }
+
+ public static com.google.cloud.tasks.v2.CreateQueueRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The location name in which the queue will be created. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + * The list of allowed locations can be obtained by calling Cloud + * Tasks' implementation of + * [ListLocations][google.cloud.location.Locations.ListLocations]. + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. + * The location name in which the queue will be created. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + * The list of allowed locations can be obtained by calling Cloud + * Tasks' implementation of + * [ListLocations][google.cloud.location.Locations.ListLocations]. + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ boolean hasQueue();
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ com.google.cloud.tasks.v2.Queue getQueue();
+ /**
+ *
+ *
+ * + * Required. + * The queue to create. + * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. + *+ * + *
.google.cloud.tasks.v2.Queue queue = 2;
+ */
+ com.google.cloud.tasks.v2.QueueOrBuilder getQueueOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java
new file mode 100644
index 000000000000..a2077d2a7815
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java
@@ -0,0 +1,1400 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/cloudtasks.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * Request message for [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.CreateTaskRequest} + */ +public final class CreateTaskRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.CreateTaskRequest) + CreateTaskRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateTaskRequest.newBuilder() to construct. + private CreateTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CreateTaskRequest() { + parent_ = ""; + responseView_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateTaskRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.cloud.tasks.v2.Task.Builder subBuilder = null; + if (task_ != null) { + subBuilder = task_.toBuilder(); + } + task_ = input.readMessage(com.google.cloud.tasks.v2.Task.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(task_); + task_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + responseView_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_CreateTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_CreateTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.CreateTaskRequest.class, + com.google.cloud.tasks.v2.CreateTaskRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * The queue must already exist. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * The queue must already exist. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TASK_FIELD_NUMBER = 2;
+ private com.google.cloud.tasks.v2.Task task_;
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ public boolean hasTask() {
+ return task_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ public com.google.cloud.tasks.v2.Task getTask() {
+ return task_ == null ? com.google.cloud.tasks.v2.Task.getDefaultInstance() : task_;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ public com.google.cloud.tasks.v2.TaskOrBuilder getTaskOrBuilder() {
+ return getTask();
+ }
+
+ public static final int RESPONSE_VIEW_FIELD_NUMBER = 3;
+ private int responseView_;
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 3;
+ */
+ public int getResponseViewValue() {
+ return responseView_;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 3;
+ */
+ public com.google.cloud.tasks.v2.Task.View getResponseView() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.tasks.v2.Task.View result =
+ com.google.cloud.tasks.v2.Task.View.valueOf(responseView_);
+ return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (task_ != null) {
+ output.writeMessage(2, getTask());
+ }
+ if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) {
+ output.writeEnum(3, responseView_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (task_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTask());
+ }
+ if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, responseView_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.CreateTaskRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.CreateTaskRequest other =
+ (com.google.cloud.tasks.v2.CreateTaskRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (hasTask() != other.hasTask()) return false;
+ if (hasTask()) {
+ if (!getTask().equals(other.getTask())) return false;
+ }
+ if (responseView_ != other.responseView_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ if (hasTask()) {
+ hash = (37 * hash) + TASK_FIELD_NUMBER;
+ hash = (53 * hash) + getTask().hashCode();
+ }
+ hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER;
+ hash = (53 * hash) + responseView_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.CreateTaskRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.CreateTaskRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * The queue must already exist. + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * The queue must already exist. + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * The queue must already exist. + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * The queue must already exist. + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * The queue must already exist. + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.tasks.v2.Task task_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.Task,
+ com.google.cloud.tasks.v2.Task.Builder,
+ com.google.cloud.tasks.v2.TaskOrBuilder>
+ taskBuilder_;
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ public boolean hasTask() {
+ return taskBuilder_ != null || task_ != null;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ public com.google.cloud.tasks.v2.Task getTask() {
+ if (taskBuilder_ == null) {
+ return task_ == null ? com.google.cloud.tasks.v2.Task.getDefaultInstance() : task_;
+ } else {
+ return taskBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ public Builder setTask(com.google.cloud.tasks.v2.Task value) {
+ if (taskBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ task_ = value;
+ onChanged();
+ } else {
+ taskBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ public Builder setTask(com.google.cloud.tasks.v2.Task.Builder builderForValue) {
+ if (taskBuilder_ == null) {
+ task_ = builderForValue.build();
+ onChanged();
+ } else {
+ taskBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ public Builder mergeTask(com.google.cloud.tasks.v2.Task value) {
+ if (taskBuilder_ == null) {
+ if (task_ != null) {
+ task_ = com.google.cloud.tasks.v2.Task.newBuilder(task_).mergeFrom(value).buildPartial();
+ } else {
+ task_ = value;
+ }
+ onChanged();
+ } else {
+ taskBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ public Builder clearTask() {
+ if (taskBuilder_ == null) {
+ task_ = null;
+ onChanged();
+ } else {
+ task_ = null;
+ taskBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ public com.google.cloud.tasks.v2.Task.Builder getTaskBuilder() {
+
+ onChanged();
+ return getTaskFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ public com.google.cloud.tasks.v2.TaskOrBuilder getTaskOrBuilder() {
+ if (taskBuilder_ != null) {
+ return taskBuilder_.getMessageOrBuilder();
+ } else {
+ return task_ == null ? com.google.cloud.tasks.v2.Task.getDefaultInstance() : task_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.Task,
+ com.google.cloud.tasks.v2.Task.Builder,
+ com.google.cloud.tasks.v2.TaskOrBuilder>
+ getTaskFieldBuilder() {
+ if (taskBuilder_ == null) {
+ taskBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.Task,
+ com.google.cloud.tasks.v2.Task.Builder,
+ com.google.cloud.tasks.v2.TaskOrBuilder>(
+ getTask(), getParentForChildren(), isClean());
+ task_ = null;
+ }
+ return taskBuilder_;
+ }
+
+ private int responseView_ = 0;
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 3;
+ */
+ public int getResponseViewValue() {
+ return responseView_;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 3;
+ */
+ public Builder setResponseViewValue(int value) {
+ responseView_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 3;
+ */
+ public com.google.cloud.tasks.v2.Task.View getResponseView() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.tasks.v2.Task.View result =
+ com.google.cloud.tasks.v2.Task.View.valueOf(responseView_);
+ return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 3;
+ */
+ public Builder setResponseView(com.google.cloud.tasks.v2.Task.View value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ responseView_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 3;
+ */
+ public Builder clearResponseView() {
+
+ responseView_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.CreateTaskRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.CreateTaskRequest)
+ private static final com.google.cloud.tasks.v2.CreateTaskRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.CreateTaskRequest();
+ }
+
+ public static com.google.cloud.tasks.v2.CreateTaskRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * The queue must already exist. + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * The queue must already exist. + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ boolean hasTask();
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ com.google.cloud.tasks.v2.Task getTask();
+ /**
+ *
+ *
+ * + * Required. + * The task to add. + * Task names have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. + * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a + * name is not specified then the system will generate a random + * unique task id, which will be set in the task returned in the + * [response][google.cloud.tasks.v2.Task.name]. + * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the + * past then Cloud Tasks will set it to the current time. + * Task De-duplication: + * Explicitly specifying a task ID enables task de-duplication. If + * a task's ID is identical to that of an existing task or a task + * that was deleted or executed recently then the call will fail + * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. + * If the task's queue was created using Cloud Tasks, then another task with + * the same name can't be created for ~1hour after the original task was + * deleted or executed. If the task's queue was created using queue.yaml or + * queue.xml, then another task with the same name can't be created + * for ~9days after the original task was deleted or executed. + * Because there is an extra lookup cost to identify duplicate task + * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly + * increased latency. Using hashed strings for the task id or for + * the prefix of the task id is recommended. Choosing task ids that + * are sequential or have sequential prefixes, for example using a + * timestamp, causes an increase in latency and error rates in all + * task commands. The infrastructure relies on an approximately + * uniform distribution of task ids to store and serve tasks + * efficiently. + *+ * + *
.google.cloud.tasks.v2.Task task = 2;
+ */
+ com.google.cloud.tasks.v2.TaskOrBuilder getTaskOrBuilder();
+
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 3;
+ */
+ int getResponseViewValue();
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 3;
+ */
+ com.google.cloud.tasks.v2.Task.View getResponseView();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java
new file mode 100644
index 000000000000..d51043b8861c
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java
@@ -0,0 +1,610 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/cloudtasks.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * Request message for [DeleteQueue][google.cloud.tasks.v2.CloudTasks.DeleteQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.DeleteQueueRequest} + */ +public final class DeleteQueueRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.DeleteQueueRequest) + DeleteQueueRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteQueueRequest.newBuilder() to construct. + private DeleteQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DeleteQueueRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteQueueRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_DeleteQueueRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_DeleteQueueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.DeleteQueueRequest.class, + com.google.cloud.tasks.v2.DeleteQueueRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.DeleteQueueRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.DeleteQueueRequest other =
+ (com.google.cloud.tasks.v2.DeleteQueueRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.DeleteQueueRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [DeleteQueue][google.cloud.tasks.v2.CloudTasks.DeleteQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.DeleteQueueRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.DeleteQueueRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.DeleteQueueRequest)
+ private static final com.google.cloud.tasks.v2.DeleteQueueRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.DeleteQueueRequest();
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteQueueRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java
new file mode 100644
index 000000000000..433372d11c9f
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java
@@ -0,0 +1,612 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/cloudtasks.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * Request message for deleting a task using + * [DeleteTask][google.cloud.tasks.v2.CloudTasks.DeleteTask]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.DeleteTaskRequest} + */ +public final class DeleteTaskRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.DeleteTaskRequest) + DeleteTaskRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteTaskRequest.newBuilder() to construct. + private DeleteTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DeleteTaskRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteTaskRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_DeleteTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_DeleteTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.DeleteTaskRequest.class, + com.google.cloud.tasks.v2.DeleteTaskRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.DeleteTaskRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.DeleteTaskRequest other =
+ (com.google.cloud.tasks.v2.DeleteTaskRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.DeleteTaskRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for deleting a task using + * [DeleteTask][google.cloud.tasks.v2.CloudTasks.DeleteTask]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.DeleteTaskRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.DeleteTaskRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.DeleteTaskRequest)
+ private static final com.google.cloud.tasks.v2.DeleteTaskRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.DeleteTaskRequest();
+ }
+
+ public static com.google.cloud.tasks.v2.DeleteTaskRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java
new file mode 100644
index 000000000000..f65053d0480e
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java
@@ -0,0 +1,610 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/cloudtasks.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * Request message for [GetQueue][google.cloud.tasks.v2.CloudTasks.GetQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.GetQueueRequest} + */ +public final class GetQueueRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.GetQueueRequest) + GetQueueRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetQueueRequest.newBuilder() to construct. + private GetQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GetQueueRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetQueueRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_GetQueueRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_GetQueueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.GetQueueRequest.class, + com.google.cloud.tasks.v2.GetQueueRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The resource name of the queue. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The resource name of the queue. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.GetQueueRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.GetQueueRequest other =
+ (com.google.cloud.tasks.v2.GetQueueRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.GetQueueRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [GetQueue][google.cloud.tasks.v2.CloudTasks.GetQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.GetQueueRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The resource name of the queue. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The resource name of the queue. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The resource name of the queue. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The resource name of the queue. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The resource name of the queue. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.GetQueueRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.GetQueueRequest)
+ private static final com.google.cloud.tasks.v2.GetQueueRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.GetQueueRequest();
+ }
+
+ public static com.google.cloud.tasks.v2.GetQueueRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The resource name of the queue. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. + * The resource name of the queue. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java
new file mode 100644
index 000000000000..6dea83ce4bde
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java
@@ -0,0 +1,801 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/cloudtasks.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * Request message for getting a task using [GetTask][google.cloud.tasks.v2.CloudTasks.GetTask]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.GetTaskRequest} + */ +public final class GetTaskRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.GetTaskRequest) + GetTaskRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTaskRequest.newBuilder() to construct. + private GetTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GetTaskRequest() { + name_ = ""; + responseView_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTaskRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + responseView_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_GetTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_GetTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.GetTaskRequest.class, + com.google.cloud.tasks.v2.GetTaskRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESPONSE_VIEW_FIELD_NUMBER = 2;
+ private int responseView_;
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public int getResponseViewValue() {
+ return responseView_;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public com.google.cloud.tasks.v2.Task.View getResponseView() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.tasks.v2.Task.View result =
+ com.google.cloud.tasks.v2.Task.View.valueOf(responseView_);
+ return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) {
+ output.writeEnum(2, responseView_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.GetTaskRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.GetTaskRequest other = (com.google.cloud.tasks.v2.GetTaskRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (responseView_ != other.responseView_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER;
+ hash = (53 * hash) + responseView_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.GetTaskRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for getting a task using [GetTask][google.cloud.tasks.v2.CloudTasks.GetTask]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.GetTaskRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int responseView_ = 0;
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public int getResponseViewValue() {
+ return responseView_;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public Builder setResponseViewValue(int value) {
+ responseView_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public com.google.cloud.tasks.v2.Task.View getResponseView() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.tasks.v2.Task.View result =
+ com.google.cloud.tasks.v2.Task.View.valueOf(responseView_);
+ return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public Builder setResponseView(com.google.cloud.tasks.v2.Task.View value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ responseView_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public Builder clearResponseView() {
+
+ responseView_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.GetTaskRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.GetTaskRequest)
+ private static final com.google.cloud.tasks.v2.GetTaskRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.GetTaskRequest();
+ }
+
+ public static com.google.cloud.tasks.v2.GetTaskRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. + * The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ int getResponseViewValue();
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ com.google.cloud.tasks.v2.Task.View getResponseView();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpMethod.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpMethod.java
new file mode 100644
index 000000000000..652f5a1b1525
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpMethod.java
@@ -0,0 +1,259 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/target.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * The HTTP method used to deliver the task. + *+ * + * Protobuf enum {@code google.cloud.tasks.v2.HttpMethod} + */ +public enum HttpMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * HTTP method unspecified + *+ * + *
HTTP_METHOD_UNSPECIFIED = 0;
+ */
+ HTTP_METHOD_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * HTTP POST + *+ * + *
POST = 1;
+ */
+ POST(1),
+ /**
+ *
+ *
+ * + * HTTP GET + *+ * + *
GET = 2;
+ */
+ GET(2),
+ /**
+ *
+ *
+ * + * HTTP HEAD + *+ * + *
HEAD = 3;
+ */
+ HEAD(3),
+ /**
+ *
+ *
+ * + * HTTP PUT + *+ * + *
PUT = 4;
+ */
+ PUT(4),
+ /**
+ *
+ *
+ * + * HTTP DELETE + *+ * + *
DELETE = 5;
+ */
+ DELETE(5),
+ /**
+ *
+ *
+ * + * HTTP PATCH + *+ * + *
PATCH = 6;
+ */
+ PATCH(6),
+ /**
+ *
+ *
+ * + * HTTP OPTIONS + *+ * + *
OPTIONS = 7;
+ */
+ OPTIONS(7),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * HTTP method unspecified + *+ * + *
HTTP_METHOD_UNSPECIFIED = 0;
+ */
+ public static final int HTTP_METHOD_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * HTTP POST + *+ * + *
POST = 1;
+ */
+ public static final int POST_VALUE = 1;
+ /**
+ *
+ *
+ * + * HTTP GET + *+ * + *
GET = 2;
+ */
+ public static final int GET_VALUE = 2;
+ /**
+ *
+ *
+ * + * HTTP HEAD + *+ * + *
HEAD = 3;
+ */
+ public static final int HEAD_VALUE = 3;
+ /**
+ *
+ *
+ * + * HTTP PUT + *+ * + *
PUT = 4;
+ */
+ public static final int PUT_VALUE = 4;
+ /**
+ *
+ *
+ * + * HTTP DELETE + *+ * + *
DELETE = 5;
+ */
+ public static final int DELETE_VALUE = 5;
+ /**
+ *
+ *
+ * + * HTTP PATCH + *+ * + *
PATCH = 6;
+ */
+ public static final int PATCH_VALUE = 6;
+ /**
+ *
+ *
+ * + * HTTP OPTIONS + *+ * + *
OPTIONS = 7;
+ */
+ public static final int OPTIONS_VALUE = 7;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static HttpMethod valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static HttpMethod forNumber(int value) {
+ switch (value) {
+ case 0:
+ return HTTP_METHOD_UNSPECIFIED;
+ case 1:
+ return POST;
+ case 2:
+ return GET;
+ case 3:
+ return HEAD;
+ case 4:
+ return PUT;
+ case 5:
+ return DELETE;
+ case 6:
+ return PATCH;
+ case 7:
+ return OPTIONS;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Request message for [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.ListQueuesRequest} + */ +public final class ListQueuesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.ListQueuesRequest) + ListQueuesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListQueuesRequest.newBuilder() to construct. + private ListQueuesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListQueuesRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListQueuesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_ListQueuesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_ListQueuesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.ListQueuesRequest.class, + com.google.cloud.tasks.v2.ListQueuesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * Required. + * The location name. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FILTER_FIELD_NUMBER = 2;
+ private volatile java.lang.Object filter_;
+ /**
+ *
+ *
+ * + * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue] + * field can be used as a filter and several operators as supported. + * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + * described in + * [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). + * Sample filter "state: PAUSED". + * Note that using filters might cause fewer queues than the + * requested page_size to be returned. + *+ * + *
string filter = 2;
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue] + * field can be used as a filter and several operators as supported. + * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + * described in + * [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). + * Sample filter "state: PAUSED". + * Note that using filters might cause fewer queues than the + * requested page_size to be returned. + *+ * + *
string filter = 2;
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 3;
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * Requested page size. + * The maximum page size is 9800. If unspecified, the page size will + * be the maximum. Fewer queues than requested might be returned, + * even if more queues exist; use the + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] in the + * response to determine if more queues exist. + *+ * + *
int32 page_size = 3;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 4;
+ private volatile java.lang.Object pageToken_;
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned + * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] + * method. It is an error to switch the value of the + * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages. + *+ * + *
string page_token = 4;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned + * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] + * method. It is an error to switch the value of the + * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages. + *+ * + *
string page_token = 4;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (!getFilterBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(3, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (!getFilterBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.ListQueuesRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.ListQueuesRequest other =
+ (com.google.cloud.tasks.v2.ListQueuesRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (!getFilter().equals(other.getFilter())) return false;
+ if (getPageSize() != other.getPageSize()) return false;
+ if (!getPageToken().equals(other.getPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.ListQueuesRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.ListQueuesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The location name. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The location name. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object filter_ = "";
+ /**
+ *
+ *
+ * + * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue] + * field can be used as a filter and several operators as supported. + * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + * described in + * [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). + * Sample filter "state: PAUSED". + * Note that using filters might cause fewer queues than the + * requested page_size to be returned. + *+ * + *
string filter = 2;
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue] + * field can be used as a filter and several operators as supported. + * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + * described in + * [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). + * Sample filter "state: PAUSED". + * Note that using filters might cause fewer queues than the + * requested page_size to be returned. + *+ * + *
string filter = 2;
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue] + * field can be used as a filter and several operators as supported. + * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + * described in + * [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). + * Sample filter "state: PAUSED". + * Note that using filters might cause fewer queues than the + * requested page_size to be returned. + *+ * + *
string filter = 2;
+ */
+ public Builder setFilter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue] + * field can be used as a filter and several operators as supported. + * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + * described in + * [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). + * Sample filter "state: PAUSED". + * Note that using filters might cause fewer queues than the + * requested page_size to be returned. + *+ * + *
string filter = 2;
+ */
+ public Builder clearFilter() {
+
+ filter_ = getDefaultInstance().getFilter();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue] + * field can be used as a filter and several operators as supported. + * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + * described in + * [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). + * Sample filter "state: PAUSED". + * Note that using filters might cause fewer queues than the + * requested page_size to be returned. + *+ * + *
string filter = 2;
+ */
+ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * Requested page size. + * The maximum page size is 9800. If unspecified, the page size will + * be the maximum. Fewer queues than requested might be returned, + * even if more queues exist; use the + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] in the + * response to determine if more queues exist. + *+ * + *
int32 page_size = 3;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ *
+ *
+ * + * Requested page size. + * The maximum page size is 9800. If unspecified, the page size will + * be the maximum. Fewer queues than requested might be returned, + * even if more queues exist; use the + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] in the + * response to determine if more queues exist. + *+ * + *
int32 page_size = 3;
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Requested page size. + * The maximum page size is 9800. If unspecified, the page size will + * be the maximum. Fewer queues than requested might be returned, + * even if more queues exist; use the + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] in the + * response to determine if more queues exist. + *+ * + *
int32 page_size = 3;
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned + * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] + * method. It is an error to switch the value of the + * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages. + *+ * + *
string page_token = 4;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned + * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] + * method. It is an error to switch the value of the + * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages. + *+ * + *
string page_token = 4;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned + * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] + * method. It is an error to switch the value of the + * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages. + *+ * + *
string page_token = 4;
+ */
+ public Builder setPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned + * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] + * method. It is an error to switch the value of the + * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages. + *+ * + *
string page_token = 4;
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned + * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] + * method. It is an error to switch the value of the + * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages. + *+ * + *
string page_token = 4;
+ */
+ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.ListQueuesRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.ListQueuesRequest)
+ private static final com.google.cloud.tasks.v2.ListQueuesRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.ListQueuesRequest();
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The location name. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. + * The location name. + * For example: `projects/PROJECT_ID/locations/LOCATION_ID` + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue] + * field can be used as a filter and several operators as supported. + * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + * described in + * [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). + * Sample filter "state: PAUSED". + * Note that using filters might cause fewer queues than the + * requested page_size to be returned. + *+ * + *
string filter = 2;
+ */
+ java.lang.String getFilter();
+ /**
+ *
+ *
+ * + * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue] + * field can be used as a filter and several operators as supported. + * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as + * described in + * [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). + * Sample filter "state: PAUSED". + * Note that using filters might cause fewer queues than the + * requested page_size to be returned. + *+ * + *
string filter = 2;
+ */
+ com.google.protobuf.ByteString getFilterBytes();
+
+ /**
+ *
+ *
+ * + * Requested page size. + * The maximum page size is 9800. If unspecified, the page size will + * be the maximum. Fewer queues than requested might be returned, + * even if more queues exist; use the + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] in the + * response to determine if more queues exist. + *+ * + *
int32 page_size = 3;
+ */
+ int getPageSize();
+
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned + * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] + * method. It is an error to switch the value of the + * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages. + *+ * + *
string page_token = 4;
+ */
+ java.lang.String getPageToken();
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned + * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] + * method. It is an error to switch the value of the + * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages. + *+ * + *
string page_token = 4;
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java
new file mode 100644
index 000000000000..c52065d07e3a
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java
@@ -0,0 +1,1116 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/cloudtasks.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * Response message for [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.ListQueuesResponse} + */ +public final class ListQueuesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.ListQueuesResponse) + ListQueuesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListQueuesResponse.newBuilder() to construct. + private ListQueuesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListQueuesResponse() { + queues_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListQueuesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + queues_ = new java.util.ArrayList
+ * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public java.util.List+ * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public java.util.List extends com.google.cloud.tasks.v2.QueueOrBuilder>
+ getQueuesOrBuilderList() {
+ return queues_;
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public int getQueuesCount() {
+ return queues_.size();
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public com.google.cloud.tasks.v2.Queue getQueues(int index) {
+ return queues_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public com.google.cloud.tasks.v2.QueueOrBuilder getQueuesOrBuilder(int index) {
+ return queues_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the + * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token]. + * If the next_page_token is empty, there are no more results. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the + * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token]. + * If the next_page_token is empty, there are no more results. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < queues_.size(); i++) {
+ output.writeMessage(1, queues_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < queues_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, queues_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.ListQueuesResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.ListQueuesResponse other =
+ (com.google.cloud.tasks.v2.ListQueuesResponse) obj;
+
+ if (!getQueuesList().equals(other.getQueuesList())) return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getQueuesCount() > 0) {
+ hash = (37 * hash) + QUEUES_FIELD_NUMBER;
+ hash = (53 * hash) + getQueuesList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.ListQueuesResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Response message for [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.ListQueuesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public java.util.List+ * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public int getQueuesCount() {
+ if (queuesBuilder_ == null) {
+ return queues_.size();
+ } else {
+ return queuesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public com.google.cloud.tasks.v2.Queue getQueues(int index) {
+ if (queuesBuilder_ == null) {
+ return queues_.get(index);
+ } else {
+ return queuesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public Builder setQueues(int index, com.google.cloud.tasks.v2.Queue value) {
+ if (queuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureQueuesIsMutable();
+ queues_.set(index, value);
+ onChanged();
+ } else {
+ queuesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public Builder setQueues(int index, com.google.cloud.tasks.v2.Queue.Builder builderForValue) {
+ if (queuesBuilder_ == null) {
+ ensureQueuesIsMutable();
+ queues_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ queuesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public Builder addQueues(com.google.cloud.tasks.v2.Queue value) {
+ if (queuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureQueuesIsMutable();
+ queues_.add(value);
+ onChanged();
+ } else {
+ queuesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public Builder addQueues(int index, com.google.cloud.tasks.v2.Queue value) {
+ if (queuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureQueuesIsMutable();
+ queues_.add(index, value);
+ onChanged();
+ } else {
+ queuesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public Builder addQueues(com.google.cloud.tasks.v2.Queue.Builder builderForValue) {
+ if (queuesBuilder_ == null) {
+ ensureQueuesIsMutable();
+ queues_.add(builderForValue.build());
+ onChanged();
+ } else {
+ queuesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public Builder addQueues(int index, com.google.cloud.tasks.v2.Queue.Builder builderForValue) {
+ if (queuesBuilder_ == null) {
+ ensureQueuesIsMutable();
+ queues_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ queuesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public Builder addAllQueues(
+ java.lang.Iterable extends com.google.cloud.tasks.v2.Queue> values) {
+ if (queuesBuilder_ == null) {
+ ensureQueuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queues_);
+ onChanged();
+ } else {
+ queuesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public Builder clearQueues() {
+ if (queuesBuilder_ == null) {
+ queues_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ queuesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public Builder removeQueues(int index) {
+ if (queuesBuilder_ == null) {
+ ensureQueuesIsMutable();
+ queues_.remove(index);
+ onChanged();
+ } else {
+ queuesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public com.google.cloud.tasks.v2.Queue.Builder getQueuesBuilder(int index) {
+ return getQueuesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public com.google.cloud.tasks.v2.QueueOrBuilder getQueuesOrBuilder(int index) {
+ if (queuesBuilder_ == null) {
+ return queues_.get(index);
+ } else {
+ return queuesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public java.util.List extends com.google.cloud.tasks.v2.QueueOrBuilder>
+ getQueuesOrBuilderList() {
+ if (queuesBuilder_ != null) {
+ return queuesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(queues_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public com.google.cloud.tasks.v2.Queue.Builder addQueuesBuilder() {
+ return getQueuesFieldBuilder()
+ .addBuilder(com.google.cloud.tasks.v2.Queue.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public com.google.cloud.tasks.v2.Queue.Builder addQueuesBuilder(int index) {
+ return getQueuesFieldBuilder()
+ .addBuilder(index, com.google.cloud.tasks.v2.Queue.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ public java.util.List+ * A token to retrieve next page of results. + * To return the next page of results, call + * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the + * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token]. + * If the next_page_token is empty, there are no more results. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the + * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token]. + * If the next_page_token is empty, there are no more results. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the + * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token]. + * If the next_page_token is empty, there are no more results. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the + * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token]. + * If the next_page_token is empty, there are no more results. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the + * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token]. + * If the next_page_token is empty, there are no more results. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.ListQueuesResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.ListQueuesResponse)
+ private static final com.google.cloud.tasks.v2.ListQueuesResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.ListQueuesResponse();
+ }
+
+ public static com.google.cloud.tasks.v2.ListQueuesResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ java.util.List+ * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ com.google.cloud.tasks.v2.Queue getQueues(int index);
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ int getQueuesCount();
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ java.util.List extends com.google.cloud.tasks.v2.QueueOrBuilder> getQueuesOrBuilderList();
+ /**
+ *
+ *
+ * + * The list of queues. + *+ * + *
repeated .google.cloud.tasks.v2.Queue queues = 1;
+ */
+ com.google.cloud.tasks.v2.QueueOrBuilder getQueuesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the + * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token]. + * If the next_page_token is empty, there are no more results. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the + * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token]. + * If the next_page_token is empty, there are no more results. + * The page token is valid for only 2 hours. + *+ * + *
string next_page_token = 2;
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java
new file mode 100644
index 000000000000..b83fbc4697d5
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java
@@ -0,0 +1,1104 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/cloudtasks.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * Request message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.ListTasksRequest} + */ +public final class ListTasksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.ListTasksRequest) + ListTasksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTasksRequest.newBuilder() to construct. + private ListTasksRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListTasksRequest() { + parent_ = ""; + responseView_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTasksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + responseView_ = rawValue; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_ListTasksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_ListTasksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.ListTasksRequest.class, + com.google.cloud.tasks.v2.ListTasksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESPONSE_VIEW_FIELD_NUMBER = 2;
+ private int responseView_;
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public int getResponseViewValue() {
+ return responseView_;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public com.google.cloud.tasks.v2.Task.View getResponseView() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.tasks.v2.Task.View result =
+ com.google.cloud.tasks.v2.Task.View.valueOf(responseView_);
+ return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result;
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 3;
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * Requested page size. Fewer tasks than requested might be returned. + * The maximum page size is 1000. If unspecified, the page size will + * be the maximum. Fewer tasks than requested might be returned, + * even if more tasks exist; use + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the + * response to determine if more tasks exist. + *+ * + *
int32 page_size = 3;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 4;
+ private volatile java.lang.Object pageToken_;
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned + * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] + * method. + * The page token is valid for only 2 hours. + *+ * + *
string page_token = 4;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned + * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] + * method. + * The page token is valid for only 2 hours. + *+ * + *
string page_token = 4;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) {
+ output.writeEnum(2, responseView_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(3, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.ListTasksRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.ListTasksRequest other =
+ (com.google.cloud.tasks.v2.ListTasksRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (responseView_ != other.responseView_) return false;
+ if (getPageSize() != other.getPageSize()) return false;
+ if (!getPageToken().equals(other.getPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER;
+ hash = (53 * hash) + responseView_;
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.ListTasksRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.ListTasksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int responseView_ = 0;
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public int getResponseViewValue() {
+ return responseView_;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public Builder setResponseViewValue(int value) {
+ responseView_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public com.google.cloud.tasks.v2.Task.View getResponseView() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.tasks.v2.Task.View result =
+ com.google.cloud.tasks.v2.Task.View.valueOf(responseView_);
+ return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public Builder setResponseView(com.google.cloud.tasks.v2.Task.View value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ responseView_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ public Builder clearResponseView() {
+
+ responseView_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_;
+ /**
+ *
+ *
+ * + * Requested page size. Fewer tasks than requested might be returned. + * The maximum page size is 1000. If unspecified, the page size will + * be the maximum. Fewer tasks than requested might be returned, + * even if more tasks exist; use + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the + * response to determine if more tasks exist. + *+ * + *
int32 page_size = 3;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ *
+ *
+ * + * Requested page size. Fewer tasks than requested might be returned. + * The maximum page size is 1000. If unspecified, the page size will + * be the maximum. Fewer tasks than requested might be returned, + * even if more tasks exist; use + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the + * response to determine if more tasks exist. + *+ * + *
int32 page_size = 3;
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Requested page size. Fewer tasks than requested might be returned. + * The maximum page size is 1000. If unspecified, the page size will + * be the maximum. Fewer tasks than requested might be returned, + * even if more tasks exist; use + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the + * response to determine if more tasks exist. + *+ * + *
int32 page_size = 3;
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned + * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] + * method. + * The page token is valid for only 2 hours. + *+ * + *
string page_token = 4;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned + * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] + * method. + * The page token is valid for only 2 hours. + *+ * + *
string page_token = 4;
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned + * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] + * method. + * The page token is valid for only 2 hours. + *+ * + *
string page_token = 4;
+ */
+ public Builder setPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned + * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] + * method. + * The page token is valid for only 2 hours. + *+ * + *
string page_token = 4;
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned + * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] + * method. + * The page token is valid for only 2 hours. + *+ * + *
string page_token = 4;
+ */
+ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.ListTasksRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.ListTasksRequest)
+ private static final com.google.cloud.tasks.v2.ListTasksRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.ListTasksRequest();
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ int getResponseViewValue();
+ /**
+ *
+ *
+ * + * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be + * returned. + * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all + * information is retrieved by default because some data, such as + * payloads, might be desirable to return only when needed because + * of its large size or because of the sensitivity of data that it + * contains. + * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires + * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) + * permission on the [Task][google.cloud.tasks.v2.Task] resource. + *+ * + *
.google.cloud.tasks.v2.Task.View response_view = 2;
+ */
+ com.google.cloud.tasks.v2.Task.View getResponseView();
+
+ /**
+ *
+ *
+ * + * Requested page size. Fewer tasks than requested might be returned. + * The maximum page size is 1000. If unspecified, the page size will + * be the maximum. Fewer tasks than requested might be returned, + * even if more tasks exist; use + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the + * response to determine if more tasks exist. + *+ * + *
int32 page_size = 3;
+ */
+ int getPageSize();
+
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned + * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] + * method. + * The page token is valid for only 2 hours. + *+ * + *
string page_token = 4;
+ */
+ java.lang.String getPageToken();
+ /**
+ *
+ *
+ * + * A token identifying the page of results to return. + * To request the first page results, page_token must be empty. To + * request the next page of results, page_token must be the value of + * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned + * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] + * method. + * The page token is valid for only 2 hours. + *+ * + *
string page_token = 4;
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java
new file mode 100644
index 000000000000..1953fb20fd6a
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java
@@ -0,0 +1,1107 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/cloudtasks.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * Response message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.ListTasksResponse} + */ +public final class ListTasksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.ListTasksResponse) + ListTasksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTasksResponse.newBuilder() to construct. + private ListTasksResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ListTasksResponse() { + tasks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTasksResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tasks_ = new java.util.ArrayList
+ * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public java.util.List+ * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public java.util.List extends com.google.cloud.tasks.v2.TaskOrBuilder> getTasksOrBuilderList() {
+ return tasks_;
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public int getTasksCount() {
+ return tasks_.size();
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public com.google.cloud.tasks.v2.Task getTasks(int index) {
+ return tasks_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public com.google.cloud.tasks.v2.TaskOrBuilder getTasksOrBuilder(int index) {
+ return tasks_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the + * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token]. + * If the next_page_token is empty, there are no more results. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the + * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token]. + * If the next_page_token is empty, there are no more results. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < tasks_.size(); i++) {
+ output.writeMessage(1, tasks_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < tasks_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tasks_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.ListTasksResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.ListTasksResponse other =
+ (com.google.cloud.tasks.v2.ListTasksResponse) obj;
+
+ if (!getTasksList().equals(other.getTasksList())) return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getTasksCount() > 0) {
+ hash = (37 * hash) + TASKS_FIELD_NUMBER;
+ hash = (53 * hash) + getTasksList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.ListTasksResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Response message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.ListTasksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public java.util.List+ * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public int getTasksCount() {
+ if (tasksBuilder_ == null) {
+ return tasks_.size();
+ } else {
+ return tasksBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public com.google.cloud.tasks.v2.Task getTasks(int index) {
+ if (tasksBuilder_ == null) {
+ return tasks_.get(index);
+ } else {
+ return tasksBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public Builder setTasks(int index, com.google.cloud.tasks.v2.Task value) {
+ if (tasksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTasksIsMutable();
+ tasks_.set(index, value);
+ onChanged();
+ } else {
+ tasksBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public Builder setTasks(int index, com.google.cloud.tasks.v2.Task.Builder builderForValue) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ tasksBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public Builder addTasks(com.google.cloud.tasks.v2.Task value) {
+ if (tasksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTasksIsMutable();
+ tasks_.add(value);
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public Builder addTasks(int index, com.google.cloud.tasks.v2.Task value) {
+ if (tasksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTasksIsMutable();
+ tasks_.add(index, value);
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public Builder addTasks(com.google.cloud.tasks.v2.Task.Builder builderForValue) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.add(builderForValue.build());
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public Builder addTasks(int index, com.google.cloud.tasks.v2.Task.Builder builderForValue) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ tasksBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public Builder addAllTasks(
+ java.lang.Iterable extends com.google.cloud.tasks.v2.Task> values) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tasks_);
+ onChanged();
+ } else {
+ tasksBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public Builder clearTasks() {
+ if (tasksBuilder_ == null) {
+ tasks_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ tasksBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public Builder removeTasks(int index) {
+ if (tasksBuilder_ == null) {
+ ensureTasksIsMutable();
+ tasks_.remove(index);
+ onChanged();
+ } else {
+ tasksBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public com.google.cloud.tasks.v2.Task.Builder getTasksBuilder(int index) {
+ return getTasksFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public com.google.cloud.tasks.v2.TaskOrBuilder getTasksOrBuilder(int index) {
+ if (tasksBuilder_ == null) {
+ return tasks_.get(index);
+ } else {
+ return tasksBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public java.util.List extends com.google.cloud.tasks.v2.TaskOrBuilder>
+ getTasksOrBuilderList() {
+ if (tasksBuilder_ != null) {
+ return tasksBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(tasks_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public com.google.cloud.tasks.v2.Task.Builder addTasksBuilder() {
+ return getTasksFieldBuilder().addBuilder(com.google.cloud.tasks.v2.Task.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public com.google.cloud.tasks.v2.Task.Builder addTasksBuilder(int index) {
+ return getTasksFieldBuilder()
+ .addBuilder(index, com.google.cloud.tasks.v2.Task.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ public java.util.List+ * A token to retrieve next page of results. + * To return the next page of results, call + * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the + * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token]. + * If the next_page_token is empty, there are no more results. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the + * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token]. + * If the next_page_token is empty, there are no more results. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the + * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token]. + * If the next_page_token is empty, there are no more results. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the + * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token]. + * If the next_page_token is empty, there are no more results. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the + * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token]. + * If the next_page_token is empty, there are no more results. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.ListTasksResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.ListTasksResponse)
+ private static final com.google.cloud.tasks.v2.ListTasksResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.ListTasksResponse();
+ }
+
+ public static com.google.cloud.tasks.v2.ListTasksResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ java.util.List+ * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ com.google.cloud.tasks.v2.Task getTasks(int index);
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ int getTasksCount();
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ java.util.List extends com.google.cloud.tasks.v2.TaskOrBuilder> getTasksOrBuilderList();
+ /**
+ *
+ *
+ * + * The list of tasks. + *+ * + *
repeated .google.cloud.tasks.v2.Task tasks = 1;
+ */
+ com.google.cloud.tasks.v2.TaskOrBuilder getTasksOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the + * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token]. + * If the next_page_token is empty, there are no more results. + *+ * + *
string next_page_token = 2;
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ * + * A token to retrieve next page of results. + * To return the next page of results, call + * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the + * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token]. + * If the next_page_token is empty, there are no more results. + *+ * + *
string next_page_token = 2;
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java
new file mode 100644
index 000000000000..ea6c88f438a1
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java
@@ -0,0 +1,180 @@
+/*
+ * Copyright 2018 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.google.cloud.tasks.v2;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class LocationName implements ResourceName {
+
+ private static final PathTemplate PATH_TEMPLATE =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
+
+ private volatile Map+ * Request message for [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.PauseQueueRequest} + */ +public final class PauseQueueRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.PauseQueueRequest) + PauseQueueRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PauseQueueRequest.newBuilder() to construct. + private PauseQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PauseQueueRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PauseQueueRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_PauseQueueRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_PauseQueueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.PauseQueueRequest.class, + com.google.cloud.tasks.v2.PauseQueueRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.PauseQueueRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.PauseQueueRequest other =
+ (com.google.cloud.tasks.v2.PauseQueueRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.PauseQueueRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.PauseQueueRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.PauseQueueRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.PauseQueueRequest)
+ private static final com.google.cloud.tasks.v2.PauseQueueRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.PauseQueueRequest();
+ }
+
+ public static com.google.cloud.tasks.v2.PauseQueueRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java
new file mode 100644
index 000000000000..07828b5bf3fc
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java
@@ -0,0 +1,160 @@
+/*
+ * Copyright 2018 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.google.cloud.tasks.v2;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class ProjectName implements ResourceName {
+
+ private static final PathTemplate PATH_TEMPLATE =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}");
+
+ private volatile Map+ * Request message for [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.PurgeQueueRequest} + */ +public final class PurgeQueueRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.PurgeQueueRequest) + PurgeQueueRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeQueueRequest.newBuilder() to construct. + private PurgeQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PurgeQueueRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PurgeQueueRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_PurgeQueueRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_PurgeQueueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.PurgeQueueRequest.class, + com.google.cloud.tasks.v2.PurgeQueueRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.PurgeQueueRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.PurgeQueueRequest other =
+ (com.google.cloud.tasks.v2.PurgeQueueRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.PurgeQueueRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.PurgeQueueRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.PurgeQueueRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.PurgeQueueRequest)
+ private static final com.google.cloud.tasks.v2.PurgeQueueRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.PurgeQueueRequest();
+ }
+
+ public static com.google.cloud.tasks.v2.PurgeQueueRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java
new file mode 100644
index 000000000000..c03018aabf36
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java
@@ -0,0 +1,2619 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/queue.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * A queue is a container of related tasks. Queues are configured to manage + * how those tasks are dispatched. Configurable properties include rate limits, + * retry options, queue types, and others. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.Queue} + */ +public final class Queue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.Queue) + QueueOrBuilder { + private static final long serialVersionUID = 0L; + // Use Queue.newBuilder() to construct. + private Queue(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Queue() { + name_ = ""; + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Queue( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.cloud.tasks.v2.AppEngineRouting.Builder subBuilder = null; + if (appEngineRoutingOverride_ != null) { + subBuilder = appEngineRoutingOverride_.toBuilder(); + } + appEngineRoutingOverride_ = + input.readMessage( + com.google.cloud.tasks.v2.AppEngineRouting.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(appEngineRoutingOverride_); + appEngineRoutingOverride_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.cloud.tasks.v2.RateLimits.Builder subBuilder = null; + if (rateLimits_ != null) { + subBuilder = rateLimits_.toBuilder(); + } + rateLimits_ = + input.readMessage( + com.google.cloud.tasks.v2.RateLimits.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rateLimits_); + rateLimits_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.cloud.tasks.v2.RetryConfig.Builder subBuilder = null; + if (retryConfig_ != null) { + subBuilder = retryConfig_.toBuilder(); + } + retryConfig_ = + input.readMessage( + com.google.cloud.tasks.v2.RetryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retryConfig_); + retryConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 40: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (purgeTime_ != null) { + subBuilder = purgeTime_.toBuilder(); + } + purgeTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(purgeTime_); + purgeTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.QueueProto + .internal_static_google_cloud_tasks_v2_Queue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.QueueProto + .internal_static_google_cloud_tasks_v2_Queue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.Queue.class, com.google.cloud.tasks.v2.Queue.Builder.class); + } + + /** + * + * + *
+ * State of the queue. + *+ * + * Protobuf enum {@code google.cloud.tasks.v2.Queue.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified state. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The queue is running. Tasks can be dispatched. + * If the queue was created using Cloud Tasks and the queue has + * had no activity (method calls or task dispatches) for 30 days, + * the queue may take a few minutes to re-activate. Some method + * calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and + * tasks may not be dispatched for a few minutes until the queue + * has been re-activated. + *+ * + *
RUNNING = 1;
+ */
+ RUNNING(1),
+ /**
+ *
+ *
+ * + * Tasks are paused by the user. If the queue is paused then Cloud + * Tasks will stop delivering tasks from it, but more tasks can + * still be added to it by the user. + *+ * + *
PAUSED = 2;
+ */
+ PAUSED(2),
+ /**
+ *
+ *
+ * + * The queue is disabled. + * A queue becomes `DISABLED` when + * [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) + * or + * [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) + * is uploaded which does not contain the queue. You cannot directly disable + * a queue. + * When a queue is disabled, tasks can still be added to a queue + * but the tasks are not dispatched. + * To permanently delete this queue and all of its tasks, call + * [DeleteQueue][google.cloud.tasks.v2.CloudTasks.DeleteQueue]. + *+ * + *
DISABLED = 3;
+ */
+ DISABLED(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified state. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * The queue is running. Tasks can be dispatched. + * If the queue was created using Cloud Tasks and the queue has + * had no activity (method calls or task dispatches) for 30 days, + * the queue may take a few minutes to re-activate. Some method + * calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and + * tasks may not be dispatched for a few minutes until the queue + * has been re-activated. + *+ * + *
RUNNING = 1;
+ */
+ public static final int RUNNING_VALUE = 1;
+ /**
+ *
+ *
+ * + * Tasks are paused by the user. If the queue is paused then Cloud + * Tasks will stop delivering tasks from it, but more tasks can + * still be added to it by the user. + *+ * + *
PAUSED = 2;
+ */
+ public static final int PAUSED_VALUE = 2;
+ /**
+ *
+ *
+ * + * The queue is disabled. + * A queue becomes `DISABLED` when + * [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) + * or + * [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) + * is uploaded which does not contain the queue. You cannot directly disable + * a queue. + * When a queue is disabled, tasks can still be added to a queue + * but the tasks are not dispatched. + * To permanently delete this queue and all of its tasks, call + * [DeleteQueue][google.cloud.tasks.v2.CloudTasks.DeleteQueue]. + *+ * + *
DISABLED = 3;
+ */
+ public static final int DISABLED_VALUE = 3;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /** @deprecated Use {@link #forNumber(int)} instead. */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STATE_UNSPECIFIED;
+ case 1:
+ return RUNNING;
+ case 2:
+ return PAUSED;
+ case 3:
+ return DISABLED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue], + * after which it becomes output only. + * The queue name. + * The queue name must have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the queue's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + * hyphens (-). The maximum length is 100 characters. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue], + * after which it becomes output only. + * The queue name. + * The queue name must have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the queue's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + * hyphens (-). The maximum length is 100 characters. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int APP_ENGINE_ROUTING_OVERRIDE_FIELD_NUMBER = 2;
+ private com.google.cloud.tasks.v2.AppEngineRouting appEngineRoutingOverride_;
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ public boolean hasAppEngineRoutingOverride() {
+ return appEngineRoutingOverride_ != null;
+ }
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ public com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRoutingOverride() {
+ return appEngineRoutingOverride_ == null
+ ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance()
+ : appEngineRoutingOverride_;
+ }
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ public com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder
+ getAppEngineRoutingOverrideOrBuilder() {
+ return getAppEngineRoutingOverride();
+ }
+
+ public static final int RATE_LIMITS_FIELD_NUMBER = 3;
+ private com.google.cloud.tasks.v2.RateLimits rateLimits_;
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ public boolean hasRateLimits() {
+ return rateLimits_ != null;
+ }
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ public com.google.cloud.tasks.v2.RateLimits getRateLimits() {
+ return rateLimits_ == null
+ ? com.google.cloud.tasks.v2.RateLimits.getDefaultInstance()
+ : rateLimits_;
+ }
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ public com.google.cloud.tasks.v2.RateLimitsOrBuilder getRateLimitsOrBuilder() {
+ return getRateLimits();
+ }
+
+ public static final int RETRY_CONFIG_FIELD_NUMBER = 4;
+ private com.google.cloud.tasks.v2.RetryConfig retryConfig_;
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ public boolean hasRetryConfig() {
+ return retryConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ public com.google.cloud.tasks.v2.RetryConfig getRetryConfig() {
+ return retryConfig_ == null
+ ? com.google.cloud.tasks.v2.RetryConfig.getDefaultInstance()
+ : retryConfig_;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ public com.google.cloud.tasks.v2.RetryConfigOrBuilder getRetryConfigOrBuilder() {
+ return getRetryConfig();
+ }
+
+ public static final int STATE_FIELD_NUMBER = 5;
+ private int state_;
+ /**
+ *
+ *
+ * + * Output only. The state of the queue. + * `state` can only be changed by called + * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue], + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading + * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`. + *+ * + *
.google.cloud.tasks.v2.Queue.State state = 5;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The state of the queue. + * `state` can only be changed by called + * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue], + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading + * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`. + *+ * + *
.google.cloud.tasks.v2.Queue.State state = 5;
+ */
+ public com.google.cloud.tasks.v2.Queue.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.tasks.v2.Queue.State result =
+ com.google.cloud.tasks.v2.Queue.State.valueOf(state_);
+ return result == null ? com.google.cloud.tasks.v2.Queue.State.UNRECOGNIZED : result;
+ }
+
+ public static final int PURGE_TIME_FIELD_NUMBER = 6;
+ private com.google.protobuf.Timestamp purgeTime_;
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ public boolean hasPurgeTime() {
+ return purgeTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ public com.google.protobuf.Timestamp getPurgeTime() {
+ return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() {
+ return getPurgeTime();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (appEngineRoutingOverride_ != null) {
+ output.writeMessage(2, getAppEngineRoutingOverride());
+ }
+ if (rateLimits_ != null) {
+ output.writeMessage(3, getRateLimits());
+ }
+ if (retryConfig_ != null) {
+ output.writeMessage(4, getRetryConfig());
+ }
+ if (state_ != com.google.cloud.tasks.v2.Queue.State.STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(5, state_);
+ }
+ if (purgeTime_ != null) {
+ output.writeMessage(6, getPurgeTime());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (appEngineRoutingOverride_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, getAppEngineRoutingOverride());
+ }
+ if (rateLimits_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRateLimits());
+ }
+ if (retryConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRetryConfig());
+ }
+ if (state_ != com.google.cloud.tasks.v2.Queue.State.STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_);
+ }
+ if (purgeTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPurgeTime());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.Queue)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.Queue other = (com.google.cloud.tasks.v2.Queue) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (hasAppEngineRoutingOverride() != other.hasAppEngineRoutingOverride()) return false;
+ if (hasAppEngineRoutingOverride()) {
+ if (!getAppEngineRoutingOverride().equals(other.getAppEngineRoutingOverride())) return false;
+ }
+ if (hasRateLimits() != other.hasRateLimits()) return false;
+ if (hasRateLimits()) {
+ if (!getRateLimits().equals(other.getRateLimits())) return false;
+ }
+ if (hasRetryConfig() != other.hasRetryConfig()) return false;
+ if (hasRetryConfig()) {
+ if (!getRetryConfig().equals(other.getRetryConfig())) return false;
+ }
+ if (state_ != other.state_) return false;
+ if (hasPurgeTime() != other.hasPurgeTime()) return false;
+ if (hasPurgeTime()) {
+ if (!getPurgeTime().equals(other.getPurgeTime())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (hasAppEngineRoutingOverride()) {
+ hash = (37 * hash) + APP_ENGINE_ROUTING_OVERRIDE_FIELD_NUMBER;
+ hash = (53 * hash) + getAppEngineRoutingOverride().hashCode();
+ }
+ if (hasRateLimits()) {
+ hash = (37 * hash) + RATE_LIMITS_FIELD_NUMBER;
+ hash = (53 * hash) + getRateLimits().hashCode();
+ }
+ if (hasRetryConfig()) {
+ hash = (37 * hash) + RETRY_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getRetryConfig().hashCode();
+ }
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ if (hasPurgeTime()) {
+ hash = (37 * hash) + PURGE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getPurgeTime().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.Queue parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.Queue prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * A queue is a container of related tasks. Queues are configured to manage + * how those tasks are dispatched. Configurable properties include rate limits, + * retry options, queue types, and others. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.Queue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue], + * after which it becomes output only. + * The queue name. + * The queue name must have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the queue's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + * hyphens (-). The maximum length is 100 characters. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue], + * after which it becomes output only. + * The queue name. + * The queue name must have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the queue's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + * hyphens (-). The maximum length is 100 characters. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue], + * after which it becomes output only. + * The queue name. + * The queue name must have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the queue's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + * hyphens (-). The maximum length is 100 characters. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue], + * after which it becomes output only. + * The queue name. + * The queue name must have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the queue's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + * hyphens (-). The maximum length is 100 characters. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue], + * after which it becomes output only. + * The queue name. + * The queue name must have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the queue's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + * hyphens (-). The maximum length is 100 characters. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.tasks.v2.AppEngineRouting appEngineRoutingOverride_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.AppEngineRouting,
+ com.google.cloud.tasks.v2.AppEngineRouting.Builder,
+ com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder>
+ appEngineRoutingOverrideBuilder_;
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ public boolean hasAppEngineRoutingOverride() {
+ return appEngineRoutingOverrideBuilder_ != null || appEngineRoutingOverride_ != null;
+ }
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ public com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRoutingOverride() {
+ if (appEngineRoutingOverrideBuilder_ == null) {
+ return appEngineRoutingOverride_ == null
+ ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance()
+ : appEngineRoutingOverride_;
+ } else {
+ return appEngineRoutingOverrideBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ public Builder setAppEngineRoutingOverride(com.google.cloud.tasks.v2.AppEngineRouting value) {
+ if (appEngineRoutingOverrideBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ appEngineRoutingOverride_ = value;
+ onChanged();
+ } else {
+ appEngineRoutingOverrideBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ public Builder setAppEngineRoutingOverride(
+ com.google.cloud.tasks.v2.AppEngineRouting.Builder builderForValue) {
+ if (appEngineRoutingOverrideBuilder_ == null) {
+ appEngineRoutingOverride_ = builderForValue.build();
+ onChanged();
+ } else {
+ appEngineRoutingOverrideBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ public Builder mergeAppEngineRoutingOverride(com.google.cloud.tasks.v2.AppEngineRouting value) {
+ if (appEngineRoutingOverrideBuilder_ == null) {
+ if (appEngineRoutingOverride_ != null) {
+ appEngineRoutingOverride_ =
+ com.google.cloud.tasks.v2.AppEngineRouting.newBuilder(appEngineRoutingOverride_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ appEngineRoutingOverride_ = value;
+ }
+ onChanged();
+ } else {
+ appEngineRoutingOverrideBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ public Builder clearAppEngineRoutingOverride() {
+ if (appEngineRoutingOverrideBuilder_ == null) {
+ appEngineRoutingOverride_ = null;
+ onChanged();
+ } else {
+ appEngineRoutingOverride_ = null;
+ appEngineRoutingOverrideBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ public com.google.cloud.tasks.v2.AppEngineRouting.Builder getAppEngineRoutingOverrideBuilder() {
+
+ onChanged();
+ return getAppEngineRoutingOverrideFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ public com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder
+ getAppEngineRoutingOverrideOrBuilder() {
+ if (appEngineRoutingOverrideBuilder_ != null) {
+ return appEngineRoutingOverrideBuilder_.getMessageOrBuilder();
+ } else {
+ return appEngineRoutingOverride_ == null
+ ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance()
+ : appEngineRoutingOverride_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.AppEngineRouting,
+ com.google.cloud.tasks.v2.AppEngineRouting.Builder,
+ com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder>
+ getAppEngineRoutingOverrideFieldBuilder() {
+ if (appEngineRoutingOverrideBuilder_ == null) {
+ appEngineRoutingOverrideBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.AppEngineRouting,
+ com.google.cloud.tasks.v2.AppEngineRouting.Builder,
+ com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder>(
+ getAppEngineRoutingOverride(), getParentForChildren(), isClean());
+ appEngineRoutingOverride_ = null;
+ }
+ return appEngineRoutingOverrideBuilder_;
+ }
+
+ private com.google.cloud.tasks.v2.RateLimits rateLimits_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.RateLimits,
+ com.google.cloud.tasks.v2.RateLimits.Builder,
+ com.google.cloud.tasks.v2.RateLimitsOrBuilder>
+ rateLimitsBuilder_;
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ public boolean hasRateLimits() {
+ return rateLimitsBuilder_ != null || rateLimits_ != null;
+ }
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ public com.google.cloud.tasks.v2.RateLimits getRateLimits() {
+ if (rateLimitsBuilder_ == null) {
+ return rateLimits_ == null
+ ? com.google.cloud.tasks.v2.RateLimits.getDefaultInstance()
+ : rateLimits_;
+ } else {
+ return rateLimitsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ public Builder setRateLimits(com.google.cloud.tasks.v2.RateLimits value) {
+ if (rateLimitsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ rateLimits_ = value;
+ onChanged();
+ } else {
+ rateLimitsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ public Builder setRateLimits(com.google.cloud.tasks.v2.RateLimits.Builder builderForValue) {
+ if (rateLimitsBuilder_ == null) {
+ rateLimits_ = builderForValue.build();
+ onChanged();
+ } else {
+ rateLimitsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ public Builder mergeRateLimits(com.google.cloud.tasks.v2.RateLimits value) {
+ if (rateLimitsBuilder_ == null) {
+ if (rateLimits_ != null) {
+ rateLimits_ =
+ com.google.cloud.tasks.v2.RateLimits.newBuilder(rateLimits_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ rateLimits_ = value;
+ }
+ onChanged();
+ } else {
+ rateLimitsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ public Builder clearRateLimits() {
+ if (rateLimitsBuilder_ == null) {
+ rateLimits_ = null;
+ onChanged();
+ } else {
+ rateLimits_ = null;
+ rateLimitsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ public com.google.cloud.tasks.v2.RateLimits.Builder getRateLimitsBuilder() {
+
+ onChanged();
+ return getRateLimitsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ public com.google.cloud.tasks.v2.RateLimitsOrBuilder getRateLimitsOrBuilder() {
+ if (rateLimitsBuilder_ != null) {
+ return rateLimitsBuilder_.getMessageOrBuilder();
+ } else {
+ return rateLimits_ == null
+ ? com.google.cloud.tasks.v2.RateLimits.getDefaultInstance()
+ : rateLimits_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.RateLimits,
+ com.google.cloud.tasks.v2.RateLimits.Builder,
+ com.google.cloud.tasks.v2.RateLimitsOrBuilder>
+ getRateLimitsFieldBuilder() {
+ if (rateLimitsBuilder_ == null) {
+ rateLimitsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.RateLimits,
+ com.google.cloud.tasks.v2.RateLimits.Builder,
+ com.google.cloud.tasks.v2.RateLimitsOrBuilder>(
+ getRateLimits(), getParentForChildren(), isClean());
+ rateLimits_ = null;
+ }
+ return rateLimitsBuilder_;
+ }
+
+ private com.google.cloud.tasks.v2.RetryConfig retryConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.RetryConfig,
+ com.google.cloud.tasks.v2.RetryConfig.Builder,
+ com.google.cloud.tasks.v2.RetryConfigOrBuilder>
+ retryConfigBuilder_;
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ public boolean hasRetryConfig() {
+ return retryConfigBuilder_ != null || retryConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ public com.google.cloud.tasks.v2.RetryConfig getRetryConfig() {
+ if (retryConfigBuilder_ == null) {
+ return retryConfig_ == null
+ ? com.google.cloud.tasks.v2.RetryConfig.getDefaultInstance()
+ : retryConfig_;
+ } else {
+ return retryConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ public Builder setRetryConfig(com.google.cloud.tasks.v2.RetryConfig value) {
+ if (retryConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ retryConfig_ = value;
+ onChanged();
+ } else {
+ retryConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ public Builder setRetryConfig(com.google.cloud.tasks.v2.RetryConfig.Builder builderForValue) {
+ if (retryConfigBuilder_ == null) {
+ retryConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ retryConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ public Builder mergeRetryConfig(com.google.cloud.tasks.v2.RetryConfig value) {
+ if (retryConfigBuilder_ == null) {
+ if (retryConfig_ != null) {
+ retryConfig_ =
+ com.google.cloud.tasks.v2.RetryConfig.newBuilder(retryConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ retryConfig_ = value;
+ }
+ onChanged();
+ } else {
+ retryConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ public Builder clearRetryConfig() {
+ if (retryConfigBuilder_ == null) {
+ retryConfig_ = null;
+ onChanged();
+ } else {
+ retryConfig_ = null;
+ retryConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ public com.google.cloud.tasks.v2.RetryConfig.Builder getRetryConfigBuilder() {
+
+ onChanged();
+ return getRetryConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ public com.google.cloud.tasks.v2.RetryConfigOrBuilder getRetryConfigOrBuilder() {
+ if (retryConfigBuilder_ != null) {
+ return retryConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return retryConfig_ == null
+ ? com.google.cloud.tasks.v2.RetryConfig.getDefaultInstance()
+ : retryConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.RetryConfig,
+ com.google.cloud.tasks.v2.RetryConfig.Builder,
+ com.google.cloud.tasks.v2.RetryConfigOrBuilder>
+ getRetryConfigFieldBuilder() {
+ if (retryConfigBuilder_ == null) {
+ retryConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tasks.v2.RetryConfig,
+ com.google.cloud.tasks.v2.RetryConfig.Builder,
+ com.google.cloud.tasks.v2.RetryConfigOrBuilder>(
+ getRetryConfig(), getParentForChildren(), isClean());
+ retryConfig_ = null;
+ }
+ return retryConfigBuilder_;
+ }
+
+ private int state_ = 0;
+ /**
+ *
+ *
+ * + * Output only. The state of the queue. + * `state` can only be changed by called + * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue], + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading + * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`. + *+ * + *
.google.cloud.tasks.v2.Queue.State state = 5;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The state of the queue. + * `state` can only be changed by called + * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue], + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading + * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`. + *+ * + *
.google.cloud.tasks.v2.Queue.State state = 5;
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The state of the queue. + * `state` can only be changed by called + * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue], + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading + * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`. + *+ * + *
.google.cloud.tasks.v2.Queue.State state = 5;
+ */
+ public com.google.cloud.tasks.v2.Queue.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.tasks.v2.Queue.State result =
+ com.google.cloud.tasks.v2.Queue.State.valueOf(state_);
+ return result == null ? com.google.cloud.tasks.v2.Queue.State.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * Output only. The state of the queue. + * `state` can only be changed by called + * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue], + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading + * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`. + *+ * + *
.google.cloud.tasks.v2.Queue.State state = 5;
+ */
+ public Builder setState(com.google.cloud.tasks.v2.Queue.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The state of the queue. + * `state` can only be changed by called + * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue], + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading + * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`. + *+ * + *
.google.cloud.tasks.v2.Queue.State state = 5;
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp purgeTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ purgeTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ public boolean hasPurgeTime() {
+ return purgeTimeBuilder_ != null || purgeTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ public com.google.protobuf.Timestamp getPurgeTime() {
+ if (purgeTimeBuilder_ == null) {
+ return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_;
+ } else {
+ return purgeTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ public Builder setPurgeTime(com.google.protobuf.Timestamp value) {
+ if (purgeTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ purgeTime_ = value;
+ onChanged();
+ } else {
+ purgeTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ public Builder setPurgeTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (purgeTimeBuilder_ == null) {
+ purgeTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ purgeTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ public Builder mergePurgeTime(com.google.protobuf.Timestamp value) {
+ if (purgeTimeBuilder_ == null) {
+ if (purgeTime_ != null) {
+ purgeTime_ =
+ com.google.protobuf.Timestamp.newBuilder(purgeTime_).mergeFrom(value).buildPartial();
+ } else {
+ purgeTime_ = value;
+ }
+ onChanged();
+ } else {
+ purgeTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ public Builder clearPurgeTime() {
+ if (purgeTimeBuilder_ == null) {
+ purgeTime_ = null;
+ onChanged();
+ } else {
+ purgeTime_ = null;
+ purgeTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ public com.google.protobuf.Timestamp.Builder getPurgeTimeBuilder() {
+
+ onChanged();
+ return getPurgeTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() {
+ if (purgeTimeBuilder_ != null) {
+ return purgeTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getPurgeTimeFieldBuilder() {
+ if (purgeTimeBuilder_ == null) {
+ purgeTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getPurgeTime(), getParentForChildren(), isClean());
+ purgeTime_ = null;
+ }
+ return purgeTimeBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.Queue)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.Queue)
+ private static final com.google.cloud.tasks.v2.Queue DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.Queue();
+ }
+
+ public static com.google.cloud.tasks.v2.Queue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue], + * after which it becomes output only. + * The queue name. + * The queue name must have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the queue's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + * hyphens (-). The maximum length is 100 characters. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue], + * after which it becomes output only. + * The queue name. + * The queue name must have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), + * hyphens (-), colons (:), or periods (.). + * For more information, see + * [Identifying + * projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) + * * `LOCATION_ID` is the canonical ID for the queue's location. + * The list of available locations can be obtained by calling + * [ListLocations][google.cloud.location.Locations.ListLocations]. + * For more information, see https://cloud.google.com/about/locations/. + * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or + * hyphens (-). The maximum length is 100 characters. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ boolean hasAppEngineRoutingOverride();
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRoutingOverride();
+ /**
+ *
+ *
+ * + * Overrides for + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + * These settings apply only to + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. + * If set, `app_engine_routing_override` is used for all + * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the + * setting is for the + * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. + *+ * + *
.google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2;
+ */
+ com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder getAppEngineRoutingOverrideOrBuilder();
+
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ boolean hasRateLimits();
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ com.google.cloud.tasks.v2.RateLimits getRateLimits();
+ /**
+ *
+ *
+ * + * Rate limits for task dispatches. + * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are + * related because they both control task attempts. However they control task + * attempts in different ways: + * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of + * dispatches from a queue (i.e. all traffic dispatched from the + * queue, regardless of whether the dispatch is from a first + * attempt or a retry). + * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to + * particular a task after its first attempt fails. That is, + * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the + * second attempt, third attempt, etc). + * The queue's actual dispatch rate is the result of: + * * Number of tasks in the queue + * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], + * [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the + * [queue's state][google.cloud.tasks.v2.Queue.state]. + * * System throttling due to `429` (Too Many Requests) or `503` (Service + * Unavailable) responses from the worker, high error rates, or to smooth + * sudden large traffic spikes. + *+ * + *
.google.cloud.tasks.v2.RateLimits rate_limits = 3;
+ */
+ com.google.cloud.tasks.v2.RateLimitsOrBuilder getRateLimitsOrBuilder();
+
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ boolean hasRetryConfig();
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ com.google.cloud.tasks.v2.RetryConfig getRetryConfig();
+ /**
+ *
+ *
+ * + * Settings that determine the retry behavior. + * * For tasks created using Cloud Tasks: the queue-level retry settings + * apply to all tasks in the queue that were created using Cloud Tasks. + * Retry settings cannot be set on individual tasks. + * * For tasks created using the App Engine SDK: the queue-level retry + * settings apply to all tasks in the queue which do not have retry settings + * explicitly set on the task and were created by the App Engine SDK. See + * [App Engine + * documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). + *+ * + *
.google.cloud.tasks.v2.RetryConfig retry_config = 4;
+ */
+ com.google.cloud.tasks.v2.RetryConfigOrBuilder getRetryConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. The state of the queue. + * `state` can only be changed by called + * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue], + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading + * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`. + *+ * + *
.google.cloud.tasks.v2.Queue.State state = 5;
+ */
+ int getStateValue();
+ /**
+ *
+ *
+ * + * Output only. The state of the queue. + * `state` can only be changed by called + * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue], + * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading + * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`. + *+ * + *
.google.cloud.tasks.v2.Queue.State state = 5;
+ */
+ com.google.cloud.tasks.v2.Queue.State getState();
+
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ boolean hasPurgeTime();
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ com.google.protobuf.Timestamp getPurgeTime();
+ /**
+ *
+ *
+ * + * Output only. The last time this queue was purged. + * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time + * were purged. + * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the + * [App Engine Task Queue SDK, or the Cloud + * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). + * Purge time will be truncated to the nearest microsecond. Purge + * time will be unset if the queue has never been purged. + *+ * + *
.google.protobuf.Timestamp purge_time = 6;
+ */
+ com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java
new file mode 100644
index 000000000000..013088004cee
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java
@@ -0,0 +1,113 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/queue.proto
+
+package com.google.cloud.tasks.v2;
+
+public final class QueueProto {
+ private QueueProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_Queue_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_Queue_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_RateLimits_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_RateLimits_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tasks_v2_RetryConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tasks_v2_RetryConfig_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n!google/cloud/tasks/v2/queue.proto\022\025goo"
+ + "gle.cloud.tasks.v2\032\034google/api/annotatio"
+ + "ns.proto\032\031google/api/resource.proto\032\"goo"
+ + "gle/cloud/tasks/v2/target.proto\032\036google/"
+ + "protobuf/duration.proto\032\037google/protobuf"
+ + "/timestamp.proto\"\377\002\n\005Queue\022\014\n\004name\030\001 \001(\t"
+ + "\022L\n\033app_engine_routing_override\030\002 \001(\0132\'."
+ + "google.cloud.tasks.v2.AppEngineRouting\0226"
+ + "\n\013rate_limits\030\003 \001(\0132!.google.cloud.tasks"
+ + ".v2.RateLimits\0228\n\014retry_config\030\004 \001(\0132\".g"
+ + "oogle.cloud.tasks.v2.RetryConfig\0221\n\005stat"
+ + "e\030\005 \001(\0162\".google.cloud.tasks.v2.Queue.St"
+ + "ate\022.\n\npurge_time\030\006 \001(\0132\032.google.protobu"
+ + "f.Timestamp\"E\n\005State\022\025\n\021STATE_UNSPECIFIE"
+ + "D\020\000\022\013\n\007RUNNING\020\001\022\n\n\006PAUSED\020\002\022\014\n\010DISABLED"
+ + "\020\003\"j\n\nRateLimits\022!\n\031max_dispatches_per_s"
+ + "econd\030\001 \001(\001\022\026\n\016max_burst_size\030\002 \001(\005\022!\n\031m"
+ + "ax_concurrent_dispatches\030\003 \001(\005\"\321\001\n\013Retry"
+ + "Config\022\024\n\014max_attempts\030\001 \001(\005\0225\n\022max_retr"
+ + "y_duration\030\002 \001(\0132\031.google.protobuf.Durat"
+ + "ion\022.\n\013min_backoff\030\003 \001(\0132\031.google.protob"
+ + "uf.Duration\022.\n\013max_backoff\030\004 \001(\0132\031.googl"
+ + "e.protobuf.Duration\022\025\n\rmax_doublings\030\005 \001"
+ + "(\005Be\n\031com.google.cloud.tasks.v2B\nQueuePr"
+ + "otoP\001Z:google.golang.org/genproto/google"
+ + "apis/cloud/tasks/v2;tasksb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
+ com.google.cloud.tasks.v2.TargetProto.getDescriptor(),
+ com.google.protobuf.DurationProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_cloud_tasks_v2_Queue_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_tasks_v2_Queue_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_Queue_descriptor,
+ new java.lang.String[] {
+ "Name", "AppEngineRoutingOverride", "RateLimits", "RetryConfig", "State", "PurgeTime",
+ });
+ internal_static_google_cloud_tasks_v2_RateLimits_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_tasks_v2_RateLimits_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_RateLimits_descriptor,
+ new java.lang.String[] {
+ "MaxDispatchesPerSecond", "MaxBurstSize", "MaxConcurrentDispatches",
+ });
+ internal_static_google_cloud_tasks_v2_RetryConfig_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_cloud_tasks_v2_RetryConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tasks_v2_RetryConfig_descriptor,
+ new java.lang.String[] {
+ "MaxAttempts", "MaxRetryDuration", "MinBackoff", "MaxBackoff", "MaxDoublings",
+ });
+ com.google.api.AnnotationsProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
+ com.google.cloud.tasks.v2.TargetProto.getDescriptor();
+ com.google.protobuf.DurationProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java
new file mode 100644
index 000000000000..7dab4bde11a6
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java
@@ -0,0 +1,852 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/queue.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * Rate limits. + * This message determines the maximum rate that tasks can be dispatched by a + * queue, regardless of whether the dispatch is a first task attempt or a retry. + * Note: The debugging command, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask], will run a task + * even if the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.RateLimits} + */ +public final class RateLimits extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.RateLimits) + RateLimitsOrBuilder { + private static final long serialVersionUID = 0L; + // Use RateLimits.newBuilder() to construct. + private RateLimits(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private RateLimits() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RateLimits( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + maxDispatchesPerSecond_ = input.readDouble(); + break; + } + case 16: + { + maxBurstSize_ = input.readInt32(); + break; + } + case 24: + { + maxConcurrentDispatches_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.QueueProto + .internal_static_google_cloud_tasks_v2_RateLimits_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.QueueProto + .internal_static_google_cloud_tasks_v2_RateLimits_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.RateLimits.class, + com.google.cloud.tasks.v2.RateLimits.Builder.class); + } + + public static final int MAX_DISPATCHES_PER_SECOND_FIELD_NUMBER = 1; + private double maxDispatchesPerSecond_; + /** + * + * + *
+ * The maximum rate at which tasks are dispatched from this queue. + * If unspecified when the queue is created, Cloud Tasks will pick the + * default. + * * For [App Engine queues][google.cloud.tasks.v2.AppEngineHttpQueue], the maximum allowed value + * is 500. + * This field has the same meaning as + * [rate in + * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate). + *+ * + *
double max_dispatches_per_second = 1;
+ */
+ public double getMaxDispatchesPerSecond() {
+ return maxDispatchesPerSecond_;
+ }
+
+ public static final int MAX_BURST_SIZE_FIELD_NUMBER = 2;
+ private int maxBurstSize_;
+ /**
+ *
+ *
+ * + * Output only. The max burst size. + * Max burst size limits how fast tasks in queue are processed when + * many tasks are in the queue and the rate is high. This field + * allows the queue to have a high rate so processing starts shortly + * after a task is enqueued, but still limits resource usage when + * many tasks are enqueued in a short period of time. + * The [token bucket](https://wikipedia.org/wiki/Token_Bucket) + * algorithm is used to control the rate of task dispatches. Each + * queue has a token bucket that holds tokens, up to the maximum + * specified by `max_burst_size`. Each time a task is dispatched, a + * token is removed from the bucket. Tasks will be dispatched until + * the queue's bucket runs out of tokens. The bucket will be + * continuously refilled with new tokens based on + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. + * Cloud Tasks will pick the value of `max_burst_size` based on the + * value of + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. + * For App Engine queues that were created or updated using + * `queue.yaml/xml`, `max_burst_size` is equal to + * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). + * Since `max_burst_size` is output only, if + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] is called on a queue + * created by `queue.yaml/xml`, `max_burst_size` will be reset based + * on the value of + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second], + * regardless of whether + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second] + * is updated. + *+ * + *
int32 max_burst_size = 2;
+ */
+ public int getMaxBurstSize() {
+ return maxBurstSize_;
+ }
+
+ public static final int MAX_CONCURRENT_DISPATCHES_FIELD_NUMBER = 3;
+ private int maxConcurrentDispatches_;
+ /**
+ *
+ *
+ * + * The maximum number of concurrent tasks that Cloud Tasks allows + * to be dispatched for this queue. After this threshold has been + * reached, Cloud Tasks stops dispatching tasks until the number of + * concurrent requests decreases. + * If unspecified when the queue is created, Cloud Tasks will pick the + * default. + * The maximum allowed value is 5,000. + * This field has the same meaning as + * [max_concurrent_requests in + * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests). + *+ * + *
int32 max_concurrent_dispatches = 3;
+ */
+ public int getMaxConcurrentDispatches() {
+ return maxConcurrentDispatches_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (maxDispatchesPerSecond_ != 0D) {
+ output.writeDouble(1, maxDispatchesPerSecond_);
+ }
+ if (maxBurstSize_ != 0) {
+ output.writeInt32(2, maxBurstSize_);
+ }
+ if (maxConcurrentDispatches_ != 0) {
+ output.writeInt32(3, maxConcurrentDispatches_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (maxDispatchesPerSecond_ != 0D) {
+ size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, maxDispatchesPerSecond_);
+ }
+ if (maxBurstSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxBurstSize_);
+ }
+ if (maxConcurrentDispatches_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentDispatches_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.RateLimits)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.RateLimits other = (com.google.cloud.tasks.v2.RateLimits) obj;
+
+ if (java.lang.Double.doubleToLongBits(getMaxDispatchesPerSecond())
+ != java.lang.Double.doubleToLongBits(other.getMaxDispatchesPerSecond())) return false;
+ if (getMaxBurstSize() != other.getMaxBurstSize()) return false;
+ if (getMaxConcurrentDispatches() != other.getMaxConcurrentDispatches()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MAX_DISPATCHES_PER_SECOND_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getMaxDispatchesPerSecond()));
+ hash = (37 * hash) + MAX_BURST_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxBurstSize();
+ hash = (37 * hash) + MAX_CONCURRENT_DISPATCHES_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxConcurrentDispatches();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.RateLimits prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Rate limits. + * This message determines the maximum rate that tasks can be dispatched by a + * queue, regardless of whether the dispatch is a first task attempt or a retry. + * Note: The debugging command, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask], will run a task + * even if the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.RateLimits} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The maximum rate at which tasks are dispatched from this queue. + * If unspecified when the queue is created, Cloud Tasks will pick the + * default. + * * For [App Engine queues][google.cloud.tasks.v2.AppEngineHttpQueue], the maximum allowed value + * is 500. + * This field has the same meaning as + * [rate in + * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate). + *+ * + *
double max_dispatches_per_second = 1;
+ */
+ public double getMaxDispatchesPerSecond() {
+ return maxDispatchesPerSecond_;
+ }
+ /**
+ *
+ *
+ * + * The maximum rate at which tasks are dispatched from this queue. + * If unspecified when the queue is created, Cloud Tasks will pick the + * default. + * * For [App Engine queues][google.cloud.tasks.v2.AppEngineHttpQueue], the maximum allowed value + * is 500. + * This field has the same meaning as + * [rate in + * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate). + *+ * + *
double max_dispatches_per_second = 1;
+ */
+ public Builder setMaxDispatchesPerSecond(double value) {
+
+ maxDispatchesPerSecond_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The maximum rate at which tasks are dispatched from this queue. + * If unspecified when the queue is created, Cloud Tasks will pick the + * default. + * * For [App Engine queues][google.cloud.tasks.v2.AppEngineHttpQueue], the maximum allowed value + * is 500. + * This field has the same meaning as + * [rate in + * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate). + *+ * + *
double max_dispatches_per_second = 1;
+ */
+ public Builder clearMaxDispatchesPerSecond() {
+
+ maxDispatchesPerSecond_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private int maxBurstSize_;
+ /**
+ *
+ *
+ * + * Output only. The max burst size. + * Max burst size limits how fast tasks in queue are processed when + * many tasks are in the queue and the rate is high. This field + * allows the queue to have a high rate so processing starts shortly + * after a task is enqueued, but still limits resource usage when + * many tasks are enqueued in a short period of time. + * The [token bucket](https://wikipedia.org/wiki/Token_Bucket) + * algorithm is used to control the rate of task dispatches. Each + * queue has a token bucket that holds tokens, up to the maximum + * specified by `max_burst_size`. Each time a task is dispatched, a + * token is removed from the bucket. Tasks will be dispatched until + * the queue's bucket runs out of tokens. The bucket will be + * continuously refilled with new tokens based on + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. + * Cloud Tasks will pick the value of `max_burst_size` based on the + * value of + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. + * For App Engine queues that were created or updated using + * `queue.yaml/xml`, `max_burst_size` is equal to + * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). + * Since `max_burst_size` is output only, if + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] is called on a queue + * created by `queue.yaml/xml`, `max_burst_size` will be reset based + * on the value of + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second], + * regardless of whether + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second] + * is updated. + *+ * + *
int32 max_burst_size = 2;
+ */
+ public int getMaxBurstSize() {
+ return maxBurstSize_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The max burst size. + * Max burst size limits how fast tasks in queue are processed when + * many tasks are in the queue and the rate is high. This field + * allows the queue to have a high rate so processing starts shortly + * after a task is enqueued, but still limits resource usage when + * many tasks are enqueued in a short period of time. + * The [token bucket](https://wikipedia.org/wiki/Token_Bucket) + * algorithm is used to control the rate of task dispatches. Each + * queue has a token bucket that holds tokens, up to the maximum + * specified by `max_burst_size`. Each time a task is dispatched, a + * token is removed from the bucket. Tasks will be dispatched until + * the queue's bucket runs out of tokens. The bucket will be + * continuously refilled with new tokens based on + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. + * Cloud Tasks will pick the value of `max_burst_size` based on the + * value of + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. + * For App Engine queues that were created or updated using + * `queue.yaml/xml`, `max_burst_size` is equal to + * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). + * Since `max_burst_size` is output only, if + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] is called on a queue + * created by `queue.yaml/xml`, `max_burst_size` will be reset based + * on the value of + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second], + * regardless of whether + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second] + * is updated. + *+ * + *
int32 max_burst_size = 2;
+ */
+ public Builder setMaxBurstSize(int value) {
+
+ maxBurstSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The max burst size. + * Max burst size limits how fast tasks in queue are processed when + * many tasks are in the queue and the rate is high. This field + * allows the queue to have a high rate so processing starts shortly + * after a task is enqueued, but still limits resource usage when + * many tasks are enqueued in a short period of time. + * The [token bucket](https://wikipedia.org/wiki/Token_Bucket) + * algorithm is used to control the rate of task dispatches. Each + * queue has a token bucket that holds tokens, up to the maximum + * specified by `max_burst_size`. Each time a task is dispatched, a + * token is removed from the bucket. Tasks will be dispatched until + * the queue's bucket runs out of tokens. The bucket will be + * continuously refilled with new tokens based on + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. + * Cloud Tasks will pick the value of `max_burst_size` based on the + * value of + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. + * For App Engine queues that were created or updated using + * `queue.yaml/xml`, `max_burst_size` is equal to + * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). + * Since `max_burst_size` is output only, if + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] is called on a queue + * created by `queue.yaml/xml`, `max_burst_size` will be reset based + * on the value of + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second], + * regardless of whether + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second] + * is updated. + *+ * + *
int32 max_burst_size = 2;
+ */
+ public Builder clearMaxBurstSize() {
+
+ maxBurstSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int maxConcurrentDispatches_;
+ /**
+ *
+ *
+ * + * The maximum number of concurrent tasks that Cloud Tasks allows + * to be dispatched for this queue. After this threshold has been + * reached, Cloud Tasks stops dispatching tasks until the number of + * concurrent requests decreases. + * If unspecified when the queue is created, Cloud Tasks will pick the + * default. + * The maximum allowed value is 5,000. + * This field has the same meaning as + * [max_concurrent_requests in + * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests). + *+ * + *
int32 max_concurrent_dispatches = 3;
+ */
+ public int getMaxConcurrentDispatches() {
+ return maxConcurrentDispatches_;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of concurrent tasks that Cloud Tasks allows + * to be dispatched for this queue. After this threshold has been + * reached, Cloud Tasks stops dispatching tasks until the number of + * concurrent requests decreases. + * If unspecified when the queue is created, Cloud Tasks will pick the + * default. + * The maximum allowed value is 5,000. + * This field has the same meaning as + * [max_concurrent_requests in + * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests). + *+ * + *
int32 max_concurrent_dispatches = 3;
+ */
+ public Builder setMaxConcurrentDispatches(int value) {
+
+ maxConcurrentDispatches_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of concurrent tasks that Cloud Tasks allows + * to be dispatched for this queue. After this threshold has been + * reached, Cloud Tasks stops dispatching tasks until the number of + * concurrent requests decreases. + * If unspecified when the queue is created, Cloud Tasks will pick the + * default. + * The maximum allowed value is 5,000. + * This field has the same meaning as + * [max_concurrent_requests in + * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests). + *+ * + *
int32 max_concurrent_dispatches = 3;
+ */
+ public Builder clearMaxConcurrentDispatches() {
+
+ maxConcurrentDispatches_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.RateLimits)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.RateLimits)
+ private static final com.google.cloud.tasks.v2.RateLimits DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.RateLimits();
+ }
+
+ public static com.google.cloud.tasks.v2.RateLimits getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The maximum rate at which tasks are dispatched from this queue. + * If unspecified when the queue is created, Cloud Tasks will pick the + * default. + * * For [App Engine queues][google.cloud.tasks.v2.AppEngineHttpQueue], the maximum allowed value + * is 500. + * This field has the same meaning as + * [rate in + * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate). + *+ * + *
double max_dispatches_per_second = 1;
+ */
+ double getMaxDispatchesPerSecond();
+
+ /**
+ *
+ *
+ * + * Output only. The max burst size. + * Max burst size limits how fast tasks in queue are processed when + * many tasks are in the queue and the rate is high. This field + * allows the queue to have a high rate so processing starts shortly + * after a task is enqueued, but still limits resource usage when + * many tasks are enqueued in a short period of time. + * The [token bucket](https://wikipedia.org/wiki/Token_Bucket) + * algorithm is used to control the rate of task dispatches. Each + * queue has a token bucket that holds tokens, up to the maximum + * specified by `max_burst_size`. Each time a task is dispatched, a + * token is removed from the bucket. Tasks will be dispatched until + * the queue's bucket runs out of tokens. The bucket will be + * continuously refilled with new tokens based on + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. + * Cloud Tasks will pick the value of `max_burst_size` based on the + * value of + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. + * For App Engine queues that were created or updated using + * `queue.yaml/xml`, `max_burst_size` is equal to + * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). + * Since `max_burst_size` is output only, if + * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] is called on a queue + * created by `queue.yaml/xml`, `max_burst_size` will be reset based + * on the value of + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second], + * regardless of whether + * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second] + * is updated. + *+ * + *
int32 max_burst_size = 2;
+ */
+ int getMaxBurstSize();
+
+ /**
+ *
+ *
+ * + * The maximum number of concurrent tasks that Cloud Tasks allows + * to be dispatched for this queue. After this threshold has been + * reached, Cloud Tasks stops dispatching tasks until the number of + * concurrent requests decreases. + * If unspecified when the queue is created, Cloud Tasks will pick the + * default. + * The maximum allowed value is 5,000. + * This field has the same meaning as + * [max_concurrent_requests in + * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests). + *+ * + *
int32 max_concurrent_dispatches = 3;
+ */
+ int getMaxConcurrentDispatches();
+}
diff --git a/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java
new file mode 100644
index 000000000000..676764600f0c
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java
@@ -0,0 +1,610 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tasks/v2/cloudtasks.proto
+
+package com.google.cloud.tasks.v2;
+
+/**
+ *
+ *
+ * + * Request message for [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.ResumeQueueRequest} + */ +public final class ResumeQueueRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.ResumeQueueRequest) + ResumeQueueRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResumeQueueRequest.newBuilder() to construct. + private ResumeQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ResumeQueueRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ResumeQueueRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_ResumeQueueRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tasks.v2.CloudTasksProto + .internal_static_google_cloud_tasks_v2_ResumeQueueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tasks.v2.ResumeQueueRequest.class, + com.google.cloud.tasks.v2.ResumeQueueRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. + * The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tasks.v2.ResumeQueueRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tasks.v2.ResumeQueueRequest other =
+ (com.google.cloud.tasks.v2.ResumeQueueRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.tasks.v2.ResumeQueueRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Request message for [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. + *+ * + * Protobuf type {@code google.cloud.tasks.v2.ResumeQueueRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder