Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-cloudtasks</artifactId>
<version>v2beta2-rev20260609-2.0.0</version>
<version>v2beta2-rev20260714-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-cloudtasks:v2beta2-rev20260609-2.0.0'
implementation 'com.google.apis:google-api-services-cloudtasks:v2beta2-rev20260714-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.cloudtasks.v2beta2.model;

/**
* Request message for [BatchCreateTasks].
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Tasks API. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class BatchCreateTasksRequest extends com.google.api.client.json.GenericJson {

/**
* Optional. This field will be used to identify the long running operation, avoiding duplication
* when user retries. If not provided, then a UUID will be generated at server side.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String requestId;

/**
* Required. The list of requests to create tasks. The queue specified in parent field of each
* CreateTaskRequest will be the same. This validation happens on the client side as well as in
* the handler. BatchCreateTasksRequest.parent will also be the same value as the individual
* CreateTaskRequest.parent . The maximum number of requests is 100.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<CreateTaskRequest> requests;

/**
* Optional. This field will be used to identify the long running operation, avoiding duplication
* when user retries. If not provided, then a UUID will be generated at server side.
* @return value or {@code null} for none
*/
public java.lang.String getRequestId() {
return requestId;
}

/**
* Optional. This field will be used to identify the long running operation, avoiding duplication
* when user retries. If not provided, then a UUID will be generated at server side.
* @param requestId requestId or {@code null} for none
*/
public BatchCreateTasksRequest setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}

/**
* Required. The list of requests to create tasks. The queue specified in parent field of each
* CreateTaskRequest will be the same. This validation happens on the client side as well as in
* the handler. BatchCreateTasksRequest.parent will also be the same value as the individual
* CreateTaskRequest.parent . The maximum number of requests is 100.
* @return value or {@code null} for none
*/
public java.util.List<CreateTaskRequest> getRequests() {
return requests;
}

/**
* Required. The list of requests to create tasks. The queue specified in parent field of each
* CreateTaskRequest will be the same. This validation happens on the client side as well as in
* the handler. BatchCreateTasksRequest.parent will also be the same value as the individual
* CreateTaskRequest.parent . The maximum number of requests is 100.
* @param requests requests or {@code null} for none
*/
public BatchCreateTasksRequest setRequests(java.util.List<CreateTaskRequest> requests) {
this.requests = requests;
return this;
}

@Override
public BatchCreateTasksRequest set(String fieldName, Object value) {
return (BatchCreateTasksRequest) super.set(fieldName, value);
}

@Override
public BatchCreateTasksRequest clone() {
return (BatchCreateTasksRequest) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.cloudtasks.v2beta2.model;

/**
* Request message for deleting a batch of tasks using BatchDeleteTasks.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Tasks API. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class BatchDeleteTasksRequest extends com.google.api.client.json.GenericJson {

/**
* Required. The names of the tasks to delete. A maximum of 1000 tasks can be deleted in a batch.
* For example: Format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> names;

/**
* Optional. This field will be used to identify the long running operation, avoiding duplication
* when user retries. If not provided, then a UUID will be generated at server side.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String requestId;

/**
* Required. The names of the tasks to delete. A maximum of 1000 tasks can be deleted in a batch.
* For example: Format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getNames() {
return names;
}

/**
* Required. The names of the tasks to delete. A maximum of 1000 tasks can be deleted in a batch.
* For example: Format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
* @param names names or {@code null} for none
*/
public BatchDeleteTasksRequest setNames(java.util.List<java.lang.String> names) {
this.names = names;
return this;
}

/**
* Optional. This field will be used to identify the long running operation, avoiding duplication
* when user retries. If not provided, then a UUID will be generated at server side.
* @return value or {@code null} for none
*/
public java.lang.String getRequestId() {
return requestId;
}

/**
* Optional. This field will be used to identify the long running operation, avoiding duplication
* when user retries. If not provided, then a UUID will be generated at server side.
* @param requestId requestId or {@code null} for none
*/
public BatchDeleteTasksRequest setRequestId(java.lang.String requestId) {
this.requestId = requestId;
return this;
}

@Override
public BatchDeleteTasksRequest set(String fieldName, Object value) {
return (BatchDeleteTasksRequest) super.set(fieldName, value);
}

@Override
public BatchDeleteTasksRequest clone() {
return (BatchDeleteTasksRequest) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
@SuppressWarnings("javadoc")
public final class CreateTaskRequest extends com.google.api.client.json.GenericJson {

/**
* Required. The queue name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String parent;

/**
* The response_view specifies which subset of the Task will be returned. By default response_view
* is BASIC; not all information is retrieved by default because some data, such as payloads,
Expand Down Expand Up @@ -63,6 +71,25 @@ public final class CreateTaskRequest extends com.google.api.client.json.GenericJ
@com.google.api.client.util.Key
private Task task;

/**
* Required. The queue name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
* @return value or {@code null} for none
*/
public java.lang.String getParent() {
return parent;
}

/**
* Required. The queue name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
* @param parent parent or {@code null} for none
*/
public CreateTaskRequest setParent(java.lang.String parent) {
this.parent = parent;
return this;
}

/**
* The response_view specifies which subset of the Task will be returned. By default response_view
* is BASIC; not all information is retrieved by default because some data, such as payloads,
Expand Down
Loading
Loading