diff --git a/java-tasks/README.md b/java-tasks/README.md
index c2e57cf880ca..243350ee60ee 100644
--- a/java-tasks/README.md
+++ b/java-tasks/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
Creates and buffers a new task without the need to explicitly define a Task message. The queue must have [HTTP target][google.cloud.tasks.v2beta2.HttpTarget]. To create the task with a custom ID, use the following format and set TASK_ID to your desired ID: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the task with an automatically generated ID, use the following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is in its experimental stage. You must request access to the API through the [Cloud Tasks BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
Request object method variants only take one parameter, a request object, which must be constructed before the call.
- *"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
- *Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
- *Lists information about the supported locations for this service.
Sample code: - * - *
{@code - * // This snippet has been automatically generated and should be regarded as a code template only. - * // It will require modifications to work: - * // - It may require correct/in-range values for request initialization. - * // - It may require specifying regional endpoints when creating the service client as shown in - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { - * QueueName queue = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - * String taskId = "taskId-880873088"; - * HttpBody body = HttpBody.newBuilder().build(); - * BufferTaskResponse response = cloudTasksClient.bufferTask(queue, taskId, body); - * } - * }- * - * @param queue Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - *
The queue must already exist. - * @param taskId Optional. Task ID for the task being created. If not provided, a random task ID - * is assigned to the task. - * @param body Optional. Body of the HTTP request. - *
The body can take any generic value. The value is written to the [HttpRequest][payload] - * of the [Task]. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final BufferTaskResponse bufferTask(QueueName queue, String taskId, HttpBody body) { - BufferTaskRequest request = - BufferTaskRequest.newBuilder() - .setQueue(queue == null ? null : queue.toString()) - .setTaskId(taskId) - .setBody(body) - .build(); - return bufferTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates and buffers a new task without the need to explicitly define a Task message. The queue - * must have [HTTP target][google.cloud.tasks.v2beta2.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the - * task with an automatically generated ID, use the following format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is - * in its experimental stage. You must request access to the API through the [Cloud Tasks - * BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated and should be regarded as a code template only. - * // It will require modifications to work: - * // - It may require correct/in-range values for request initialization. - * // - It may require specifying regional endpoints when creating the service client as shown in - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { - * String queue = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - * String taskId = "taskId-880873088"; - * HttpBody body = HttpBody.newBuilder().build(); - * BufferTaskResponse response = cloudTasksClient.bufferTask(queue, taskId, body); - * } - * }- * - * @param queue Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - *
The queue must already exist. - * @param taskId Optional. Task ID for the task being created. If not provided, a random task ID - * is assigned to the task. - * @param body Optional. Body of the HTTP request. - *
The body can take any generic value. The value is written to the [HttpRequest][payload] - * of the [Task]. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final BufferTaskResponse bufferTask(String queue, String taskId, HttpBody body) { - BufferTaskRequest request = - BufferTaskRequest.newBuilder().setQueue(queue).setTaskId(taskId).setBody(body).build(); - return bufferTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates and buffers a new task without the need to explicitly define a Task message. The queue - * must have [HTTP target][google.cloud.tasks.v2beta2.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the - * task with an automatically generated ID, use the following format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is - * in its experimental stage. You must request access to the API through the [Cloud Tasks - * BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated and should be regarded as a code template only. - * // It will require modifications to work: - * // - It may require correct/in-range values for request initialization. - * // - It may require specifying regional endpoints when creating the service client as shown in - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { - * BufferTaskRequest request = - * BufferTaskRequest.newBuilder() - * .setQueue(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - * .setTaskId("taskId-880873088") - * .setBody(HttpBody.newBuilder().build()) - * .build(); - * BufferTaskResponse response = cloudTasksClient.bufferTask(request); - * } - * }- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final BufferTaskResponse bufferTask(BufferTaskRequest request) { - return bufferTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates and buffers a new task without the need to explicitly define a Task message. The queue - * must have [HTTP target][google.cloud.tasks.v2beta2.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the - * task with an automatically generated ID, use the following format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is - * in its experimental stage. You must request access to the API through the [Cloud Tasks - * BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated and should be regarded as a code template only. - * // It will require modifications to work: - * // - It may require correct/in-range values for request initialization. - * // - It may require specifying regional endpoints when creating the service client as shown in - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { - * BufferTaskRequest request = - * BufferTaskRequest.newBuilder() - * .setQueue(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - * .setTaskId("taskId-880873088") - * .setBody(HttpBody.newBuilder().build()) - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * cloudTasksClient.bufferTaskCallable().futureCall(request); - * // Do something. - * BufferTaskResponse response = future.get(); - * } - * }
Creates and buffers a new task without the need to explicitly define a Task message. The queue must have [HTTP target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a custom ID, use the following format and set TASK_ID to your desired ID: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the task with an automatically generated ID, use the following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is in its experimental stage. You must request access to the API through the [Cloud Tasks BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
Request object method variants only take one parameter, a request object, which must be constructed before the call.
- *"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
- *Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
- *Lists information about the supported locations for this service.
Sample code: - * - *
{@code - * // This snippet has been automatically generated and should be regarded as a code template only. - * // It will require modifications to work: - * // - It may require correct/in-range values for request initialization. - * // - It may require specifying regional endpoints when creating the service client as shown in - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { - * QueueName queue = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - * String taskId = "taskId-880873088"; - * HttpBody body = HttpBody.newBuilder().build(); - * BufferTaskResponse response = cloudTasksClient.bufferTask(queue, taskId, body); - * } - * }- * - * @param queue Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - *
The queue must already exist. - * @param taskId Optional. Task ID for the task being created. If not provided, a random task ID - * is assigned to the task. - * @param body Optional. Body of the HTTP request. - *
The body can take any generic value. The value is written to the [HttpRequest][payload] - * of the [Task]. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final BufferTaskResponse bufferTask(QueueName queue, String taskId, HttpBody body) { - BufferTaskRequest request = - BufferTaskRequest.newBuilder() - .setQueue(queue == null ? null : queue.toString()) - .setTaskId(taskId) - .setBody(body) - .build(); - return bufferTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates and buffers a new task without the need to explicitly define a Task message. The queue - * must have [HTTP target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the - * task with an automatically generated ID, use the following format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is - * in its experimental stage. You must request access to the API through the [Cloud Tasks - * BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated and should be regarded as a code template only. - * // It will require modifications to work: - * // - It may require correct/in-range values for request initialization. - * // - It may require specifying regional endpoints when creating the service client as shown in - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { - * String queue = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - * String taskId = "taskId-880873088"; - * HttpBody body = HttpBody.newBuilder().build(); - * BufferTaskResponse response = cloudTasksClient.bufferTask(queue, taskId, body); - * } - * }- * - * @param queue Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - *
The queue must already exist. - * @param taskId Optional. Task ID for the task being created. If not provided, a random task ID - * is assigned to the task. - * @param body Optional. Body of the HTTP request. - *
The body can take any generic value. The value is written to the [HttpRequest][payload] - * of the [Task]. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final BufferTaskResponse bufferTask(String queue, String taskId, HttpBody body) { - BufferTaskRequest request = - BufferTaskRequest.newBuilder().setQueue(queue).setTaskId(taskId).setBody(body).build(); - return bufferTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates and buffers a new task without the need to explicitly define a Task message. The queue - * must have [HTTP target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the - * task with an automatically generated ID, use the following format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is - * in its experimental stage. You must request access to the API through the [Cloud Tasks - * BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated and should be regarded as a code template only. - * // It will require modifications to work: - * // - It may require correct/in-range values for request initialization. - * // - It may require specifying regional endpoints when creating the service client as shown in - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { - * BufferTaskRequest request = - * BufferTaskRequest.newBuilder() - * .setQueue(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - * .setTaskId("taskId-880873088") - * .setBody(HttpBody.newBuilder().build()) - * .build(); - * BufferTaskResponse response = cloudTasksClient.bufferTask(request); - * } - * }- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final BufferTaskResponse bufferTask(BufferTaskRequest request) { - return bufferTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates and buffers a new task without the need to explicitly define a Task message. The queue - * must have [HTTP target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the - * task with an automatically generated ID, use the following format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note: This feature is - * in its experimental stage. You must request access to the API through the [Cloud Tasks - * BufferTask Experiment Signup form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - * - *
Sample code: - * - *
{@code - * // This snippet has been automatically generated and should be regarded as a code template only. - * // It will require modifications to work: - * // - It may require correct/in-range values for request initialization. - * // - It may require specifying regional endpoints when creating the service client as shown in - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { - * BufferTaskRequest request = - * BufferTaskRequest.newBuilder() - * .setQueue(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - * .setTaskId("taskId-880873088") - * .setBody(HttpBody.newBuilder().build()) - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * cloudTasksClient.bufferTaskCallable().futureCall(request); - * // Do something. - * BufferTaskResponse response = future.get(); - * } - * }
- * Creates and buffers a new task without the need to explicitly define a Task - * message. The queue must have [HTTP - * target][google.cloud.tasks.v2beta2.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer - * To create the task with an automatically generated ID, use the following - * format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. - * Note: This feature is in its experimental stage. You must request access to - * the API through the [Cloud Tasks BufferTask Experiment Signup - * form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - *- */ - default void bufferTask( - com.google.cloud.tasks.v2beta2.BufferTaskRequest request, - io.grpc.stub.StreamObserver
- * Creates and buffers a new task without the need to explicitly define a Task - * message. The queue must have [HTTP - * target][google.cloud.tasks.v2beta2.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer - * To create the task with an automatically generated ID, use the following - * format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. - * Note: This feature is in its experimental stage. You must request access to - * the API through the [Cloud Tasks BufferTask Experiment Signup - * form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - *- */ - public void bufferTask( - com.google.cloud.tasks.v2beta2.BufferTaskRequest request, - io.grpc.stub.StreamObserver
- * Creates and buffers a new task without the need to explicitly define a Task - * message. The queue must have [HTTP - * target][google.cloud.tasks.v2beta2.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer - * To create the task with an automatically generated ID, use the following - * format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. - * Note: This feature is in its experimental stage. You must request access to - * the API through the [Cloud Tasks BufferTask Experiment Signup - * form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - *- */ - public com.google.cloud.tasks.v2beta2.BufferTaskResponse bufferTask( - com.google.cloud.tasks.v2beta2.BufferTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBufferTaskMethod(), getCallOptions(), request); - } } /** @@ -2912,30 +2794,6 @@ public com.google.common.util.concurrent.ListenableFuture
- * Creates and buffers a new task without the need to explicitly define a Task - * message. The queue must have [HTTP - * target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer - * To create the task with an automatically generated ID, use the following - * format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. - * Note: This feature is in its experimental stage. You must request access to - * the API through the [Cloud Tasks BufferTask Experiment Signup - * form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - *- */ - default void bufferTask( - com.google.cloud.tasks.v2beta3.BufferTaskRequest request, - io.grpc.stub.StreamObserver
- * Creates and buffers a new task without the need to explicitly define a Task - * message. The queue must have [HTTP - * target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer - * To create the task with an automatically generated ID, use the following - * format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. - * Note: This feature is in its experimental stage. You must request access to - * the API through the [Cloud Tasks BufferTask Experiment Signup - * form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - *- */ - public void bufferTask( - com.google.cloud.tasks.v2beta3.BufferTaskRequest request, - io.grpc.stub.StreamObserver
- * Creates and buffers a new task without the need to explicitly define a Task - * message. The queue must have [HTTP - * target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a - * custom ID, use the following format and set TASK_ID to your desired ID: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer - * To create the task with an automatically generated ID, use the following - * format: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. - * Note: This feature is in its experimental stage. You must request access to - * the API through the [Cloud Tasks BufferTask Experiment Signup - * form](https://forms.gle/X8Zr5hiXH5tTGFqh8). - *- */ - public com.google.cloud.tasks.v2beta3.BufferTaskResponse bufferTask( - com.google.cloud.tasks.v2beta3.BufferTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBufferTaskMethod(), getCallOptions(), request); - } } /** @@ -2231,30 +2113,6 @@ public com.google.common.util.concurrent.ListenableFuture
- * LINT.IfChange - * Request message for - * [BufferTask][google.cloud.tasks.v2beta2.CloudTasks.BufferTask]. - *- * - * Protobuf type {@code google.cloud.tasks.v2beta2.BufferTaskRequest} - */ -public final class BufferTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.BufferTaskRequest) - BufferTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use BufferTaskRequest.newBuilder() to construct. - private BufferTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private BufferTaskRequest() { - queue_ = ""; - taskId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BufferTaskRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_BufferTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_BufferTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.BufferTaskRequest.class, - com.google.cloud.tasks.v2beta2.BufferTaskRequest.Builder.class); - } - - public static final int QUEUE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object queue_ = ""; - /** - * - * - *
- * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The queue.
- */
- @java.lang.Override
- public java.lang.String getQueue() {
- java.lang.Object ref = queue_;
- 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();
- queue_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for queue.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getQueueBytes() {
- java.lang.Object ref = queue_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- queue_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int TASK_ID_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object taskId_ = "";
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The taskId.
- */
- @java.lang.Override
- public java.lang.String getTaskId() {
- java.lang.Object ref = taskId_;
- 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();
- taskId_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for taskId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getTaskIdBytes() {
- java.lang.Object ref = taskId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- taskId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int BODY_FIELD_NUMBER = 3;
- private com.google.api.HttpBody body_;
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return Whether the body field is set.
- */
- @java.lang.Override
- public boolean hasBody() {
- return body_ != null;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The body.
- */
- @java.lang.Override
- public com.google.api.HttpBody getBody() {
- return body_ == null ? com.google.api.HttpBody.getDefaultInstance() : body_;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- @java.lang.Override
- public com.google.api.HttpBodyOrBuilder getBodyOrBuilder() {
- return body_ == null ? com.google.api.HttpBody.getDefaultInstance() : 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queue_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queue_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, taskId_);
- }
- if (body_ != null) {
- output.writeMessage(3, getBody());
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queue_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queue_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, taskId_);
- }
- if (body_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBody());
- }
- size += getUnknownFields().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.v2beta2.BufferTaskRequest)) {
- return super.equals(obj);
- }
- com.google.cloud.tasks.v2beta2.BufferTaskRequest other =
- (com.google.cloud.tasks.v2beta2.BufferTaskRequest) obj;
-
- if (!getQueue().equals(other.getQueue())) return false;
- if (!getTaskId().equals(other.getTaskId())) return false;
- if (hasBody() != other.hasBody()) return false;
- if (hasBody()) {
- if (!getBody().equals(other.getBody())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) 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) + QUEUE_FIELD_NUMBER;
- hash = (53 * hash) + getQueue().hashCode();
- hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
- hash = (53 * hash) + getTaskId().hashCode();
- if (hasBody()) {
- hash = (37 * hash) + BODY_FIELD_NUMBER;
- hash = (53 * hash) + getBody().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskRequest parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskRequest 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.v2beta2.BufferTaskRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskRequest 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.v2beta2.BufferTaskRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskRequest parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskRequest parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskRequest 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.v2beta2.BufferTaskRequest parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskRequest 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.v2beta2.BufferTaskRequest parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskRequest 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.v2beta2.BufferTaskRequest 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;
- }
- /**
- *
- *
- * - * LINT.IfChange - * Request message for - * [BufferTask][google.cloud.tasks.v2beta2.CloudTasks.BufferTask]. - *- * - * Protobuf type {@code google.cloud.tasks.v2beta2.BufferTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The queue.
- */
- public java.lang.String getQueue() {
- java.lang.Object ref = queue_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- queue_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for queue.
- */
- public com.google.protobuf.ByteString getQueueBytes() {
- java.lang.Object ref = queue_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- queue_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @param value The queue to set.
- * @return This builder for chaining.
- */
- public Builder setQueue(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- queue_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return This builder for chaining.
- */
- public Builder clearQueue() {
- queue_ = getDefaultInstance().getQueue();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @param value The bytes for queue to set.
- * @return This builder for chaining.
- */
- public Builder setQueueBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- queue_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
- private java.lang.Object taskId_ = "";
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The taskId.
- */
- public java.lang.String getTaskId() {
- java.lang.Object ref = taskId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- taskId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for taskId.
- */
- public com.google.protobuf.ByteString getTaskIdBytes() {
- java.lang.Object ref = taskId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- taskId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The taskId to set.
- * @return This builder for chaining.
- */
- public Builder setTaskId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- taskId_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return This builder for chaining.
- */
- public Builder clearTaskId() {
- taskId_ = getDefaultInstance().getTaskId();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The bytes for taskId to set.
- * @return This builder for chaining.
- */
- public Builder setTaskIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- taskId_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
- private com.google.api.HttpBody body_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.api.HttpBody,
- com.google.api.HttpBody.Builder,
- com.google.api.HttpBodyOrBuilder>
- bodyBuilder_;
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return Whether the body field is set.
- */
- public boolean hasBody() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The body.
- */
- public com.google.api.HttpBody getBody() {
- if (bodyBuilder_ == null) {
- return body_ == null ? com.google.api.HttpBody.getDefaultInstance() : body_;
- } else {
- return bodyBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public Builder setBody(com.google.api.HttpBody value) {
- if (bodyBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- body_ = value;
- } else {
- bodyBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public Builder setBody(com.google.api.HttpBody.Builder builderForValue) {
- if (bodyBuilder_ == null) {
- body_ = builderForValue.build();
- } else {
- bodyBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public Builder mergeBody(com.google.api.HttpBody value) {
- if (bodyBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)
- && body_ != null
- && body_ != com.google.api.HttpBody.getDefaultInstance()) {
- getBodyBuilder().mergeFrom(value);
- } else {
- body_ = value;
- }
- } else {
- bodyBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public Builder clearBody() {
- bitField0_ = (bitField0_ & ~0x00000004);
- body_ = null;
- if (bodyBuilder_ != null) {
- bodyBuilder_.dispose();
- bodyBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public com.google.api.HttpBody.Builder getBodyBuilder() {
- bitField0_ |= 0x00000004;
- onChanged();
- return getBodyFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public com.google.api.HttpBodyOrBuilder getBodyOrBuilder() {
- if (bodyBuilder_ != null) {
- return bodyBuilder_.getMessageOrBuilder();
- } else {
- return body_ == null ? com.google.api.HttpBody.getDefaultInstance() : body_;
- }
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.api.HttpBody,
- com.google.api.HttpBody.Builder,
- com.google.api.HttpBodyOrBuilder>
- getBodyFieldBuilder() {
- if (bodyBuilder_ == null) {
- bodyBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.api.HttpBody,
- com.google.api.HttpBody.Builder,
- com.google.api.HttpBodyOrBuilder>(getBody(), getParentForChildren(), isClean());
- body_ = null;
- }
- return bodyBuilder_;
- }
-
- @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.v2beta2.BufferTaskRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.BufferTaskRequest)
- private static final com.google.cloud.tasks.v2beta2.BufferTaskRequest DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.BufferTaskRequest();
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The queue.
- */
- java.lang.String getQueue();
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for queue.
- */
- com.google.protobuf.ByteString getQueueBytes();
-
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The taskId.
- */
- java.lang.String getTaskId();
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for taskId.
- */
- com.google.protobuf.ByteString getTaskIdBytes();
-
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return Whether the body field is set.
- */
- boolean hasBody();
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The body.
- */
- com.google.api.HttpBody getBody();
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- com.google.api.HttpBodyOrBuilder getBodyOrBuilder();
-}
diff --git a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/BufferTaskResponse.java b/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/BufferTaskResponse.java
deleted file mode 100644
index ab731f08247a..000000000000
--- a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/BufferTaskResponse.java
+++ /dev/null
@@ -1,699 +0,0 @@
-/*
- * Copyright 2023 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
- *
- * https://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.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/tasks/v2beta2/cloudtasks.proto
-
-package com.google.cloud.tasks.v2beta2;
-
-/**
- *
- *
- * - * Response message for - * [BufferTask][google.cloud.tasks.v2beta2.CloudTasks.BufferTask]. - *- * - * Protobuf type {@code google.cloud.tasks.v2beta2.BufferTaskResponse} - */ -public final class BufferTaskResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.BufferTaskResponse) - BufferTaskResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use BufferTaskResponse.newBuilder() to construct. - private BufferTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private BufferTaskResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BufferTaskResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_BufferTaskResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_BufferTaskResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.BufferTaskResponse.class, - com.google.cloud.tasks.v2beta2.BufferTaskResponse.Builder.class); - } - - public static final int TASK_FIELD_NUMBER = 1; - private com.google.cloud.tasks.v2beta2.Task task_; - /** - * - * - *
- * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- *
- * @return Whether the task field is set.
- */
- @java.lang.Override
- public boolean hasTask() {
- return task_ != null;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- *
- * @return The task.
- */
- @java.lang.Override
- public com.google.cloud.tasks.v2beta2.Task getTask() {
- return task_ == null ? com.google.cloud.tasks.v2beta2.Task.getDefaultInstance() : task_;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- */
- @java.lang.Override
- public com.google.cloud.tasks.v2beta2.TaskOrBuilder getTaskOrBuilder() {
- return task_ == null ? com.google.cloud.tasks.v2beta2.Task.getDefaultInstance() : task_;
- }
-
- 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 (task_ != null) {
- output.writeMessage(1, getTask());
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (task_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTask());
- }
- size += getUnknownFields().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.v2beta2.BufferTaskResponse)) {
- return super.equals(obj);
- }
- com.google.cloud.tasks.v2beta2.BufferTaskResponse other =
- (com.google.cloud.tasks.v2beta2.BufferTaskResponse) obj;
-
- if (hasTask() != other.hasTask()) return false;
- if (hasTask()) {
- if (!getTask().equals(other.getTask())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasTask()) {
- hash = (37 * hash) + TASK_FIELD_NUMBER;
- hash = (53 * hash) + getTask().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskResponse parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskResponse 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.v2beta2.BufferTaskResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskResponse 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.v2beta2.BufferTaskResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskResponse parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskResponse parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskResponse 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.v2beta2.BufferTaskResponse parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskResponse 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.v2beta2.BufferTaskResponse parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskResponse 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.v2beta2.BufferTaskResponse 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 - * [BufferTask][google.cloud.tasks.v2beta2.CloudTasks.BufferTask]. - *- * - * Protobuf type {@code google.cloud.tasks.v2beta2.BufferTaskResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- *
- * @return Whether the task field is set.
- */
- public boolean hasTask() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- *
- * @return The task.
- */
- public com.google.cloud.tasks.v2beta2.Task getTask() {
- if (taskBuilder_ == null) {
- return task_ == null ? com.google.cloud.tasks.v2beta2.Task.getDefaultInstance() : task_;
- } else {
- return taskBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- */
- public Builder setTask(com.google.cloud.tasks.v2beta2.Task value) {
- if (taskBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- task_ = value;
- } else {
- taskBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- */
- public Builder setTask(com.google.cloud.tasks.v2beta2.Task.Builder builderForValue) {
- if (taskBuilder_ == null) {
- task_ = builderForValue.build();
- } else {
- taskBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- */
- public Builder mergeTask(com.google.cloud.tasks.v2beta2.Task value) {
- if (taskBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && task_ != null
- && task_ != com.google.cloud.tasks.v2beta2.Task.getDefaultInstance()) {
- getTaskBuilder().mergeFrom(value);
- } else {
- task_ = value;
- }
- } else {
- taskBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- */
- public Builder clearTask() {
- bitField0_ = (bitField0_ & ~0x00000001);
- task_ = null;
- if (taskBuilder_ != null) {
- taskBuilder_.dispose();
- taskBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- */
- public com.google.cloud.tasks.v2beta2.Task.Builder getTaskBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getTaskFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- */
- public com.google.cloud.tasks.v2beta2.TaskOrBuilder getTaskOrBuilder() {
- if (taskBuilder_ != null) {
- return taskBuilder_.getMessageOrBuilder();
- } else {
- return task_ == null ? com.google.cloud.tasks.v2beta2.Task.getDefaultInstance() : task_;
- }
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.tasks.v2beta2.Task,
- com.google.cloud.tasks.v2beta2.Task.Builder,
- com.google.cloud.tasks.v2beta2.TaskOrBuilder>
- getTaskFieldBuilder() {
- if (taskBuilder_ == null) {
- taskBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.tasks.v2beta2.Task,
- com.google.cloud.tasks.v2beta2.Task.Builder,
- com.google.cloud.tasks.v2beta2.TaskOrBuilder>(
- getTask(), getParentForChildren(), isClean());
- task_ = null;
- }
- return taskBuilder_;
- }
-
- @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.v2beta2.BufferTaskResponse)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.BufferTaskResponse)
- private static final com.google.cloud.tasks.v2beta2.BufferTaskResponse DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.BufferTaskResponse();
- }
-
- public static com.google.cloud.tasks.v2beta2.BufferTaskResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- *
- * @return Whether the task field is set.
- */
- boolean hasTask();
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- *
- * @return The task.
- */
- com.google.cloud.tasks.v2beta2.Task getTask();
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta2.Task task = 1;
- */
- com.google.cloud.tasks.v2beta2.TaskOrBuilder getTaskOrBuilder();
-}
diff --git a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksProto.java b/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksProto.java
index ed6c17b05fcf..6cb87237961c 100644
--- a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksProto.java
+++ b/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksProto.java
@@ -111,14 +111,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_tasks_v2beta2_BufferTaskRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_tasks_v2beta2_BufferTaskRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_tasks_v2beta2_BufferTaskResponse_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_tasks_v2beta2_BufferTaskResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -210,117 +202,106 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "TaskRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036clou"
+ "dtasks.googleapis.com/Task\022<\n\rresponse_v"
+ "iew\030\002 \001(\0162%.google.cloud.tasks.v2beta2.T"
- + "ask.View\"\214\001\n\021BufferTaskRequest\0226\n\005queue\030"
- + "\001 \001(\tB\'\342A\001\002\372A \022\036cloudtasks.googleapis.co"
- + "m/Task\022\025\n\007task_id\030\002 \001(\tB\004\342A\001\001\022(\n\004body\030\003 "
- + "\001(\0132\024.google.api.HttpBodyB\004\342A\001\001\"D\n\022Buffe"
- + "rTaskResponse\022.\n\004task\030\001 \001(\0132 .google.clo"
- + "ud.tasks.v2beta2.Task2\214\037\n\nCloudTasks\022\255\001\n"
- + "\nListQueues\022-.google.cloud.tasks.v2beta2"
- + ".ListQueuesRequest\032..google.cloud.tasks."
- + "v2beta2.ListQueuesResponse\"@\332A\006parent\202\323\344"
- + "\223\0021\022//v2beta2/{parent=projects/*/locatio"
- + "ns/*}/queues\022\232\001\n\010GetQueue\022+.google.cloud"
- + ".tasks.v2beta2.GetQueueRequest\032!.google."
- + "cloud.tasks.v2beta2.Queue\">\332A\004name\202\323\344\223\0021"
- + "\022//v2beta2/{name=projects/*/locations/*/"
- + "queues/*}\022\257\001\n\013CreateQueue\022..google.cloud"
- + ".tasks.v2beta2.CreateQueueRequest\032!.goog"
- + "le.cloud.tasks.v2beta2.Queue\"M\332A\014parent,"
- + "queue\202\323\344\223\0028\"//v2beta2/{parent=projects/*"
- + "/locations/*}/queues:\005queue\022\272\001\n\013UpdateQu"
- + "eue\022..google.cloud.tasks.v2beta2.UpdateQ"
- + "ueueRequest\032!.google.cloud.tasks.v2beta2"
- + ".Queue\"X\332A\021queue,update_mask\202\323\344\223\002>25/v2b"
- + "eta2/{queue.name=projects/*/locations/*/"
- + "queues/*}:\005queue\022\225\001\n\013DeleteQueue\022..googl"
- + "e.cloud.tasks.v2beta2.DeleteQueueRequest"
- + "\032\026.google.protobuf.Empty\">\332A\004name\202\323\344\223\0021*"
- + "//v2beta2/{name=projects/*/locations/*/q"
- + "ueues/*}\022\247\001\n\nPurgeQueue\022-.google.cloud.t"
- + "asks.v2beta2.PurgeQueueRequest\032!.google."
- + "cloud.tasks.v2beta2.Queue\"G\332A\004name\202\323\344\223\002:"
- + "\"5/v2beta2/{name=projects/*/locations/*/"
- + "queues/*}:purge:\001*\022\247\001\n\nPauseQueue\022-.goog"
- + "le.cloud.tasks.v2beta2.PauseQueueRequest"
- + "\032!.google.cloud.tasks.v2beta2.Queue\"G\332A\004"
- + "name\202\323\344\223\002:\"5/v2beta2/{name=projects/*/lo"
- + "cations/*/queues/*}:pause:\001*\022\252\001\n\013ResumeQ"
- + "ueue\022..google.cloud.tasks.v2beta2.Resume"
- + "QueueRequest\032!.google.cloud.tasks.v2beta"
- + "2.Queue\"H\332A\004name\202\323\344\223\002;\"6/v2beta2/{name=p"
- + "rojects/*/locations/*/queues/*}:resume:\001"
- + "*\022_\n\017UploadQueueYaml\0222.google.cloud.task"
- + "s.v2beta2.UploadQueueYamlRequest\032\026.googl"
- + "e.protobuf.Empty\"\000\022\241\001\n\014GetIamPolicy\022\".go"
- + "ogle.iam.v1.GetIamPolicyRequest\032\025.google"
- + ".iam.v1.Policy\"V\332A\010resource\202\323\344\223\002E\"@/v2be"
- + "ta2/{resource=projects/*/locations/*/que"
- + "ues/*}:getIamPolicy:\001*\022\250\001\n\014SetIamPolicy\022"
- + "\".google.iam.v1.SetIamPolicyRequest\032\025.go"
- + "ogle.iam.v1.Policy\"]\332A\017resource,policy\202\323"
- + "\344\223\002E\"@/v2beta2/{resource=projects/*/loca"
- + "tions/*/queues/*}:setIamPolicy:\001*\022\323\001\n\022Te"
- + "stIamPermissions\022(.google.iam.v1.TestIam"
- + "PermissionsRequest\032).google.iam.v1.TestI"
- + "amPermissionsResponse\"h\332A\024resource,permi"
- + "ssions\202\323\344\223\002K\"F/v2beta2/{resource=project"
- + "s/*/locations/*/queues/*}:testIamPermiss"
- + "ions:\001*\022\262\001\n\tListTasks\022,.google.cloud.tas"
- + "ks.v2beta2.ListTasksRequest\032-.google.clo"
- + "ud.tasks.v2beta2.ListTasksResponse\"H\332A\006p"
- + "arent\202\323\344\223\0029\0227/v2beta2/{parent=projects/*"
- + "/locations/*/queues/*}/tasks\022\237\001\n\007GetTask"
- + "\022*.google.cloud.tasks.v2beta2.GetTaskReq"
- + "uest\032 .google.cloud.tasks.v2beta2.Task\"F"
- + "\332A\004name\202\323\344\223\0029\0227/v2beta2/{name=projects/*"
- + "/locations/*/queues/*/tasks/*}\022\257\001\n\nCreat"
- + "eTask\022-.google.cloud.tasks.v2beta2.Creat"
- + "eTaskRequest\032 .google.cloud.tasks.v2beta"
- + "2.Task\"P\332A\013parent,task\202\323\344\223\002<\"7/v2beta2/{"
- + "parent=projects/*/locations/*/queues/*}/"
- + "tasks:\001*\022\233\001\n\nDeleteTask\022-.google.cloud.t"
- + "asks.v2beta2.DeleteTaskRequest\032\026.google."
- + "protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v2beta2/"
- + "{name=projects/*/locations/*/queues/*/ta"
- + "sks/*}\022\315\001\n\nLeaseTasks\022-.google.cloud.tas"
- + "ks.v2beta2.LeaseTasksRequest\032..google.cl"
- + "oud.tasks.v2beta2.LeaseTasksResponse\"`\332A"
- + "\025parent,lease_duration\202\323\344\223\002B\"=/v2beta2/{"
- + "parent=projects/*/locations/*/queues/*}/"
- + "tasks:lease:\001*\022\302\001\n\017AcknowledgeTask\0222.goo"
- + "gle.cloud.tasks.v2beta2.AcknowledgeTaskR"
- + "equest\032\026.google.protobuf.Empty\"c\332A\022name,"
- + "schedule_time\202\323\344\223\002H\"C/v2beta2/{name=proj"
- + "ects/*/locations/*/queues/*/tasks/*}:ack"
- + "nowledge:\001*\022\320\001\n\nRenewLease\022-.google.clou"
- + "d.tasks.v2beta2.RenewLeaseRequest\032 .goog"
- + "le.cloud.tasks.v2beta2.Task\"q\332A!name,sch"
- + "edule_time,lease_duration\202\323\344\223\002G\"B/v2beta"
- + "2/{name=projects/*/locations/*/queues/*/"
- + "tasks/*}:renewLease:\001*\022\304\001\n\013CancelLease\022."
- + ".google.cloud.tasks.v2beta2.CancelLeaseR"
- + "equest\032 .google.cloud.tasks.v2beta2.Task"
- + "\"c\332A\022name,schedule_time\202\323\344\223\002H\"C/v2beta2/"
- + "{name=projects/*/locations/*/queues/*/ta"
- + "sks/*}:cancelLease:\001*\022\246\001\n\007RunTask\022*.goog"
- + "le.cloud.tasks.v2beta2.RunTaskRequest\032 ."
- + "google.cloud.tasks.v2beta2.Task\"M\332A\004name"
- + "\202\323\344\223\002@\";/v2beta2/{name=projects/*/locati"
- + "ons/*/queues/*/tasks/*}:run:\001*\022\324\001\n\nBuffe"
- + "rTask\022-.google.cloud.tasks.v2beta2.Buffe"
- + "rTaskRequest\032..google.cloud.tasks.v2beta"
- + "2.BufferTaskResponse\"g\332A\022queue,task_id,b"
- + "ody\202\323\344\223\002L\"G/v2beta2/{queue=projects/*/lo"
- + "cations/*/queues/*}/tasks/{task_id}:buff"
- + "er:\001*\032M\312A\031cloudtasks.googleapis.com\322A.ht"
- + "tps://www.googleapis.com/auth/cloud-plat"
- + "formB\320\001\n\036com.google.cloud.tasks.v2beta2B"
- + "\017CloudTasksProtoP\001ZCcloud.google.com/go/"
- + "cloudtasks/apiv2beta2/cloudtaskspb;cloud"
- + "taskspb\242\002\005TASKS\352AM\n\"cloudtasks.googleapi"
- + "s.com/Location\022\'projects/{project}/locat"
- + "ions/{location}b\006proto3"
+ + "ask.View2\265\035\n\nCloudTasks\022\255\001\n\nListQueues\022-"
+ + ".google.cloud.tasks.v2beta2.ListQueuesRe"
+ + "quest\032..google.cloud.tasks.v2beta2.ListQ"
+ + "ueuesResponse\"@\332A\006parent\202\323\344\223\0021\022//v2beta2"
+ + "/{parent=projects/*/locations/*}/queues\022"
+ + "\232\001\n\010GetQueue\022+.google.cloud.tasks.v2beta"
+ + "2.GetQueueRequest\032!.google.cloud.tasks.v"
+ + "2beta2.Queue\">\332A\004name\202\323\344\223\0021\022//v2beta2/{n"
+ + "ame=projects/*/locations/*/queues/*}\022\257\001\n"
+ + "\013CreateQueue\022..google.cloud.tasks.v2beta"
+ + "2.CreateQueueRequest\032!.google.cloud.task"
+ + "s.v2beta2.Queue\"M\332A\014parent,queue\202\323\344\223\0028\"/"
+ + "/v2beta2/{parent=projects/*/locations/*}"
+ + "/queues:\005queue\022\272\001\n\013UpdateQueue\022..google."
+ + "cloud.tasks.v2beta2.UpdateQueueRequest\032!"
+ + ".google.cloud.tasks.v2beta2.Queue\"X\332A\021qu"
+ + "eue,update_mask\202\323\344\223\002>25/v2beta2/{queue.n"
+ + "ame=projects/*/locations/*/queues/*}:\005qu"
+ + "eue\022\225\001\n\013DeleteQueue\022..google.cloud.tasks"
+ + ".v2beta2.DeleteQueueRequest\032\026.google.pro"
+ + "tobuf.Empty\">\332A\004name\202\323\344\223\0021*//v2beta2/{na"
+ + "me=projects/*/locations/*/queues/*}\022\247\001\n\n"
+ + "PurgeQueue\022-.google.cloud.tasks.v2beta2."
+ + "PurgeQueueRequest\032!.google.cloud.tasks.v"
+ + "2beta2.Queue\"G\332A\004name\202\323\344\223\002:\"5/v2beta2/{n"
+ + "ame=projects/*/locations/*/queues/*}:pur"
+ + "ge:\001*\022\247\001\n\nPauseQueue\022-.google.cloud.task"
+ + "s.v2beta2.PauseQueueRequest\032!.google.clo"
+ + "ud.tasks.v2beta2.Queue\"G\332A\004name\202\323\344\223\002:\"5/"
+ + "v2beta2/{name=projects/*/locations/*/que"
+ + "ues/*}:pause:\001*\022\252\001\n\013ResumeQueue\022..google"
+ + ".cloud.tasks.v2beta2.ResumeQueueRequest\032"
+ + "!.google.cloud.tasks.v2beta2.Queue\"H\332A\004n"
+ + "ame\202\323\344\223\002;\"6/v2beta2/{name=projects/*/loc"
+ + "ations/*/queues/*}:resume:\001*\022_\n\017UploadQu"
+ + "eueYaml\0222.google.cloud.tasks.v2beta2.Upl"
+ + "oadQueueYamlRequest\032\026.google.protobuf.Em"
+ + "pty\"\000\022\241\001\n\014GetIamPolicy\022\".google.iam.v1.G"
+ + "etIamPolicyRequest\032\025.google.iam.v1.Polic"
+ + "y\"V\332A\010resource\202\323\344\223\002E\"@/v2beta2/{resource"
+ + "=projects/*/locations/*/queues/*}:getIam"
+ + "Policy:\001*\022\250\001\n\014SetIamPolicy\022\".google.iam."
+ + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P"
+ + "olicy\"]\332A\017resource,policy\202\323\344\223\002E\"@/v2beta"
+ + "2/{resource=projects/*/locations/*/queue"
+ + "s/*}:setIamPolicy:\001*\022\323\001\n\022TestIamPermissi"
+ + "ons\022(.google.iam.v1.TestIamPermissionsRe"
+ + "quest\032).google.iam.v1.TestIamPermissions"
+ + "Response\"h\332A\024resource,permissions\202\323\344\223\002K\""
+ + "F/v2beta2/{resource=projects/*/locations"
+ + "/*/queues/*}:testIamPermissions:\001*\022\262\001\n\tL"
+ + "istTasks\022,.google.cloud.tasks.v2beta2.Li"
+ + "stTasksRequest\032-.google.cloud.tasks.v2be"
+ + "ta2.ListTasksResponse\"H\332A\006parent\202\323\344\223\0029\0227"
+ + "/v2beta2/{parent=projects/*/locations/*/"
+ + "queues/*}/tasks\022\237\001\n\007GetTask\022*.google.clo"
+ + "ud.tasks.v2beta2.GetTaskRequest\032 .google"
+ + ".cloud.tasks.v2beta2.Task\"F\332A\004name\202\323\344\223\0029"
+ + "\0227/v2beta2/{name=projects/*/locations/*/"
+ + "queues/*/tasks/*}\022\257\001\n\nCreateTask\022-.googl"
+ + "e.cloud.tasks.v2beta2.CreateTaskRequest\032"
+ + " .google.cloud.tasks.v2beta2.Task\"P\332A\013pa"
+ + "rent,task\202\323\344\223\002<\"7/v2beta2/{parent=projec"
+ + "ts/*/locations/*/queues/*}/tasks:\001*\022\233\001\n\n"
+ + "DeleteTask\022-.google.cloud.tasks.v2beta2."
+ + "DeleteTaskRequest\032\026.google.protobuf.Empt"
+ + "y\"F\332A\004name\202\323\344\223\0029*7/v2beta2/{name=project"
+ + "s/*/locations/*/queues/*/tasks/*}\022\315\001\n\nLe"
+ + "aseTasks\022-.google.cloud.tasks.v2beta2.Le"
+ + "aseTasksRequest\032..google.cloud.tasks.v2b"
+ + "eta2.LeaseTasksResponse\"`\332A\025parent,lease"
+ + "_duration\202\323\344\223\002B\"=/v2beta2/{parent=projec"
+ + "ts/*/locations/*/queues/*}/tasks:lease:\001"
+ + "*\022\302\001\n\017AcknowledgeTask\0222.google.cloud.tas"
+ + "ks.v2beta2.AcknowledgeTaskRequest\032\026.goog"
+ + "le.protobuf.Empty\"c\332A\022name,schedule_time"
+ + "\202\323\344\223\002H\"C/v2beta2/{name=projects/*/locati"
+ + "ons/*/queues/*/tasks/*}:acknowledge:\001*\022\320"
+ + "\001\n\nRenewLease\022-.google.cloud.tasks.v2bet"
+ + "a2.RenewLeaseRequest\032 .google.cloud.task"
+ + "s.v2beta2.Task\"q\332A!name,schedule_time,le"
+ + "ase_duration\202\323\344\223\002G\"B/v2beta2/{name=proje"
+ + "cts/*/locations/*/queues/*/tasks/*}:rene"
+ + "wLease:\001*\022\304\001\n\013CancelLease\022..google.cloud"
+ + ".tasks.v2beta2.CancelLeaseRequest\032 .goog"
+ + "le.cloud.tasks.v2beta2.Task\"c\332A\022name,sch"
+ + "edule_time\202\323\344\223\002H\"C/v2beta2/{name=project"
+ + "s/*/locations/*/queues/*/tasks/*}:cancel"
+ + "Lease:\001*\022\246\001\n\007RunTask\022*.google.cloud.task"
+ + "s.v2beta2.RunTaskRequest\032 .google.cloud."
+ + "tasks.v2beta2.Task\"M\332A\004name\202\323\344\223\002@\";/v2be"
+ + "ta2/{name=projects/*/locations/*/queues/"
+ + "*/tasks/*}:run:\001*\032M\312A\031cloudtasks.googlea"
+ + "pis.com\322A.https://www.googleapis.com/aut"
+ + "h/cloud-platformB\320\001\n\036com.google.cloud.ta"
+ + "sks.v2beta2B\017CloudTasksProtoP\001ZCcloud.go"
+ + "ogle.com/go/cloudtasks/apiv2beta2/cloudt"
+ + "askspb;cloudtaskspb\242\002\005TASKS\352AM\n\"cloudtas"
+ + "ks.googleapis.com/Location\022\'projects/{pr"
+ + "oject}/locations/{location}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -508,22 +489,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Name", "ResponseView",
});
- internal_static_google_cloud_tasks_v2beta2_BufferTaskRequest_descriptor =
- getDescriptor().getMessageTypes().get(21);
- internal_static_google_cloud_tasks_v2beta2_BufferTaskRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_tasks_v2beta2_BufferTaskRequest_descriptor,
- new java.lang.String[] {
- "Queue", "TaskId", "Body",
- });
- internal_static_google_cloud_tasks_v2beta2_BufferTaskResponse_descriptor =
- getDescriptor().getMessageTypes().get(22);
- internal_static_google_cloud_tasks_v2beta2_BufferTaskResponse_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_tasks_v2beta2_BufferTaskResponse_descriptor,
- new java.lang.String[] {
- "Task",
- });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
diff --git a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/cloudtasks.proto b/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/cloudtasks.proto
index a1d27d749daa..b33a8fcbc7f2 100644
--- a/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/cloudtasks.proto
+++ b/java-tasks/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/cloudtasks.proto
@@ -414,25 +414,6 @@ service CloudTasks {
};
option (google.api.method_signature) = "name";
}
-
- // Creates and buffers a new task without the need to explicitly define a Task
- // message. The queue must have [HTTP
- // target][google.cloud.tasks.v2beta2.HttpTarget]. To create the task with a
- // custom ID, use the following format and set TASK_ID to your desired ID:
- // projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer
- // To create the task with an automatically generated ID, use the following
- // format:
- // projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
- // Note: This feature is in its experimental stage. You must request access to
- // the API through the [Cloud Tasks BufferTask Experiment Signup
- // form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
- rpc BufferTask(BufferTaskRequest) returns (BufferTaskResponse) {
- option (google.api.http) = {
- post: "/v2beta2/{queue=projects/*/locations/*/queues/*}/tasks/{task_id}:buffer"
- body: "*"
- };
- option (google.api.method_signature) = "queue,task_id,body";
- }
}
// Request message for
@@ -1028,36 +1009,3 @@ message RunTaskRequest {
// [Task][google.cloud.tasks.v2beta2.Task] resource.
Task.View response_view = 2;
}
-
-// LINT.IfChange
-// Request message for
-// [BufferTask][google.cloud.tasks.v2beta2.CloudTasks.BufferTask].
-message BufferTaskRequest {
- // Required. The parent queue name. For example:
- // projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
- //
- // The queue must already exist.
- string queue = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "cloudtasks.googleapis.com/Task"
- }
- ];
-
- // Optional. Task ID for the task being created. If not provided, a random
- // task ID is assigned to the task.
- string task_id = 2 [(google.api.field_behavior) = OPTIONAL];
-
- // Optional. Body of the HTTP request.
- //
- // The body can take any generic value. The value is written to the
- // [HttpRequest][payload] of the [Task].
- google.api.HttpBody body = 3 [(google.api.field_behavior) = OPTIONAL];
-}
-
-// Response message for
-// [BufferTask][google.cloud.tasks.v2beta2.CloudTasks.BufferTask].
-message BufferTaskResponse {
- // The created task.
- Task task = 1;
-}
diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/BufferTaskRequest.java b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/BufferTaskRequest.java
deleted file mode 100644
index 36d513ebfc92..000000000000
--- a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/BufferTaskRequest.java
+++ /dev/null
@@ -1,1141 +0,0 @@
-/*
- * Copyright 2023 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
- *
- * https://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.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/tasks/v2beta3/cloudtasks.proto
-
-package com.google.cloud.tasks.v2beta3;
-
-/**
- *
- *
- * - * Request message for - * [BufferTask][google.cloud.tasks.v2beta3.CloudTasks.BufferTask]. - *- * - * Protobuf type {@code google.cloud.tasks.v2beta3.BufferTaskRequest} - */ -public final class BufferTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.BufferTaskRequest) - BufferTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use BufferTaskRequest.newBuilder() to construct. - private BufferTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private BufferTaskRequest() { - queue_ = ""; - taskId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BufferTaskRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_BufferTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_BufferTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.BufferTaskRequest.class, - com.google.cloud.tasks.v2beta3.BufferTaskRequest.Builder.class); - } - - public static final int QUEUE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object queue_ = ""; - /** - * - * - *
- * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The queue.
- */
- @java.lang.Override
- public java.lang.String getQueue() {
- java.lang.Object ref = queue_;
- 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();
- queue_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for queue.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getQueueBytes() {
- java.lang.Object ref = queue_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- queue_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int TASK_ID_FIELD_NUMBER = 2;
-
- @SuppressWarnings("serial")
- private volatile java.lang.Object taskId_ = "";
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The taskId.
- */
- @java.lang.Override
- public java.lang.String getTaskId() {
- java.lang.Object ref = taskId_;
- 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();
- taskId_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for taskId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getTaskIdBytes() {
- java.lang.Object ref = taskId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- taskId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int BODY_FIELD_NUMBER = 3;
- private com.google.api.HttpBody body_;
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return Whether the body field is set.
- */
- @java.lang.Override
- public boolean hasBody() {
- return body_ != null;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The body.
- */
- @java.lang.Override
- public com.google.api.HttpBody getBody() {
- return body_ == null ? com.google.api.HttpBody.getDefaultInstance() : body_;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- @java.lang.Override
- public com.google.api.HttpBodyOrBuilder getBodyOrBuilder() {
- return body_ == null ? com.google.api.HttpBody.getDefaultInstance() : 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queue_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queue_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, taskId_);
- }
- if (body_ != null) {
- output.writeMessage(3, getBody());
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queue_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queue_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, taskId_);
- }
- if (body_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBody());
- }
- size += getUnknownFields().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.v2beta3.BufferTaskRequest)) {
- return super.equals(obj);
- }
- com.google.cloud.tasks.v2beta3.BufferTaskRequest other =
- (com.google.cloud.tasks.v2beta3.BufferTaskRequest) obj;
-
- if (!getQueue().equals(other.getQueue())) return false;
- if (!getTaskId().equals(other.getTaskId())) return false;
- if (hasBody() != other.hasBody()) return false;
- if (hasBody()) {
- if (!getBody().equals(other.getBody())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) 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) + QUEUE_FIELD_NUMBER;
- hash = (53 * hash) + getQueue().hashCode();
- hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
- hash = (53 * hash) + getTaskId().hashCode();
- if (hasBody()) {
- hash = (37 * hash) + BODY_FIELD_NUMBER;
- hash = (53 * hash) + getBody().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskRequest parseFrom(java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskRequest 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.v2beta3.BufferTaskRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskRequest 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.v2beta3.BufferTaskRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskRequest parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskRequest parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskRequest 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.v2beta3.BufferTaskRequest parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskRequest 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.v2beta3.BufferTaskRequest parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskRequest 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.v2beta3.BufferTaskRequest 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 - * [BufferTask][google.cloud.tasks.v2beta3.CloudTasks.BufferTask]. - *- * - * Protobuf type {@code google.cloud.tasks.v2beta3.BufferTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The queue.
- */
- public java.lang.String getQueue() {
- java.lang.Object ref = queue_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- queue_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for queue.
- */
- public com.google.protobuf.ByteString getQueueBytes() {
- java.lang.Object ref = queue_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- queue_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @param value The queue to set.
- * @return This builder for chaining.
- */
- public Builder setQueue(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- queue_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return This builder for chaining.
- */
- public Builder clearQueue() {
- queue_ = getDefaultInstance().getQueue();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @param value The bytes for queue to set.
- * @return This builder for chaining.
- */
- public Builder setQueueBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- queue_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
- private java.lang.Object taskId_ = "";
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The taskId.
- */
- public java.lang.String getTaskId() {
- java.lang.Object ref = taskId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- taskId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for taskId.
- */
- public com.google.protobuf.ByteString getTaskIdBytes() {
- java.lang.Object ref = taskId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- taskId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The taskId to set.
- * @return This builder for chaining.
- */
- public Builder setTaskId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- taskId_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return This builder for chaining.
- */
- public Builder clearTaskId() {
- taskId_ = getDefaultInstance().getTaskId();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The bytes for taskId to set.
- * @return This builder for chaining.
- */
- public Builder setTaskIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- taskId_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
- private com.google.api.HttpBody body_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.api.HttpBody,
- com.google.api.HttpBody.Builder,
- com.google.api.HttpBodyOrBuilder>
- bodyBuilder_;
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return Whether the body field is set.
- */
- public boolean hasBody() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The body.
- */
- public com.google.api.HttpBody getBody() {
- if (bodyBuilder_ == null) {
- return body_ == null ? com.google.api.HttpBody.getDefaultInstance() : body_;
- } else {
- return bodyBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public Builder setBody(com.google.api.HttpBody value) {
- if (bodyBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- body_ = value;
- } else {
- bodyBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public Builder setBody(com.google.api.HttpBody.Builder builderForValue) {
- if (bodyBuilder_ == null) {
- body_ = builderForValue.build();
- } else {
- bodyBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public Builder mergeBody(com.google.api.HttpBody value) {
- if (bodyBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)
- && body_ != null
- && body_ != com.google.api.HttpBody.getDefaultInstance()) {
- getBodyBuilder().mergeFrom(value);
- } else {
- body_ = value;
- }
- } else {
- bodyBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public Builder clearBody() {
- bitField0_ = (bitField0_ & ~0x00000004);
- body_ = null;
- if (bodyBuilder_ != null) {
- bodyBuilder_.dispose();
- bodyBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public com.google.api.HttpBody.Builder getBodyBuilder() {
- bitField0_ |= 0x00000004;
- onChanged();
- return getBodyFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- public com.google.api.HttpBodyOrBuilder getBodyOrBuilder() {
- if (bodyBuilder_ != null) {
- return bodyBuilder_.getMessageOrBuilder();
- } else {
- return body_ == null ? com.google.api.HttpBody.getDefaultInstance() : body_;
- }
- }
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.api.HttpBody,
- com.google.api.HttpBody.Builder,
- com.google.api.HttpBodyOrBuilder>
- getBodyFieldBuilder() {
- if (bodyBuilder_ == null) {
- bodyBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.api.HttpBody,
- com.google.api.HttpBody.Builder,
- com.google.api.HttpBodyOrBuilder>(getBody(), getParentForChildren(), isClean());
- body_ = null;
- }
- return bodyBuilder_;
- }
-
- @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.v2beta3.BufferTaskRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.BufferTaskRequest)
- private static final com.google.cloud.tasks.v2beta3.BufferTaskRequest DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.BufferTaskRequest();
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The queue.
- */
- java.lang.String getQueue();
- /**
- *
- *
- * - * Required. The parent queue name. For example: - * projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * - * The queue must already exist. - *- * - *
- * string queue = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for queue.
- */
- com.google.protobuf.ByteString getQueueBytes();
-
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The taskId.
- */
- java.lang.String getTaskId();
- /**
- *
- *
- * - * Optional. Task ID for the task being created. If not provided, a random - * task ID is assigned to the task. - *- * - *
string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for taskId.
- */
- com.google.protobuf.ByteString getTaskIdBytes();
-
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return Whether the body field is set.
- */
- boolean hasBody();
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The body.
- */
- com.google.api.HttpBody getBody();
- /**
- *
- *
- * - * Optional. Body of the HTTP request. - * - * The body can take any generic value. The value is written to the - * [HttpRequest][payload] of the [Task]. - *- * - *
.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- com.google.api.HttpBodyOrBuilder getBodyOrBuilder();
-}
diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/BufferTaskResponse.java b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/BufferTaskResponse.java
deleted file mode 100644
index 42fd83c17a39..000000000000
--- a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/BufferTaskResponse.java
+++ /dev/null
@@ -1,699 +0,0 @@
-/*
- * Copyright 2023 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
- *
- * https://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.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/tasks/v2beta3/cloudtasks.proto
-
-package com.google.cloud.tasks.v2beta3;
-
-/**
- *
- *
- * - * Response message for - * [BufferTask][google.cloud.tasks.v2beta3.CloudTasks.BufferTask]. - *- * - * Protobuf type {@code google.cloud.tasks.v2beta3.BufferTaskResponse} - */ -public final class BufferTaskResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.BufferTaskResponse) - BufferTaskResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use BufferTaskResponse.newBuilder() to construct. - private BufferTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private BufferTaskResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BufferTaskResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_BufferTaskResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_BufferTaskResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.BufferTaskResponse.class, - com.google.cloud.tasks.v2beta3.BufferTaskResponse.Builder.class); - } - - public static final int TASK_FIELD_NUMBER = 1; - private com.google.cloud.tasks.v2beta3.Task task_; - /** - * - * - *
- * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- *
- * @return Whether the task field is set.
- */
- @java.lang.Override
- public boolean hasTask() {
- return task_ != null;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- *
- * @return The task.
- */
- @java.lang.Override
- public com.google.cloud.tasks.v2beta3.Task getTask() {
- return task_ == null ? com.google.cloud.tasks.v2beta3.Task.getDefaultInstance() : task_;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- */
- @java.lang.Override
- public com.google.cloud.tasks.v2beta3.TaskOrBuilder getTaskOrBuilder() {
- return task_ == null ? com.google.cloud.tasks.v2beta3.Task.getDefaultInstance() : task_;
- }
-
- 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 (task_ != null) {
- output.writeMessage(1, getTask());
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (task_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTask());
- }
- size += getUnknownFields().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.v2beta3.BufferTaskResponse)) {
- return super.equals(obj);
- }
- com.google.cloud.tasks.v2beta3.BufferTaskResponse other =
- (com.google.cloud.tasks.v2beta3.BufferTaskResponse) obj;
-
- if (hasTask() != other.hasTask()) return false;
- if (hasTask()) {
- if (!getTask().equals(other.getTask())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasTask()) {
- hash = (37 * hash) + TASK_FIELD_NUMBER;
- hash = (53 * hash) + getTask().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskResponse parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskResponse 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.v2beta3.BufferTaskResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskResponse 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.v2beta3.BufferTaskResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskResponse parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskResponse parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskResponse 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.v2beta3.BufferTaskResponse parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskResponse 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.v2beta3.BufferTaskResponse parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskResponse 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.v2beta3.BufferTaskResponse 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 - * [BufferTask][google.cloud.tasks.v2beta3.CloudTasks.BufferTask]. - *- * - * Protobuf type {@code google.cloud.tasks.v2beta3.BufferTaskResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- *
- * @return Whether the task field is set.
- */
- public boolean hasTask() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- *
- * @return The task.
- */
- public com.google.cloud.tasks.v2beta3.Task getTask() {
- if (taskBuilder_ == null) {
- return task_ == null ? com.google.cloud.tasks.v2beta3.Task.getDefaultInstance() : task_;
- } else {
- return taskBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- */
- public Builder setTask(com.google.cloud.tasks.v2beta3.Task value) {
- if (taskBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- task_ = value;
- } else {
- taskBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- */
- public Builder setTask(com.google.cloud.tasks.v2beta3.Task.Builder builderForValue) {
- if (taskBuilder_ == null) {
- task_ = builderForValue.build();
- } else {
- taskBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- */
- public Builder mergeTask(com.google.cloud.tasks.v2beta3.Task value) {
- if (taskBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && task_ != null
- && task_ != com.google.cloud.tasks.v2beta3.Task.getDefaultInstance()) {
- getTaskBuilder().mergeFrom(value);
- } else {
- task_ = value;
- }
- } else {
- taskBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- */
- public Builder clearTask() {
- bitField0_ = (bitField0_ & ~0x00000001);
- task_ = null;
- if (taskBuilder_ != null) {
- taskBuilder_.dispose();
- taskBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- */
- public com.google.cloud.tasks.v2beta3.Task.Builder getTaskBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getTaskFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- */
- public com.google.cloud.tasks.v2beta3.TaskOrBuilder getTaskOrBuilder() {
- if (taskBuilder_ != null) {
- return taskBuilder_.getMessageOrBuilder();
- } else {
- return task_ == null ? com.google.cloud.tasks.v2beta3.Task.getDefaultInstance() : task_;
- }
- }
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.tasks.v2beta3.Task,
- com.google.cloud.tasks.v2beta3.Task.Builder,
- com.google.cloud.tasks.v2beta3.TaskOrBuilder>
- getTaskFieldBuilder() {
- if (taskBuilder_ == null) {
- taskBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.tasks.v2beta3.Task,
- com.google.cloud.tasks.v2beta3.Task.Builder,
- com.google.cloud.tasks.v2beta3.TaskOrBuilder>(
- getTask(), getParentForChildren(), isClean());
- task_ = null;
- }
- return taskBuilder_;
- }
-
- @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.v2beta3.BufferTaskResponse)
- }
-
- // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.BufferTaskResponse)
- private static final com.google.cloud.tasks.v2beta3.BufferTaskResponse DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.BufferTaskResponse();
- }
-
- public static com.google.cloud.tasks.v2beta3.BufferTaskResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- *
- * @return Whether the task field is set.
- */
- boolean hasTask();
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- *
- * @return The task.
- */
- com.google.cloud.tasks.v2beta3.Task getTask();
- /**
- *
- *
- * - * The created task. - *- * - *
.google.cloud.tasks.v2beta3.Task task = 1;
- */
- com.google.cloud.tasks.v2beta3.TaskOrBuilder getTaskOrBuilder();
-}
diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksProto.java b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksProto.java
index d111609fb31a..7f886d72cb74 100644
--- a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksProto.java
+++ b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksProto.java
@@ -87,14 +87,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_tasks_v2beta3_BufferTaskRequest_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_tasks_v2beta3_BufferTaskRequest_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_tasks_v2beta3_BufferTaskResponse_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_tasks_v2beta3_BufferTaskResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -108,63 +100,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "proto\022\032google.cloud.tasks.v2beta3\032\034googl"
+ "e/api/annotations.proto\032\027google/api/clie"
+ "nt.proto\032\037google/api/field_behavior.prot"
- + "o\032\031google/api/httpbody.proto\032\031google/api"
- + "/resource.proto\032&google/cloud/tasks/v2be"
- + "ta3/queue.proto\032%google/cloud/tasks/v2be"
- + "ta3/task.proto\032\036google/iam/v1/iam_policy"
- + ".proto\032\032google/iam/v1/policy.proto\032\033goog"
- + "le/protobuf/empty.proto\032 google/protobuf"
- + "/field_mask.proto\"\271\001\n\021ListQueuesRequest\022"
- + "8\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\022\037cloudtasks.goo"
- + "gleapis.com/Queue\022\016\n\006filter\030\002 \001(\t\022\021\n\tpag"
- + "e_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\0223\n\tread"
- + "_mask\030\005 \001(\0132\032.google.protobuf.FieldMaskB"
- + "\004\342A\001\001\"`\n\022ListQueuesResponse\0221\n\006queues\030\001 "
- + "\003(\0132!.google.cloud.tasks.v2beta3.Queue\022\027"
- + "\n\017next_page_token\030\002 \001(\t\"~\n\017GetQueueReque"
+ + "o\032\031google/api/resource.proto\032&google/clo"
+ + "ud/tasks/v2beta3/queue.proto\032%google/clo"
+ + "ud/tasks/v2beta3/task.proto\032\036google/iam/"
+ + "v1/iam_policy.proto\032\032google/iam/v1/polic"
+ + "y.proto\032\033google/protobuf/empty.proto\032 go"
+ + "ogle/protobuf/field_mask.proto\"\271\001\n\021ListQ"
+ + "ueuesRequest\0228\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\022\037c"
+ + "loudtasks.googleapis.com/Queue\022\016\n\006filter"
+ + "\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030"
+ + "\004 \001(\t\0223\n\tread_mask\030\005 \001(\0132\032.google.protob"
+ + "uf.FieldMaskB\004\342A\001\001\"`\n\022ListQueuesResponse"
+ + "\0221\n\006queues\030\001 \003(\0132!.google.cloud.tasks.v2"
+ + "beta3.Queue\022\027\n\017next_page_token\030\002 \001(\t\"~\n\017"
+ + "GetQueueRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037"
+ + "cloudtasks.googleapis.com/Queue\0223\n\tread_"
+ + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004"
+ + "\342A\001\001\"\206\001\n\022CreateQueueRequest\0228\n\006parent\030\001 "
+ + "\001(\tB(\342A\001\002\372A!\022\037cloudtasks.googleapis.com/"
+ + "Queue\0226\n\005queue\030\002 \001(\0132!.google.cloud.task"
+ + "s.v2beta3.QueueB\004\342A\001\002\"}\n\022UpdateQueueRequ"
+ + "est\0226\n\005queue\030\001 \001(\0132!.google.cloud.tasks."
+ + "v2beta3.QueueB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\013"
+ + "2\032.google.protobuf.FieldMask\"L\n\022DeleteQu"
+ + "eueRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037cloud"
+ + "tasks.googleapis.com/Queue\"K\n\021PurgeQueue"
+ + "Request\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037cloudtas"
+ + "ks.googleapis.com/Queue\"K\n\021PauseQueueReq"
+ + "uest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037cloudtasks."
+ + "googleapis.com/Queue\"L\n\022ResumeQueueReque"
+ "st\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037cloudtasks.go"
- + "ogleapis.com/Queue\0223\n\tread_mask\030\002 \001(\0132\032."
- + "google.protobuf.FieldMaskB\004\342A\001\001\"\206\001\n\022Crea"
- + "teQueueRequest\0228\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\022"
- + "\037cloudtasks.googleapis.com/Queue\0226\n\005queu"
- + "e\030\002 \001(\0132!.google.cloud.tasks.v2beta3.Que"
- + "ueB\004\342A\001\002\"}\n\022UpdateQueueRequest\0226\n\005queue\030"
- + "\001 \001(\0132!.google.cloud.tasks.v2beta3.Queue"
- + "B\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro"
- + "tobuf.FieldMask\"L\n\022DeleteQueueRequest\0226\n"
- + "\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037cloudtasks.googlea"
- + "pis.com/Queue\"K\n\021PurgeQueueRequest\0226\n\004na"
- + "me\030\001 \001(\tB(\342A\001\002\372A!\n\037cloudtasks.googleapis"
- + ".com/Queue\"K\n\021PauseQueueRequest\0226\n\004name\030"
- + "\001 \001(\tB(\342A\001\002\372A!\n\037cloudtasks.googleapis.co"
- + "m/Queue\"L\n\022ResumeQueueRequest\0226\n\004name\030\001 "
- + "\001(\tB(\342A\001\002\372A!\n\037cloudtasks.googleapis.com/"
- + "Queue\"\260\001\n\020ListTasksRequest\0227\n\006parent\030\001 \001"
- + "(\tB\'\342A\001\002\372A \022\036cloudtasks.googleapis.com/T"
- + "ask\022<\n\rresponse_view\030\002 \001(\0162%.google.clou"
- + "d.tasks.v2beta3.Task.View\022\021\n\tpage_size\030\003"
- + " \001(\005\022\022\n\npage_token\030\004 \001(\t\"]\n\021ListTasksRes"
- + "ponse\022/\n\005tasks\030\001 \003(\0132 .google.cloud.task"
- + "s.v2beta3.Task\022\027\n\017next_page_token\030\002 \001(\t\""
- + "\205\001\n\016GetTaskRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A"
- + " \n\036cloudtasks.googleapis.com/Task\022<\n\rres"
- + "ponse_view\030\002 \001(\0162%.google.cloud.tasks.v2"
- + "beta3.Task.View\"\300\001\n\021CreateTaskRequest\0227\n"
- + "\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036cloudtasks.googl"
- + "eapis.com/Task\0224\n\004task\030\002 \001(\0132 .google.cl"
- + "oud.tasks.v2beta3.TaskB\004\342A\001\002\022<\n\rresponse"
- + "_view\030\003 \001(\0162%.google.cloud.tasks.v2beta3"
- + ".Task.View\"J\n\021DeleteTaskRequest\0225\n\004name\030"
+ + "ogleapis.com/Queue\"\260\001\n\020ListTasksRequest\022"
+ + "7\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036cloudtasks.goo"
+ + "gleapis.com/Task\022<\n\rresponse_view\030\002 \001(\0162"
+ + "%.google.cloud.tasks.v2beta3.Task.View\022\021"
+ + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"]\n"
+ + "\021ListTasksResponse\022/\n\005tasks\030\001 \003(\0132 .goog"
+ + "le.cloud.tasks.v2beta3.Task\022\027\n\017next_page"
+ + "_token\030\002 \001(\t\"\205\001\n\016GetTaskRequest\0225\n\004name\030"
+ "\001 \001(\tB\'\342A\001\002\372A \n\036cloudtasks.googleapis.co"
- + "m/Task\"\205\001\n\016RunTaskRequest\0225\n\004name\030\001 \001(\tB"
- + "\'\342A\001\002\372A \n\036cloudtasks.googleapis.com/Task"
- + "\022<\n\rresponse_view\030\002 \001(\0162%.google.cloud.t"
- + "asks.v2beta3.Task.View\"\214\001\n\021BufferTaskReq"
- + "uest\0226\n\005queue\030\001 \001(\tB\'\342A\001\002\372A \022\036cloudtasks"
- + ".googleapis.com/Task\022\025\n\007task_id\030\002 \001(\tB\004\342"
- + "A\001\001\022(\n\004body\030\003 \001(\0132\024.google.api.HttpBodyB"
- + "\004\342A\001\001\"D\n\022BufferTaskResponse\022.\n\004task\030\001 \001("
- + "\0132 .google.cloud.tasks.v2beta3.Task2\374\027\n\n"
+ + "m/Task\022<\n\rresponse_view\030\002 \001(\0162%.google.c"
+ + "loud.tasks.v2beta3.Task.View\"\300\001\n\021CreateT"
+ + "askRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036clo"
+ + "udtasks.googleapis.com/Task\0224\n\004task\030\002 \001("
+ + "\0132 .google.cloud.tasks.v2beta3.TaskB\004\342A\001"
+ + "\002\022<\n\rresponse_view\030\003 \001(\0162%.google.cloud."
+ + "tasks.v2beta3.Task.View\"J\n\021DeleteTaskReq"
+ + "uest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036cloudtasks."
+ + "googleapis.com/Task\"\205\001\n\016RunTaskRequest\0225"
+ + "\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036cloudtasks.google"
+ + "apis.com/Task\022<\n\rresponse_view\030\002 \001(\0162%.g"
+ + "oogle.cloud.tasks.v2beta3.Task.View2\245\026\n\n"
+ "CloudTasks\022\255\001\n\nListQueues\022-.google.cloud"
+ ".tasks.v2beta3.ListQueuesRequest\032..googl"
+ "e.cloud.tasks.v2beta3.ListQueuesResponse"
@@ -234,18 +220,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "eta3.RunTaskRequest\032 .google.cloud.tasks"
+ ".v2beta3.Task\"M\332A\004name\202\323\344\223\002@\";/v2beta3/{"
+ "name=projects/*/locations/*/queues/*/tas"
- + "ks/*}:run:\001*\022\324\001\n\nBufferTask\022-.google.clo"
- + "ud.tasks.v2beta3.BufferTaskRequest\032..goo"
- + "gle.cloud.tasks.v2beta3.BufferTaskRespon"
- + "se\"g\332A\022queue,task_id,body\202\323\344\223\002L\"G/v2beta"
- + "3/{queue=projects/*/locations/*/queues/*"
- + "}/tasks/{task_id}:buffer:\001*\032M\312A\031cloudtas"
- + "ks.googleapis.com\322A.https://www.googleap"
- + "is.com/auth/cloud-platformB\200\001\n\036com.googl"
- + "e.cloud.tasks.v2beta3B\017CloudTasksProtoP\001"
- + "ZCcloud.google.com/go/cloudtasks/apiv2be"
- + "ta3/cloudtaskspb;cloudtaskspb\242\002\005TASKSb\006p"
- + "roto3"
+ + "ks/*}:run:\001*\032M\312A\031cloudtasks.googleapis.c"
+ + "om\322A.https://www.googleapis.com/auth/clo"
+ + "ud-platformB\200\001\n\036com.google.cloud.tasks.v"
+ + "2beta3B\017CloudTasksProtoP\001ZCcloud.google."
+ + "com/go/cloudtasks/apiv2beta3/cloudtasksp"
+ + "b;cloudtaskspb\242\002\005TASKSb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -254,7 +234,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.ClientProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
- com.google.api.HttpBodyProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.tasks.v2beta3.QueueProto.getDescriptor(),
com.google.cloud.tasks.v2beta3.TaskProto.getDescriptor(),
@@ -383,22 +362,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Name", "ResponseView",
});
- internal_static_google_cloud_tasks_v2beta3_BufferTaskRequest_descriptor =
- getDescriptor().getMessageTypes().get(15);
- internal_static_google_cloud_tasks_v2beta3_BufferTaskRequest_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_tasks_v2beta3_BufferTaskRequest_descriptor,
- new java.lang.String[] {
- "Queue", "TaskId", "Body",
- });
- internal_static_google_cloud_tasks_v2beta3_BufferTaskResponse_descriptor =
- getDescriptor().getMessageTypes().get(16);
- internal_static_google_cloud_tasks_v2beta3_BufferTaskResponse_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_tasks_v2beta3_BufferTaskResponse_descriptor,
- new java.lang.String[] {
- "Task",
- });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
@@ -412,7 +375,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ClientProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
- com.google.api.HttpBodyProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.tasks.v2beta3.QueueProto.getDescriptor();
com.google.cloud.tasks.v2beta3.TaskProto.getDescriptor();
diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/cloudtasks.proto b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/cloudtasks.proto
index 80671c12f88c..232d9e9bdb5c 100644
--- a/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/cloudtasks.proto
+++ b/java-tasks/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/cloudtasks.proto
@@ -19,7 +19,6 @@ package google.cloud.tasks.v2beta3;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
-import "google/api/httpbody.proto";
import "google/api/resource.proto";
import "google/cloud/tasks/v2beta3/queue.proto";
import "google/cloud/tasks/v2beta3/task.proto";
@@ -313,25 +312,6 @@ service CloudTasks {
};
option (google.api.method_signature) = "name";
}
-
- // Creates and buffers a new task without the need to explicitly define a Task
- // message. The queue must have [HTTP
- // target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a
- // custom ID, use the following format and set TASK_ID to your desired ID:
- // projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer
- // To create the task with an automatically generated ID, use the following
- // format:
- // projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
- // Note: This feature is in its experimental stage. You must request access to
- // the API through the [Cloud Tasks BufferTask Experiment Signup
- // form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
- rpc BufferTask(BufferTaskRequest) returns (BufferTaskResponse) {
- option (google.api.http) = {
- post: "/v2beta3/{queue=projects/*/locations/*/queues/*}/tasks/{task_id}:buffer"
- body: "*"
- };
- option (google.api.method_signature) = "queue,task_id,body";
- }
}
// Request message for
@@ -714,35 +694,3 @@ message RunTaskRequest {
// [Task][google.cloud.tasks.v2beta3.Task] resource.
Task.View response_view = 2;
}
-
-// Request message for
-// [BufferTask][google.cloud.tasks.v2beta3.CloudTasks.BufferTask].
-message BufferTaskRequest {
- // Required. The parent queue name. For example:
- // projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
- //
- // The queue must already exist.
- string queue = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "cloudtasks.googleapis.com/Task"
- }
- ];
-
- // Optional. Task ID for the task being created. If not provided, a random
- // task ID is assigned to the task.
- string task_id = 2 [(google.api.field_behavior) = OPTIONAL];
-
- // Optional. Body of the HTTP request.
- //
- // The body can take any generic value. The value is written to the
- // [HttpRequest][payload] of the [Task].
- google.api.HttpBody body = 3 [(google.api.field_behavior) = OPTIONAL];
-}
-
-// Response message for
-// [BufferTask][google.cloud.tasks.v2beta3.CloudTasks.BufferTask].
-message BufferTaskResponse {
- // The created task.
- Task task = 1;
-}
diff --git a/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasks/buffertask/AsyncBufferTask.java b/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasks/buffertask/AsyncBufferTask.java
deleted file mode 100644
index 241b38cbb8c6..000000000000
--- a/java-tasks/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasks/buffertask/AsyncBufferTask.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2023 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
- *
- * https://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.v2beta2.samples;
-
-// [START cloudtasks_v2beta2_generated_CloudTasks_BufferTask_async]
-import com.google.api.HttpBody;
-import com.google.api.core.ApiFuture;
-import com.google.cloud.tasks.v2beta2.BufferTaskRequest;
-import com.google.cloud.tasks.v2beta2.BufferTaskResponse;
-import com.google.cloud.tasks.v2beta2.CloudTasksClient;
-import com.google.cloud.tasks.v2beta2.QueueName;
-
-public class AsyncBufferTask {
-
- public static void main(String[] args) throws Exception {
- asyncBufferTask();
- }
-
- public static void asyncBufferTask() throws Exception {
- // This snippet has been automatically generated and should be regarded as a code template only.
- // It will require modifications to work:
- // - It may require correct/in-range values for request initialization.
- // - It may require specifying regional endpoints when creating the service client as shown in
- // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
- BufferTaskRequest request =
- BufferTaskRequest.newBuilder()
- .setQueue(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
- .setTaskId("taskId-880873088")
- .setBody(HttpBody.newBuilder().build())
- .build();
- ApiFuture